complete-slice
Skill2 starsChanged 6 months agoMITView on GitHub
Implement a vertical slice from SLICES.md end-to-end using TDD. Use when user wants to code a slice of a project or mentions "complete slice
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- updating-ai-knowledgeSkill
- define-projectSkill
- iterate-planSkill
- plan-to-slicesSkill
- role-buildSkill
- role-deploySkill
- role-harness-engineerSkill
- role-qaSkill
- role-rootSkill
- role-verifySkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Verify: All acceptance criteria met and covered by passing tests.
- Very specific: line 24
Close the slice: Check the boxes in SLICES.md.
- Very specific: line 32
Not for: research spikes with no code deliverable, pure documentation, project planning (use plan-to-slices)
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Take one slice from SLICES.md and ship it. Often for dev work, but might be a different task that you should still complete to the standards of the company
Process
- Read the slice and the brief. Find the target slice. Internalize what it delivers. Read
PROJECT_BRIEF.mdfor architectural context - Orient in the codebase. Module boundaries, test patterns, naming, DI style, config approach, what prior slices built. Your code should feel native — same seams, same style. Greenfield: scaffolding + test runner + lint + CI belong inside slice 1, not as separate phases
- Plan the TDD sequence. Map acceptance criteria to red-green-refactor cycles. Start with the criterion that proves the core approach. Decide what's a real collaborator and what's a system boundary to mock. Keep the plan light. Use judgement for when to use TDD or take a different approach
- Build one test at a time. Red → green → refactor. One failing test, minimum code to pass, clean up while green, next. Public interfaces only; mock system boundaries only; tests survive internal refactors. Writing all tests first produces tests that describe imagined behavior, not actual. See tdd-reference.md for the full methodology
- Bake SRE in as you go. Structured logs at decision points and error paths; metrics on the behaviors this slice introduces; health checks on new endpoints; errors that fail explicitly at boundaries with context; config externalized. Operational readiness isn't a final step — if it's not present when tests go green, it won't be added
- Verify. All acceptance criteria met and covered by passing tests. Observable outcomes demonstrably work — run it, hit the endpoint, read the logs. Full suite green, not just new tests. No unrelated changes mixed in
- Consider future agents by running
updating-ai-knowledge, often forAGENTS.md - Close the slice. Check the boxes in
SLICES.md. Follow-up work, discovered edge cases, or risks land in the relevant future slice, or in a## Notessection at the bottom ofSLICES.md - Report what you shipped and verified back to whoever ran you
Scope
Feature work, infrastructure-as-code, migrations, instrumentation, perf, bug fixes, deploy automation. Language, framework, and cloud agnostic
Not for: research spikes with no code deliverable, pure documentation, project planning (use plan-to-slices)
Skills you lean on: the verify subagent before declaring done, and a subagent for a second opinion or implementation partner
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.

