feature
Skill9 starsChanged 19 days agoMITView on GitHub
Implement a feature from a spec (docs/specs/NNN_<name>.md), a spec slice, or a GitHub issue: write the code and tests, run the checks, and stop with a working tree to review. --commit also commits; --pr also opens the PR and runs its review. Use for 'implement the auth spec', 'build feature X', 'code up the Y spec', 'work on issue #42', or any request to execute a spec. For bugs use /wf:fix.
84 other projects use a version of this.
Adopted by
Most recently taken up by
- strands-agents/boxtheir own version, first seen Nov 29, 2026
- Jack-Wiebe/agent-skillstheir own version, first seen Nov 29, 2026
- LazyAutomatar/spec-reusetheir own version, first seen Nov 29, 2026
- hacagahasanli/agents-knowtheir own version, first seen Nov 29, 2026
- AhmedTmorgan/crewtheir own version, first seen Nov 29, 2026
- mentealterne/GYOStheir own version, first seen Nov 29, 2026
Used with
Projects with it also use bug, bugfix and 8 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.
paulocsbSkillbug
Investigation playbook for fixing a bug. Walks through 5 phases: reproduce → isolate → root cause → propose fix → validate. Forces concrete reasoning with code reads, log inspection, and git blame instead of pattern-matching guesses. Use for any non-trivial defect.
Also in 9 projects that use this
team-attentionSkillbugfix
Root cause based one-shot bug fix. debugger diagnosis → requirements.md generation → /execute. /bugfix "error description" Full investigation pipeline: debugger + gap-analyzer + standard verify. QA suggestion after successful fix.
Also in 8 projects that use this
aegiswizardSkillcontext
Also in 5 projects that use this
marylinSkillrecover
Recover work from a crashed or interrupted session. Use when Claude crashed mid-task, after an unexpected exit, when you see 'stale sessions detected', or when you lost context and need to figure out what was happening.
Also in 3 projects that use this
codebycoreySkilladopt
Adopt an existing plan from conversation context into delta-spec format. Use when importing a plan, adopting planning that already happened, capturing plan mode output, or bringing in prior design work.
Also in 4 projects that use this
AWSSkillmap
Map verified service capabilities against customer-provided control framework and threat model. Produces mapping-results.json, controls-catalog.md, and framework-mapping.md. Supports pluggable frameworks: CCMv4, NIST 800-53, CIS Benchmarks, ISO 27001, etc. Split into 4 focused sub-skills for better accuracy; this skill orchestrates them.
Also in 4 projects that use this
Other versions84 projects use a version of this.
Word for word · 1
- rafagomes/ai-workflow★ 9100% same
Edited · 0
None found.
Wrote their own version · 83
- crbnos/carbon★ 2.9ksame name
- aaronjmars/aeon★ 800same name
- aeonfun/aeon★ 800same name
- astashov/liftosaur★ 793same name
- strands-agents/box★ 650same name
- yicheng47/runner★ 584same name
- me2resh/apexyard★ 542same name
- bradtraversy/coding-with-ai-course-resources★ 360same name
- garagon/nanostack★ 206same name
- DeL-TaiseiOzaki/claude-code-orchestra★ 199same name
73 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- dotfiles/CLAUDE.mdCLAUDE.md
- adrSkill
- architectureSkill
- autopilotSkill
- commitSkill
- designSkill
- fixSkill
- issuesSkill
- new-projectSkill
- prdSkill
- prSkill
- roadmapSkill
- specSkill
- threat-modelSkill
- verify-designSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.
0
Common
Most of the 77 edited versions we read keep these.
1
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
- Very specific: line 15
No spec found → ask whether to create one via /wf:spec <name> or build from an inline description.
- Very specific: line 35
UI work: If the spec names a design reference, or docs/design/DESIGN_SYSTEM.md exists, read it before writing UI code and follow its …
- Very specific: line 45
Settle open decisions first: If the spec leaves a design decision open, settle it with the user before writing code.
- Distinctive: line 49
Quality checks: Run the project's lint, typecheck and tests (commands are in the project's agent instructions (CLAUDE.md or AGENTS.md) or …
- Very specific: line 51
Feature flag: If the spec's Flag: names a flag other than none (or its ## Feature Flag section does), verify the new behavior is gated by …
“Common” is measured: kept by at least 6 in 10 of the 77 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.
Files
Implement the feature described in $ARGUMENTS.
In hosts that do not substitute $ARGUMENTS (e.g. Codex), it is the text the user wrote after the skill name.
Parse arguments
<name>→ resolve todocs/specs/NNN_<name>.mdby matching the suffix after theNNNprefix (numbering rules are in/wf:spec). A sliced spec is a directorydocs/specs/NNN_<name>/: implement one slice at a time, ask which slice, and never use itsREADME.md. If several specs match, ask which.<path>.md→ use that path.#<N>→ rungh issue view <N> --commentsand find the spec whose**Issue:**line in## Trunk Metadatais#<N>, or the slice whose row in a sliced spec'sREADME.mdSlices table has#<N>in itsIssuecolumn. If none matches, ask whether to create a spec first (/wf:spec) or build inline from the issue text. Ifghis unavailable, ask for the issue text.- No spec found → ask whether to create one via
/wf:spec <name>or build from an inline description. --commit→ once the feature is complete and verified, commit by following/wf:commit, skipping only the step that asks you to approve the commit plan. Output only thegit log --oneline -<N>lines for the new commits.--pr→ implies--commit, then open the PR by following/wf:pr, skipping only the step that asks you to approve the title and body./wf:pr's fresh-context review still runs. Output only thegit loglines, the PR URL and the review verdict. If the review has not converged after two rounds, leave the PR as a draft and report the findings.
Ask decisions with AskUserQuestion (recommended option first, labelled "(Recommended)"). Where AskUserQuestion is unavailable but the user can answer in chat (e.g. Codex), ask the same question in chat as a short numbered list and wait for the answer; a headless run or a dispatched agent has no such user, and the headless rule applies instead. If the user cannot be asked (a headless run), take the recommended option and list it as an assumption in the report.
Branch
Start with git fetch origin and compare against the tracking branch, since work may have moved on another machine. If the tree is dirty with unrelated changes, say so before starting. If the branch already has commits for this spec, read them and continue instead of redoing finished work.
Resolve the trunk branch as <base>: gh repo view --json defaultBranchRef -q .defaultBranchRef.name, falling back to git symbolic-ref --short refs/remotes/origin/HEAD with origin/ stripped. Work on a short-lived branch cut from origin/<base>, never from another feature branch (trunk forbids stacking). If uncommitted work sits on the wrong branch, carry it over with git switch -c rather than stashing.
Name the branch from the spec's ## Trunk Metadata — for a slice, from its row in the parent README.md Slices table, which holds the same fields:
<type>/<N>-<slug>when**Issue:**holds#<N>(e.g.feat/42-jira-sync).<type>/<slug>when it is—or empty: the issue is unfiled. Do not rename the branch when the issue is filed later; putCloses #<N>in the PR body.<slug>is the spec's file name with everything up to and including the first_removed, and without.md:docs/specs/003_jira-sync.md→jira-sync(and003.A_jira-sync.md→jira-sync). For a slice, join the parent directory's slug and the slice's, so two features with a same-named slice cannot collide:docs/specs/003_jira-sync/002_webhook.md→jira-sync-webhook./wf:autopilotderives the same name to find a task's PR, so do not improvise one.<type>is the spec's**Type:**(feat,fix,refactor,chore,test,docs,perf,build,ci,security). IfTypeis missing, warn and usefeat.
Worktree conventions are in your global agent instructions (~/.claude/CLAUDE.md or ~/.codex/AGENTS.md) (Trunk-Based Workflow).
UI work. If the spec names a design reference, or docs/design/DESIGN_SYSTEM.md exists, read it before writing UI code and follow its Implementation Fidelity Protocol; if the task is UI and there is no design source, say so in the report rather than inventing one.
Workflow
- Read the spec. Your tests must cover each Verification Criterion.
Pick a test strategy. Read the Testing Strategy in
docs/ARCHITECTURE.md(in older projects,docs/TECHNICAL_DESIGN_DOCUMENT.md) if it exists; otherwise infer it from the project (test dirs,package.json/pyproject.toml/Makefile, one or two existing tests). Unit tests always; integration tests when the feature crosses a boundary (API, DB, filesystem, subprocess); e2e only for critical user flows. In a monorepo, run checks from the package the spec touches. If no tests exist yet, set up the minimum infrastructure and tell the user.Place each test by what it covers, mirroring the project's
unit/andintegration/split: a test that crosses a real boundary is integration even if it runs fast, and pure logic is unit. Misplaced tests drift out of the slow-path CI filter and stop catching boundary regressions.- Settle open decisions first. If the spec leaves a design decision open, settle it with the user before writing code. Headless (a dispatched writer cannot ask), make the call and record it in the final report, and in the PR body when
--pris used. - Implement with tests at the layers step 2 chose, running them as you go. Vary the test data in whatever the code depends on (sizes, lengths, order, scale); uniform fixtures hide bugs. Before the quality checks, remove or break the behaviour each new test covers and see the test fail; rewrite a test that still passes.
Quality checks. Run the project's lint, typecheck and tests (commands are in the project's agent instructions (
CLAUDE.mdorAGENTS.md) or Makefile); report each in one line (command, result) and paste output only for a failure.Feature flag. If the spec's
**Flag:**names a flag other thannone(or its## Feature Flagsection does), verify the new behavior is gated by it. If the flag does not exist yet, create it, default off, as part of this slice.Risk tier. Take the spec's
**Risk:**(tiers are defined in Risk tiers in your global agent instructions (~/.claude/CLAUDE.mdor~/.codex/AGENTS.md)) and check it against the diff: a diff that hits a T2 criterion makes the change T2 whatever the spec says, and the diff wins when it is higher. With no spec tier, derive it from the diff. A T2 change is flagged in the report so the user knows it needs a human merge.Size gate. Measure the hand-written source this change adds:
git diff --numstat $(git merge-base origin/<base> HEAD) -- . ':(exclude,glob)**/tests/**' ':(exclude,glob)**/__tests__/**' ':(exclude,glob)**/*_test.*' ':(exclude,glob)**/*.test.*' ':(exclude,glob)**/*.spec.*' ':(exclude,glob)**/*_spec.*' ':(exclude,glob)**/test_*' ':(exclude,glob)**/*.lock' ':(exclude,glob)**/*-lock.*'This compares the working tree with the point the branch left the trunk, so it counts committed and uncommitted work alike. Sum the first column and add the line counts of new untracked source files (git status --porcelainlists them;git diffdoes not), applying the same exclusions and skipping binaries. Leave out generated files and files that only moved. Count the changed source files too: the same command with--name-only, plus the untracked ones. Past roughly 1,000 added lines or ~40 changed files, check it is still one concern. One concern: carry on, and say in the report how large it is and why it stays together. More than one: stop and ask. For a single-file spec, offer "ship as-is" plus one or two concrete splits (e.g. sub-slices underdocs/specs/NNN_<name>/), recommending "ship as-is" only when the bulk is mechanical. For a slice of a sliced feature, offer "ship as-is" and "defer these hunks to a follow-up slice". The number prompts the question and is not a cap: never split one concern to get under it.Report and stop. A reviewer needs cold context, so do not review your own work here:
/wf:prdispatcheswf:reviewer(wf-reviewerin Codex) once the commits exist. With--commitor--pr, run the flow under Parse arguments; on a pre-commit hook failure, stop and surface the error, never bypass with--no-verify.Without a flag, summarize:
- Files changed -
git diff --stat, or a short list. - Verification - each check in one line.
- Risk -
T1 — <why>, noting where the diff raised it above the spec. - Slice metadata - spec link and
Closes #N(or "none, ran before /wf:issues"), flag state, test plan.
Then stop. The user reviews the working tree and decides next steps, typically
/wf:committhen/wf:pr.- Files changed -
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
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.

