agentleFS
ByronFinnByronFinn/dev-skills/skills/implement/SKILL.md

implement

Skill4 starsChanged 3 months agoMITView on GitHub

Use for implementing a piece of work based on a PRD or set of issues — orchestrates /tdd at pre-agreed seams, runs typechecking and tests regularly, dispatches /review at the end, and commits the completed work to the current branch. Explicit /implement invocation only. Trigger words: 实现, 编码实现, 开发这个需求, 开始写代码, implement these issues, orchestrate the build.

193 other projects use a version of this, 8 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-ts-deep-modules, ask-matt 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.
  • loulanyueSkill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 17 projects that use this

  • AWSSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 36 projects that use this

  • AWSSkill

    to-spec

    Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed.

    Also in 75 projects that use this

  • ArvorCoSkill

    specify

    Create feature specification from natural language description. Use when starting a new feature or creating a spec. Triggers on: create spec, specify feature, new feature spec.

    Also in 12 projects that use this

  • qwlabsSkill

    claude-handoff

    Hand the current conversation off to a fresh background agent that picks up the work immediately.

    Also in 18 projects that use this

  • RoentekSkill

    loop-me

    Grill me about specs for the workflows I want to build, within this workspace.

    Also in 22 projects that use this

  • +5 more from aws

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Outcome: All items from the PRD's acceptance criteria or child issues are implemented, tested, reviewed, and committed.

    line 15
  2. Very specific:

    Step 0 — Quick assessment: If the work is trivial (single file, one obvious change), recommend /tdd and stop — this skill is unnecessary …

    line 22
  3. Very specific:

    If Issues from /story exist — each issue is a seam

    line 27
  4. Distinctive:

    If only a PRD — extract Acceptance Criteria as work items

    line 28
  5. Very specific:

    Update PRD Status from Sliced to In Progress in the PRD's status line

    line 30
  6. Very specific:

    Update the issue's status in the PRD's Sliced into list to — Done.

    line 41
  7. Distinctive:

    Step 4 — Full test suite: After all items are implemented, run the full test suite.

    line 43

“Common” is measured: kept by at least 6 in 10 of the 175 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

Implement: Workflow Orchestration

🥷 Implement from PRD or issues — orchestrate /tdd, test, review, commit.

Sequences the full implementation pipeline for a set of pre-agreed vertical slices: delegate to /tdd where testable, implement directly where not, run typechecking and tests after each seam, dispatch /review at the end, and commit per completed item.

Outcome Contract

  • Outcome: All items from the PRD's acceptance criteria or child issues are implemented, tested, reviewed, and committed.
  • Done when: Each seam is GREEN (typecheck + tests pass), /review has been dispatched, and each item is committed.
  • Evidence: Typechecker passes per item, test suite passes per item and in full, /review report produced, commits visible on current branch.
  • Output: Summary of implemented items, commits made, test results, next step.

Process Summary

Step 0 — Quick assessment. If the work is trivial (single file, one obvious change), recommend /tdd and stop — this skill is unnecessary overhead.

Step 1 — Entry Protocol. Apply the Skill Entry Protocol. Read project config (docs/agents/), domain docs (CONTEXT.md, ADRs, research INDEX), and the input work items (PRD or Issues from /story). Check upstream quality: if PRD Traceability shows Created by: /story (minimal PRD), note that requirements may not be decision-complete; if Grilled by is empty, note the plan is unvalidated.

Step 2 — Work Inventory. List all items to implement:

  • If Issues from /story exist — each issue is a seam
  • If only a PRD — extract Acceptance Criteria as work items
  • Sort by dependency order (blocked-by relationships from /story)
  • Update PRD Status from Sliced to In Progress in the PRD's status line

Step 3 — Implement each seam. For each work item in dependency order:

  1. Assess TDD suitability — does this item have clear acceptance criteria testable at a public interface boundary? (See REFERENCE.md §TDD Suitability)
  2. If suitable — call the Skill tool with "tdd" for this item. Put the implement workflow aside, execute tdd's full cycle (Steps 1-4) for this item, then resume here.
  3. If not suitable — implement directly, writing tests alongside code.
  4. Typecheck — run the project's typechecker. If it fails, fix before proceeding.
  5. Test — run the test suite for this item / changed files. All must pass.
  6. Commit — commit with a descriptive message referencing the issue (format: [PRD-NNNN] <seam description> — <summary>).

Update the issue's status in the PRD's Sliced into list to — Done.

Step 4 — Full test suite. After all items are implemented, run the full test suite. If anything fails, return to the affected item and fix.

Step 5 — Recommend /review. Present the completed changes and instruct: "Next: Run /review to review all changes before merge."

Step 6 — Output. Produce summary of implemented items, commits made, test results.

See REFERENCE.md for detailed step instructions, TDD suitability checklist, direct implementation guidelines, and recovery procedures.

Gotchas

What happenedRule
/tdd was run on an item that had unclear requirementsREFERENCE §3a: assess TDD suitability first — /tdd requires clear, testable acceptance criteria
Tests failed after direct implementationStep 3.5: run tests per item immediately — don't batch all changes before testing
Typechecker not configured for the projectStep 3.4: detect typechecker from project config (tsconfig, pyproject.toml, etc.); if none, skip and note the gap
Work items had hidden dependency on incomplete itemsStep 2: read blocked-by relationships from /story issues; implement in dependency order
/tdd was cancelled mid-cycle by the userREFERENCE §3b: resume from last completed /tdd phase; if no completed phases, move item to direct implementation
Commit conflicts with uncommitted work not from this sessionStep 3.6: warn user about existing dirty state; ask how to handle before committing
PRD Traceability shows ungrilled or unsliced stateStep 1: flag the gap in output but proceed — implement is not blocked by missing upstream steps
User expected /review to run automaticallyStep 5: dispatch /review as a recommendation (per no-auto-chain convention); do not auto-run it

Output

Implement complete.

**Work items:**
* <issue-#N / PRD acceptance criterion> — /tdd | direct — commit <hash>
* <issue-#M / PRD acceptance criterion> — /tdd | direct — commit <hash>

**PRD**: PRD-NNNN — Status: In Progress

**Full test suite**: <pass / N failures>

**Next**: Run /review to review all changes before merge.

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.