agentleFS
tonmoy007tonmoy007/forge-plugins/skills/forge-build/SKILL.md

forge-build

Skill2 starsChanged 6 months agoMITView on GitHub

Run Stage 6 of the Forge pipeline — implementation. Use when the user says

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. About 0 are common, 6 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If it exits non-zero, STOP: present its message verbatim and do not proceed — the prior stage must be completed first (or use …

    line 26
  2. Very specific:

    Read pipeline/state.md — confirm Forge project.

    line 30
  3. Very specific:

    Read build/05-implementation/progress.md (or create it) to identify the current task.

    line 32
  4. Very specific:

    Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/check-gate.py --stage 5 to confirm Stage 5 gate passes.

    line 33
  5. Distinctive:

    If gate fails, show what's missing and pause.

    line 34
  6. Very specific:

    Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/load-profile.py --cwd .

    line 35
  7. Very specific:

    Read agents/builder.md to load the Builder persona.

    line 39
  8. Distinctive:

    Read the current task from the task DAG and the corresponding spec section.

    line 41
  9. Very specific:

    Follow the Builder workflow: read before editing, implement, test, verify, commit.

    line 42
  10. Very specific:

    If this is the first task: run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.py advance --to 6.

    line 44
  11. Distinctive:

    Do not work silently — a long task (or batch) must be observable.

    line 48
  12. Very specific:

    When invoked as /forge:build --milestone N, build every task in that milestone, one at a time, instead of a single task …

    line 60
  13. Distinctive:

    If it warns "large batch" (N > 10 tasks), tell the user and ask whether to proceed or split before starting.

    line 67
  14. Very specific:

    After the user fixes the failure, resume with /forge:build --milestone N --resume — build-batch.py --resume skips tasks already marked done …

    line 75
  15. Distinctive:

    After each task, confirm:

    line 83
  16. Distinctive:

    All specified files for the task exist

    line 84
  17. Very specific:

    Commit created with feat(T-XXX): prefix

    line 87

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “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

/forge:build — Implementation

When to Use

  • User says /forge:build
  • User wants to implement a task, write code, or work through the task DAG
  • Working in a Forge project at Stage 5 or 6

Pre-flight Check

Entry gate (REQ-GATE-ENTRY-001) — before adopting the persona, verify the prior stage's artifact exists:

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.py preflight --stage 6

If it exits non-zero, STOP: present its message verbatim and do not proceed — the prior stage must be completed first (or use /forge:force-advance to skip intentionally).

  1. Read pipeline/state.md — confirm Forge project.
  2. Confirm pipeline/05-plan/task-dag.md exists. If not: "Complete Stage 5 first (/forge:plan)."
  3. Read build/05-implementation/progress.md (or create it) to identify the current task.
  4. Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/check-gate.py --stage 5 to confirm Stage 5 gate passes. If gate fails, show what's missing and pause.
  5. Run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/load-profile.py --cwd . --stage 6 to load project-type overrides — these add build-stage criteria (e.g., fullstack: design tokens enforced, bundle budget, RSC boundary) that the Builder must respect.

Steps

  1. Read agents/builder.md to load the Builder persona.
  2. Adopt that persona — you are now the Builder.
  3. Read the current task from the task DAG and the corresponding spec section.
  4. Follow the Builder workflow: read before editing, implement, test, verify, commit. Treat any additional_criteria from the profile as additional pre-commit checks (run them or document why they're deferred).
  5. Mark the task complete in build/05-implementation/progress.md.
  6. If this is the first task: run python3 ${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.py advance --to 6.

Narrate Progress at Task Boundaries (REQ-INTERACTIVE-NARRATE-001)

Do not work silently — a long task (or batch) must be observable. At every task boundary, narrate three things in one short line so the user can follow along:

  • Starting: which T-ID you are starting, e.g. Starting T-207 — add auth middleware.
  • Result: the test/commit outcome, e.g. T-207 ✓ 4 tests pass, committed feat(T-207).
  • Next: what comes next, e.g. Next: T-208 (or Next: milestone done).

This applies to both single-task /forge:build and --milestone N batches; in a batch the tool layer also prints a [Forge] task T-XXX — starting line per task.

Milestone Batch Mode (--milestone N)

When invoked as /forge:build --milestone N, build every task in that milestone, one at a time, instead of a single task (REQ-BUILDBATCH-001):

  1. Get the ordered task list (dependency order):
    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/build-batch.py --milestone N --cwd .
    If it warns "large batch" (N > 10 tasks), tell the user and ask whether to proceed or split before starting.
  2. For each T-ID in that order, run the full single-task Steps above: Builder persona → implement → tests → one commit feat(T-XXX): … → mark done in progress.md. No batched commits, no batched tests.
  3. Pause on the first failure (red tests, gate failure, or a hook block): stop the batch, report which T-ID failed and why, and leave the preceding task commits in place. Do not continue to later tasks.
  4. After the user fixes the failure, resume with /forge:build --milestone N --resume — build-batch.py --resume skips tasks already marked done in progress.md, so the batch picks up at the failed task.

Plain /forge:build (no flag) keeps the single-task behavior unchanged.

Verification

After each task, confirm:

  • All specified files for the task exist
  • Tests pass (bash -c "pytest tests/ -q" or equivalent)
  • Task marked done in progress.md
  • Commit created with feat(T-XXX): prefix

Next Step

Derive the hint from the canonical stage table — never hardcode it (REQ-NEXTHINT-001, single source of truth). Run the helper and present its output to the user verbatim:

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/state-manager.py next-hint --stage 6

(While tasks remain in the plan, keep running /forge:build per the workflow above; the hint above is the cross-stage handoff once the milestone is done.)

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.