tdd
Skill9 starsChanged 8 months agoMITView on GitHub
Create or update docs/TECHNICAL_DESIGN_DOCUMENT.md — testing strategy, dev environment, CI/CD, coding standards, linter/formatter choices. Use when the user asks to define testing strategy, set up CI/CD, pick linters/formatters, standardize the dev setup, or says 'how should we test this', 'what's our coding style', 'write the tech design doc', 'set up conventions for the repo'.
193 other projects use a version of this.
Adopted by
Most recently taken up by
- mattpocock/skillstheir own version, first seen Oct 8, 2026
- rafaelob/pragmatic-agent-skillstheir own version, first seen Oct 5, 2026
- AlexisBalayre/claude-code-configtheir own version, first seen Oct 5, 2026
- KroxiDev/engineering-skillstheir own version, first seen Oct 5, 2026
- gaia-react/gaiatheir own version, first seen Oct 5, 2026
- uzairansaruzi/p3-stacktheir own version, first seen Oct 5, 2026
Used with
Projects with it also use make-bot-ui, Poteto Mode 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.
eryzerzSkillmake-bot-ui
Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.
Also in 8 projects that use this
jtarorehSkillPoteto Mode
poteto's agent style for concise, detailed responses, deliberate subagents, unslopped prose, simple code, and verified work. Use for poteto, /poteto-mode, or requests to work in this style.
Also in 5 projects that use this
risadamsSkillwhich-skill
Router over this pack's skills and flows. Ask it "which skill fits X" when you don't remember what's available.
Also in 7 projects that use this
TheOnlyFusionCubeSkillprinciple-attack-the-premise
Inventory who actually owns or exhibits the imbalance, then challenge the shared premise before writing another patch. Use when two or more fixes that share one premise have failed the same gate.
Also in 11 projects that use this
TheOnlyFusionCubeSkillprinciple-test-behavior-not-implementation
Call the system the way its consumer does and assert meaningful observable output; avoid mocks or assertions that only mirror internal calls. Use when when writing or evaluating tests.
Also in 11 projects that use this
shreyT19Skillprinciple-laziness-protocol
Apply when refactoring, evaluating diff size, or tempted to add abstractions, layers, or signal threading. Bias toward deletion and the smallest change that solves the problem.
Also in 22 projects that use this
Other versions193 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 193
- mattpocock/skills★ 335ksame name
- Yeachan-Heo/oh-my-claudecode★ 40ksame name
- open-metadata/OpenMetadata★ 15ksame name
- vinvcn/mattpocock-skills-zh-CN★ 4.6ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- rohitg00/pro-workflow★ 2.9ksame name
- crbnos/carbon★ 2.7ksame name
- codeaholicguy/ai-devkit★ 1.6ksame name
- backnotprop/pstack★ 991same name
- kdlbs/kandev★ 899same name
183 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 repository20 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- dotfiles/CLAUDE.mdCLAUDE.md
- adrSkill
- architectureSkill
- autopilotSkill
- commitSkill
- designSkill
- factorySkill
- featureSkill
- fixSkill
- issuesSkill
- new-projectSkill
- prdSkill
- prSkill
- reviewSkill
- rfcSkill
- roadmapSkill
- securitySkill
- specSkill
- verify-designSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 6 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 177 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Create the Technical Design Document.
- Distinctive: line 9
Before interviewing, explore the project's current build and test setup:
- Very specific: line 12
Read docs/TECHNICAL_DESIGN_DOCUMENT.md — if revising, don't start from scratch
- Distinctive: line 13
Read CLAUDE.md for build/test commands
- Very specific: line 14
Read docs/ARCHITECTURE.md if it exists (for technology context)
- Distinctive: line 15
Read README.md for setup instructions
- Very specific: line 18
Look for test directories (tests/, __tests__/, spec/, *_test.go, *.test.ts, test_*.py)
- Very specific: line 19
Read package.json, pyproject.toml, Cargo.toml, Makefile, docker-compose.yml for tooling, test commands, dependencies
- Distinctive: line 20
Read 1-2 existing test files to understand patterns (fixtures, helpers, naming)
- Very specific: line 21
Check for CI config (.github/workflows/, .gitlab-ci.yml, Jenkinsfile)
- Very specific: line 22
Check for linter/formatter config (.eslintrc, ruff.toml, .golangci.yml, rustfmt.toml)
- Distinctive: line 27
Use AskUserQuestion to understand how the team builds, tests, and ships.
- Very specific: line 135
No architecture doc? → "Define system structure with /architecture"
- Very specific: line 136
No threat model? → "Consider /security for the threat model"
“Common” is measured: kept by at least 6 in 10 of the 177 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
Create the Technical Design Document. Argument: $ARGUMENTS
Context Gathering
Before interviewing, explore the project's current build and test setup:
- Check for existing docs:
- Read
docs/TECHNICAL_DESIGN_DOCUMENT.md— if revising, don't start from scratch - Read
CLAUDE.mdfor build/test commands - Read
docs/ARCHITECTURE.mdif it exists (for technology context) - Read
README.mdfor setup instructions
- Read
- Explore the codebase:
- Look for test directories (
tests/,__tests__/,spec/,*_test.go,*.test.ts,test_*.py) - Read
package.json,pyproject.toml,Cargo.toml,Makefile,docker-compose.ymlfor tooling, test commands, dependencies - Read 1-2 existing test files to understand patterns (fixtures, helpers, naming)
- Check for CI config (
.github/workflows/,.gitlab-ci.yml,Jenkinsfile) - Check for linter/formatter config (
.eslintrc,ruff.toml,.golangci.yml,rustfmt.toml) - Summarize what you found to the user before starting — "Here's what I see in the project: ..."
- Look for test directories (
Interview
Use AskUserQuestion to understand how the team builds, tests, and ships. Adapt based on what the codebase already reveals.
- Testing strategy — What test frameworks are in use? Where do tests live? Are there separate unit/integration/e2e layers? What needs integration tests vs unit tests? Any critical flows that need e2e coverage?
- Dev environment — How do developers set up locally? Docker, nix, manual install? What external services are needed (databases, queues, caches)?
- CI/CD pipeline — What runs on every PR? What runs nightly? What gates block merging? How are deployments triggered?
- Coding standards — Linter config, formatter, type checker? Any style guides or conventions not captured in tooling?
- Tooling decisions — Package manager, build system, monorepo tools? Why these over alternatives?
- Error handling & observability — Logging framework, error tracking, metrics? How do you debug production issues?
- Dependencies — How are deps managed? Pinned versions? Vulnerability scanning? Update cadence?
For inherited projects, explore before asking — "I see you have pytest with a tests/ folder but no integration tests yet — is that intentional?" and "Your CI runs make test but there's no lint step — is that by design?"
Write
Write to docs/TECHNICAL_DESIGN_DOCUMENT.md:
# Technical Design Document
**Version:** [version]
**Date:** [date]
## Testing Strategy
[This section is the source of truth that all other skills (/feature, /fix, /roadmap, /autopilot) reference when deciding what tests to write.]
### Test Layers
| Layer | Scope | Framework | Run Command | When to Write |
|-------|-------|-----------|-------------|---------------|
| Unit | Single function/module, no I/O | [e.g., pytest, vitest, go test] | [e.g., make test-unit] | Every change — business logic, pure functions, validators |
| Integration | Component boundaries, real dependencies | [e.g., pytest + testcontainers, supertest] | [e.g., make test-integration] | API endpoints, database queries, service interactions, middleware |
| E2E | Full user flows, production-like environment | [e.g., playwright, cypress, k6] | [e.g., make test-e2e] | Critical user paths, auth flows, payment flows |
### Test Conventions
- **File location:** [e.g., `tests/unit/`, `tests/integration/`, `tests/e2e/` or colocated `__tests__/`]
- **Naming:** [e.g., `test_<module>.py`, `<module>.test.ts`, `<module>_test.go`]
- **Fixtures/factories:** [where shared test helpers live]
- **Test database:** [how integration tests get a database — testcontainers, sqlite, etc.]
- **CI behavior:** [which layers run on PR, which run nightly]
### Coverage Expectations
- Unit tests: cover all business logic, validation, and error paths
- Integration tests: cover all API endpoints, database operations, and external service calls
- E2E tests: cover critical user journeys (list the 3-5 most important flows)
## Dev Environment
### Setup
[Step-by-step local setup. Prerequisites, install commands, env vars.]
### External Dependencies
| Service | Local Setup | Purpose |
|---------|------------|---------|
| [e.g., PostgreSQL] | [e.g., docker compose up] | [e.g., primary data store] |
## CI/CD Pipeline
### PR Checks
| Check | Command | Blocks Merge |
|-------|---------|-------------|
| [e.g., Lint] | [e.g., make lint] | Yes |
| [e.g., Unit tests] | [e.g., make test-unit] | Yes |
| [e.g., Integration tests] | [e.g., make test-integration] | Yes |
| [e.g., E2E tests] | [e.g., make test-e2e] | No (nightly) |
### Deployment
[How deployments are triggered. Environments, promotion strategy, rollback procedure.]
## Coding Standards
- **Linter:** [tool and config file]
- **Formatter:** [tool and config file]
- **Type checker:** [tool and config file]
- **Conventions not captured in tooling:** [anything humans need to know]
## Tooling
| Tool | Purpose | Why This Over Alternatives |
|------|---------|---------------------------|
| [tool] | [what it does] | [rationale] |
## Error Handling & Observability
- **Logging:** [framework, format, levels]
- **Error tracking:** [service, how errors are reported]
- **Metrics:** [what's measured, where dashboards live]
## Dependency Management
- **Package manager:** [tool]
- **Version strategy:** [pinned, ranges, etc.]
- **Vulnerability scanning:** [tool, frequency]
- **Update cadence:** [how often, who owns it]Adapt the structure to the project. A small project may skip Observability. A monorepo may need per-package sections. Use judgment.
After Writing
- Present the document to the user for review. Iterate until they're satisfied.
- Suggest next steps based on what exists:
- No architecture doc? → "Define system structure with
/architecture" - No threat model? → "Consider
/securityfor the threat model" - Ready to build? → "Create feature specs with
/spec <name>, then/roadmap"
- No architecture doc? → "Define system structure with
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.

