testing-tdd
Skill0 starsChanged 2 months agoMITView on GitHub
Red (failing test) → Green (minimal code) → Refactor. Evidence comes from captureTddSuiteEvidence, not handmade JSON. NOT for docs-only changes or when the Task Card forbids tests. 1. Write the failing test that encodes one acceptance criterion. Run the suite. It MUST fail (suiteFails === true). 2. Implement the minimum that turns it green. Do not expand scope. 3. Refactor only with a green suite. 4. Capture evidence via the verification runner (openspec done on test/implement when TDD is required).…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Mesteriis/Engineering-Bible-AItheir own version, first seen Jun 28, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Mesteriis/Engineering-Bible-AI★ 0same name
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 repository193 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/behavioral-discipline.mdcCursor rule
- .cursor/rules/context-budget.mdcCursor rule
- .cursor/rules/orchestration.mdcCursor rule
- .cursor/rules/yagni-stdlib.mdcCursor rule
- androidSkill
- android-ui-designSkill
- api-versioningSkill
- astroSkill
- auth-token-inspectorSkill
- backlogSkill
- cc-api-contractSkill
- cc-db-migrationSkill
- cc-featureSkill
- cc-fixSkill
- cc-pagespeedSkill
- cc-refactorSkill
- cc-reviewSkill
- cc-spec-mutationSkill
- cc-tdd-cycleSkill
- cc-test-planSkill
- code-reviewSkill
- commitSkill
- conductor-setupSkill
- councilSkill
- django-ormSkill
- django-testingSkill
- django-uvSkill
- drizzle-schema-architectSkill
- evaluationSkill
- fastapi-pydantic-strictSkill
- find-skillsSkill
- jpa-nplusone-detectorSkill
- jpa-postgresSkill
- laravel-specialistSkill
- livewire-alpine-bridgeSkill
- multi-agent-orchestrationSkill
- nextjs-typescriptSkill
- openspecSkill
- pagespeed-insightsSkill
- pagespeed-perfSkill
- php-proSkill
- python-django-stackSkill
- python-fastapi-stackSkill
- pythonSkill
- security-ai-llmSkill
- security-blue-teamSkill
- security-cloudSkill
- security-cryptoSkill
- security-exploit-devSkill
- security-grcSkill
- security-incident-responseSkill
- security-log-analysisSkill
- security-malware-analysisSkill
- security-mobileSkill
- security-networkSkill
- security-ot-icsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
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
- Very specific: line 24
Write the failing test that encodes one acceptance criterion.
≈ “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
Test-Driven Development
Overview
Red (failing test) → Green (minimal code) → Refactor. Evidence comes from
captureTddSuiteEvidence, not handmade JSON.
When to Use
/cc-tdd-cycle, new behavior, bug fixes, TDD-required OpenSpec items
NOT for docs-only changes or when the Task Card forbids tests.
Process
- Write the failing test that encodes one acceptance criterion. Run the suite.
It MUST fail (
suiteFails === true). - Implement the minimum that turns it green. Do not expand scope.
- Refactor only with a green suite.
- Capture evidence via the verification runner (
openspec doneon test/implement when TDD is required). - Cover happy path, edge, and error for each behavior.
Local: bun run dev. Pyramid default: many unit, fewer integration, rare E2E.
Common Rationalizations
| Rationalization | Reality |
| I'll add tests later | Later means never. Red first. |
| This is too small to test | If it can break, it needs a failing test first. |
| I'll write the evidence JSON | Handmade TDD JSON is rejected. |
Red Flags
- Tests that assert implementation details instead of behavior
- Green without a recorded red
- Skipping error cases
Verification
- Suite failed before implement
- Suite passed after implement
- Runner evidence exists (not handmade)
- Optional:
bun run dev scorecard suite-run --suite workflow-gates
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.

