implement
Run the implement loop: dispatch fresh pi subagents to build each ticket as a red-green vertical slice, then run the full suite, review the diff, and commit.
Skill by willthong
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/willthong-implement
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/implement
What's inside
- Skill name
implement- Description
- Run the implement loop: dispatch fresh pi subagents to build each ticket as a red-green vertical slice, then run the full suite, review the diff, and commit. Use when the user asks to implement or build a spec or tickets, or when another skill must execute the loop.
- License
- MIT
- Instructions
- 63 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- openai.yaml · agents/
SKILL.md (first lines)
# The implement loop A fixed state machine. You are the **loop runner**: you never write the code yourself. Each state dispatches one fresh `pi` subagent, checks its reply against the state's completion criterion, then advances. Every state runs once, in order; only a state's own fix branch repeats it. If the user passes a ticket reference, fetch it from the issue tracker and state its title before starting. If the reference is ambiguous, ask. One dispatch shape, always from the repo root: ```bash pi --no-session -p "<PROMPT>" ``` Subagent prompts are **context pointers**, never pasted content: point at files with `@path`, name the seam, and let the subagent read the rest. Fill each `<...>` placeholder; nothing else changes between runs. ## 0. Pin the queue Read the spec and tickets and write the **work order**: an ordered list of **vertical slices**, each with its **seam** — the public interface the slice is tested at. Take the seam from the spec, ticket, or an ADR; ask the user only for a slice that declares none. Record the review base before any dispatch: `git rev-parse HEAD`. **Done when** every slice has a seam and the base commit is recorded. No dispatch before both hold. ## 1. RED — write the failing test Dispatch pi: > Load the `tdd` skill. You are building one vertical slice. Spec: `@<spec-path>`. Ticket: `@<ticket-path>`. Seam: `<seam>`. > Write one failing test for `<slice>` at that seam, in the project's existing test layout. Run it and confirm it fails for the asserted reason — not a missing import, not a setup error. Write only the test; the implementation is the next step's job. **Done when** the reply shows the test on disk and a run that failed at the assertion, not the harness. ## 2. GREEN — make it pass Dispatch pi: > Load the `tdd` skill. Spec: `@<spec-path>`. Ticket: `@<ticket-path>`. Seam: `<seam>`. The failing test is `@<test-path>`. > Make that test pass with the smallest change. Run the project's typecheck and only that test file. Add only what the test forces; touch only what it forces. **Done when** the single test passes and the typecheck is clean. If either fails, dispatch pi once more — "Fix the failures in `@<test-path>`; run the typecheck and that test file" — and re-check. After two failed fix attempts, stop and report to the user. ## 3. Advance Move to the next slice in the work order and return to RED. When the queue is empty, go to FULL. ## 4. FULL — the whole suite Dispatch pi: > Run the full test suite and the typecheck. Fix anything that broke, re-running the suite until clean. Report what passes and any failure you could not fix. **Done when** the reply reports the full suite and the typecheck clean. ## 5. REVIEW — two axes Dispatch pi: > Load the `code-review` skill and run it. Fixed point: `<base>`. Spec: `@<spec-path>`. **Done when** the two-axis report is back. If it found issues, dispatch pi once — "Fix these findings in the working tree: <findings>; re-run the affected tests and the full suite" — and re-check. Leave committing to the final step. ## 6. COMMIT Commit the work to the current branch with a message naming the tickets it closes.
From willthong/agent-skills, MIT.
More from willthong/agent-skills
- 0.539score
tdd
willthong
Test-driven development.
SkillAFreshness: AClaude Code +9 - 0.539score
code-review
willthong
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented coding…
SkillAFreshness: AClaude Code +9 - 0.539score
codebase-design
willthong
Shared vocabulary for designing deep modules.
SkillAFreshness: AClaude Code +9 - 0.539score
domain-modeling
willthong
Build and sharpen a project's domain model.
SkillAFreshness: AClaude Code +9 - 0.536score
improve-codebase-architecture
willthong
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
SkillAFreshness: AClaude Code +9 - 0.533score
ask-matt
willthong
Ask which skill or flow fits your situation.
SkillAFreshness: AClaude Code +9 - 0.530score
retro
willthong
Conduct a retrospective on a coding session.
SkillAFreshness: AClaude Code +9 - 0.529score
agent-reach
willthong
Search and read across 10+ internet platforms — Twitter/X, Reddit, Facebook, Instagram, LinkedIn, YouTube, GitHub, RSS, and web search — via the agent-reach…
SkillBFreshness: BClaude Code +9 - 0.528score
handoff
willthong
Compact the current conversation into a handoff document for another agent to pick up.
SkillAFreshness: AClaude Code +9 - 0.524score
humanizer
willthong
Rewrite AI-sounding text so it reads naturally without changing what it says.
SkillBFreshness: BClaude Code +9 - 0.522score
run-implement
willthong
Run the implement loop.
SkillAFreshness: AClaude Code +9 - 0.521score
defuddle
willthong
Extract clean markdown from any web page using the Defuddle CLI, stripping navigation, ads, and clutter to save tokens.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 12, 2026 (16 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/willthong/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from willthong
- 0.539score
tdd
willthong
Test-driven development.
SkillAFreshness: AClaude Code +9 - 0.539score
codebase-design
willthong
Shared vocabulary for designing deep modules.
SkillAFreshness: AClaude Code +9 - 0.539score
code-review
willthong
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented coding…
SkillAFreshness: AClaude Code +9 - 0.539score
domain-modeling
willthong
Build and sharpen a project's domain model.
SkillAFreshness: AClaude Code +9 - 0.536score
improve-codebase-architecture
willthong
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
SkillAFreshness: AClaude Code +9 - 0.533score
ask-matt
willthong
Ask which skill or flow fits your situation.
SkillAFreshness: AClaude Code +9
Cite this page
implement skill. Agent Mart. https://agentmart.dev/skills/willthong-implement (last updated 2026-10-24)