ack-tdd
Skill13 starsChanged 5 months agoMITView on GitHub
Test-driven implementation: agree the test seams with the user before any test, then work one vertical slice per cycle, failing test first, then the minimal code to pass, then refactor. Use when implementing a task that adds or changes behavior, such as a task group in ack-loop-02-implement.
In this repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- openspec-sync-specsSkill
- openspec-update-changeSkill
- ack-create-agents-mdSkill
- ack-create-checkpointSkill
- ack-create-skillSkill
- ack-create-user-contextSkill
- ack-drift-controlSkill
- ack-guideSkill
- ack-interviewSkill
- ack-interview-with-contextSkill
- ack-loop-01-readinessSkill
- ack-loop-02-implementSkill
- ack-loop-03-reviewSkill
- ack-loop-04-learningsSkill
- ack-loop-05-commitSkill
- ack-openspec-checkSkill
- ack-restore-checkpointSkill
- ack-sessionSkill
- ack-setupSkill
- ack-validate-agents-mdSkill
- ack-validate-skillSkill
- ack-validate-user-contextSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Use when implementing a task that adds or changes behavior, for example inside ack-loop-02-implement.
- Very specific: line 19
Do not use for changes with no behavior impact (documentation, formatting, a skip_specs: true change).
- Distinctive: line 29
Red: write one test for that slice at the agreed seam.
- Distinctive: line 30
Green: write the minimal code that makes it pass.
- Distinctive: line 43
No test before the seams are agreed.
- Distinctive: line 45
Do not add test dependencies without an explicit decision.
- Very specific: line 46
Do not commit; committing belongs to ack-loop-05-commit.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
Test-Driven Development
Purpose
Make every behavior change arrive with a test that failed before the change and passes after it, written at a seam the user agreed to. This skill adapts Matt Pocock's tdd skill.
When To Use
- Use when implementing a task that adds or changes behavior, for example inside
ack-loop-02-implement. - Do not use for changes with no behavior impact (documentation, formatting, a
skip_specs: truechange).
Required Inputs
- The task and the behavior it must produce (from the OpenSpec change's tasks and spec deltas, when there is one).
- The test seams named in the change's
design.md, if any. - A way to run the project's tests.
Workflow
- Agree the seams first. Take the seams from
design.md. If none are named, propose them with a recommended answer and get the user's agreement before writing any test. - Pick one slice: the smallest piece of behavior that is visible at a seam, cutting through every layer it needs (a vertical slice).
- Red: write one test for that slice at the agreed seam. Run it and show that it fails, for the expected reason.
- Green: write the minimal code that makes it pass. Run the tests and show they pass.
- Refactor: clean up with all tests still passing.
- Repeat from step 2 until the task's behavior is covered. Then report the slices, tests and runs.
Output Expectations
- For each slice: the test, the failing run, the passing run.
- Tests only at agreed seams, each able to fail without the change.
- A short report listing slices, tests and seams, ready for the implementation report.
Resources
- Cycle rules and anti-patterns:
references/cycle.md
Constraints And Safety
- No test before the seams are agreed; no code before a failing test.
- One slice per cycle; do not write a batch of tests first.
- Do not add test dependencies without an explicit decision.
- Do not commit; committing belongs to
ack-loop-05-commit.
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.

