agentleFS
DKutzen22DKutzen22/synapse/skills/scaffold/SKILL.md

scaffold

Skill1 starsChanged 7 days agoMITView on GitHub

Command entrypoint to scaffold new Synapse primitives. Catches /scaffold and delegates execution to the architect subagent.

53 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ascii-diagram, docs-ci and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SethGammonSkill

    ascii-diagram

    Generate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow. Uses a programmatic character-grid approach so alignment is guaranteed by math, not token prediction. Includes post-render verification.

    Also in 4 projects that use this

  • jh941213Skill

    docs-ci

    문서 CI(링크·OpenAPI lint·breaking 게이트·mermaid 검증)나 문서 드리프트 감지(docs.yaml 신선도 검사)를 설치하거나 돌릴 때 사용. 문서 내용 작성은 docs-architecture·docs-interfaces·docs-manuals.

    Also in 3 projects that use this

  • jh941213Skill

    docs-interfaces

    API·이벤트 인터페이스 문서(OpenAPI·swagger·AsyncAPI 명세, 엔드포인트 레퍼런스, API 구성도·시퀀스, API CHANGELOG)를 만들거나 코드와 맞출 때 사용. 시스템 구성도는 docs-architecture, API 설계 원칙은 api-design-principles.

    Also in 3 projects that use this

  • SethGammonSkill

    research-fleet

    Parallel research using Fleet wave mechanics. Spawns multiple scout agents, each investigating a different angle of the same question. Findings are compressed between waves. Produces a unified research brief from multiple independent perspectives.

    Also in 3 projects that use this

  • RachaelQuiselSkill

    client-docs

    Client documentation. Use when a build needs documentation updates or missing project documents need to be identified.

    Also in 3 projects that use this

  • vicoa-aiSkill

    live-preview

    Start a local app in the current user project, expose it through a tunnel, and return preview details in structured Markdown. Use when the user asks for a preview URL, public URL, shareable localhost, mobile/web preview, or tunnel setup.

    Also in 4 projects that use this

  • +4 more from jh941213

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 46 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before scaffolding, route the requirement strictly:

    line 16
  2. Distinctive:

    Ensure length is ≤45 lines (hard cap 60 lines):

    line 60
  3. Distinctive:

    Ensure length is ≤80 lines:

    line 76
  4. Very specific:

    Run make validate to assert schema compliance, YAML validity, and link resolution.

    line 96

“Common” is measured: kept by at least 6 in 10 of the 46 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/scaffold

User-facing command interface for scaffolding new Synapse primitives (skills/, instructions/, agents/).

[!NOTE] Dispatch Flow: /scaffold (Skill Entrypoint) $\longrightarrow$ agents/architect.md (Execution Worker). Skills trigger subagents; subagents never trigger skills.

Routing & Triage Rubric

Before scaffolding, route the requirement strictly:

  • Rule (instructions/): Hard invariants, style guardrails, and safety constraints. MUST declare explicit applyTo / globs file patterns; catch-all **/* is prohibited.
  • Skill (skills/): Repeatable, multi-step user-triggered workflows and commands (skills/<name>/SKILL.md).
  • Subagent (agents/): Isolated context execution with focused tool grants or adversarial verification roles (agents/<name>.md).
  • Anti-Pattern (memory/anti-patterns.md): Explicitly rejected behaviors, negative examples, and "never do X" corrections.

Execution Steps

1. Parse Command Arguments & Target Scope

Capture user intent, target primitive name, type, and distribution scope:

  • Primitive Type:
    • Skill: skills/<name>/SKILL.md
    • Instruction Rule: instructions/<name>.instructions.md
    • Subagent: agents/<name>.md
  • Scope Classification (Prompt User if Unspecified):
    • Framework Core (scope: core): Generic, domain-agnostic primitive intended for public upstream main.
    • Personal Overlay (scope: personal): User-specific workflow, machine habits, or private commands kept on your personal overlay branch to avoid upstream merge conflicts.

2. Delegate to Architect Subagent

Invoke the specialized architect subagent (agents/architect.md) with the task specifications:

Task: Scaffold primitive '<name>' of type '<type>' with scope '<scope>'.
Target File: <path>
Governance: Conform to context/repo-governance-spec.md line limits and frontmatter schemas.

3. Subagent Execution Specifications

A. Scaffolding a Skill (skills/<name>/SKILL.md):

---
name: <kebab-name>
description: >
  Concise purpose statement. Trigger with /<kebab-name> or request <task>.
scope: core  # or "personal"
---

# /<kebab-name>

## Execution Steps
1. Step details...

B. Scaffolding an Instruction (instructions/<name>.instructions.md):

Ensure length is ≤45 lines (hard cap 60 lines):

---
description: Concise behavioral constraint
applyTo: "path/pattern/**, other/*.ext"
globs: "path/pattern/**, other/*.ext"
scope: core  # or "personal"
---

# Rule Title

## Constraints
- Explicit rules in declarative bullet points.

C. Scaffolding a Subagent (agents/<name>.md):

Ensure length is ≤80 lines:

---
name: <kebab-name>
description: Focused agent persona and responsibilities
subagent: true
mainAgent: false
model: "flash"  # or "pro"
scope: core  # or "personal"
tools:
  - read_file
  - run_command
---

# Persona Title

4. Manifest Registration & Validation

Upon completion by architect:

  • Register new primitives in apm.yml, skills.json, or agents.json.
  • Run make validate to assert schema compliance, YAML validity, and link resolution.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.