implement
Skill0 starsChanged 10 days agoMITView on GitHub
Write code test-first (red, green, refactor, one test at a time), for bugs and features alike. Use to implement an approved spec, fix a bug, or add behaviour.
192 other projects use a version of this.
Adopted by
Most recently taken up by
- revisit-studies/studytheir own version, first seen Nov 9, 2026
- dz114879/skillstheir own version, first seen Nov 8, 2026
- Dimon94/dveritytheir own version, first seen Nov 8, 2026
- Dimon94/skillstheir own version, first seen Nov 8, 2026
- The-Vibe-Company/quivrtheir own version, first seen Nov 8, 2026
- miklschmidt/archboardtheir own version, first seen Nov 8, 2026
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.
liufeng1976Skillsetup-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 43 projects that use this
GoogleSkillask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Also in 91 projects that use this
RoentekSkillloop-me
Grill me about specs for the workflows I want to build, within this workspace.
Also in 50 projects that use this
AWSSkillto-questionnaire
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
Also in 88 projects that use this
ryotaroh180105Skillclaude-handoff
Hand the current conversation off to a fresh background agent that picks up the work immediately.
Also in 42 projects that use this
GoogleSkillto-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 168 projects that use this
- +3 more from google
Other versions192 projects use a version of this.
Word for word · 1
- serhiileniv/skills★ 0100% same
Edited · 0
None found.
Wrote their own version · 191
- mattpocock/skills★ 309ksame name
- QuivrHQ/quivr★ 40ksame name
- The-Vibe-Company/quivr★ 40ksame name
- foambubble/foam★ 17ksame name
- formbricks/formbricks★ 13ksame name
- ArcReel/ArcReel★ 6.3ksame name
- vinvcn/mattpocock-skills-zh-CN★ 5.5ksame name
- fallow-rs/fallow★ 5.3ksame name
- withcoral/coral★ 4.9ksame name
- bestofjs/bestofjs★ 3.1ksame name
181 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.
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 11 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 171 edited versions we read keep these.
11
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
- Distinctive: line 17
No test runner in the repo → stop and say so.
- Distinctive: line 21
Read the code the change touches and trace the real flow before listing anything.
- Distinctive: line 36
Run it. Watch it fail for the reason you stated.
- Distinctive: line 48
Never cut: validation at trust boundaries, data-loss handling, security, accessibility, anything requested.
- Distinctive: line 51
No code for tests not yet written.
- Distinctive: line 55
Only on green. Aim it at the next reader:
- Distinctive: line 57
Follow the conventions of the files you touch: naming, layering, error handling.
- Distinctive: line 58
No abstraction nobody asked for: no one-implementation interface, no config for a constant, no scaffolding for later.
- Distinctive: line 60
Remove duplication you introduced.
- Distinctive: line 61
Delete what you made dead: unused code, imports, commented-out lines.
- Distinctive: line 63
Run the full suite after.
- Very specific: line 80
Do not commit. The user commits.
“Common” is measured: kept by at least 6 in 10 of the 171 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
/ccs:implement
Code is done when a test that used to fail now passes, and the suite is green.
Step 0 — route
- Non-trivial and no spec →
/ccs:specfirst. - A bug whose cause is not established →
/ccs:root-causefirst, then take its root cause and evidence rather than re-deriving them. Fixing an untraced symptom produces a second bug behind the first. - No test runner in the repo → stop and say so. Choosing one is a spec.
Step 1 — test list
Read the code the change touches and trace the real flow before listing anything. The smallest change in the wrong place is a second bug.
- From a spec: one line per acceptance criterion.
- From a bug: one line, the reproduction.
- Otherwise: one line per behaviour in the request.
A criterion no test can check stays on the list as manual: <why> — never dropped.
Show the list before writing code.
Step 2 — red
One test, where the repo already keeps its tests, in the style already used there. It asserts behaviour through the public interface, not internals or the current output.
Run it. Watch it fail for the reason you stated. A compile error or a setup mistake is not red. A test you never saw fail is not evidence.
Step 3 — green
Smallest code that makes that test pass. Stop at the first rung that holds: not needed → skip · already in the repo → reuse · stdlib, platform or an installed dependency → use it · one line → one line · else the minimum that works. Two options the same size → the one correct on edge cases.
- A bug: grep every caller of what you touch; fix it once, where they all route through.
- A new dependency is a design change → step 5.
- Never cut: validation at trust boundaries, data-loss handling, security, accessibility, anything requested.
- A shortcut with a known ceiling gets a one-line comment: the ceiling, and when to upgrade.
- No code for tests not yet written. No refactors, cleanups or renames mixed in.
Step 4 — refactor
Only on green. Aim it at the next reader:
- Follow the conventions of the files you touch: naming, layering, error handling.
- No abstraction nobody asked for: no one-implementation interface, no config for a constant, no scaffolding for later.
- Remove duplication you introduced. Boring over clever. Fewest files.
- Delete what you made dead: unused code, imports, commented-out lines.
Run the full suite after.
Step 5 — next
Tick the item, back to step 2. New behaviour, or a second bug, found on the way → append it to the list. Never build it silently.
A design change mid-way → stop. Update the spec, or run /ccs:spec if there is none.
Step 6 — done
- the full suite passes — run it, do not assume
- the repo's typecheck and lint gates pass, if it has them
Report each list item → test name or manual, then the actual suite output. For a bug,
add the root cause in one line. What you skipped, one line each: skipped: X, add when Y.
Do not commit. The user commits. Before a PR, suggest /ccs:review. Then write the report (below).
Writing
One line where one line does. Answer first. State the fact, not the story behind it — no narrating what was tried, no paragraph restating the line above. Two things always stay: why a non-obvious decision was made, and what a check cannot do. Caveats and risks still get said, one line each.
Outcome: success = every list item green or manual, suite green · partial = items left · failed = suite red, or stopped.
Report
Last step, every run, whatever the outcome: write .ccs/reports/<skill>/<YYYY-MM-DD>-<slug>.md
at the repo root, and add .ccs/ to .git/info/exclude if missing. One line per field,
no secrets, tokens or customer data. Print the path.
---
skill: <skill>
date: <YYYY-MM-DD>
repo: <owner/name>
target: <argument, one line>
outcome: success | partial | failed
learned: false
---
Used: <tools, CLIs, MCPs, files that did the work>
Found: <the result, one or two lines>
Friction: <what slowed or blocked it; a user correction; "none">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.

