ds-tdd
/ds-tdd
Fix a bug by first writing a focused test that fails for the right reason, then making the smallest change that makes it pass. Use when the user asks for TDD or a regression test, when a bug has a cheap local test target, or for /ds-tdd.
- Author
- adithyanraj03 ↗
- Repository
- dsh-skills-pack ↗
- Licence
- MIT
- Last repository change
- 12.11.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 12.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Fix a bug by first writing a focused test that fails for the right reason, then making the smallest change that makes it pass. Use when the user asks for TDD or a regression test, when a bug has a cheap local test target, or for /ds-tdd.
Original author description
Fix a bug by first writing a focused test that fails for the right reason, then making the smallest change that makes it pass. Use when the user asks for TDD or a regression test, when a bug has a cheap local test target, or for /ds-tdd.
How it works
- Steps
- Stop when
- Rules
SKILL.md preview
--- name: ds-tdd description: "Fix a bug by first writing a focused test that fails for the right reason, then making the smallest change that makes it pass. Use when the user asks for TDD or a regression test, when a bug has a cheap local test target, or for /ds-tdd." metadata: source: "adapted from github.com/aicodeking/deepseek-stack (MIT, (c) 2026 AICodeKing)" --- # ds-tdd Make the bug executable before touching production code, so the fix is proven, not claimed. ## Steps 1. Pin down the bug: expected behavior, actual behavior, the code path, and the smallest way to reproduce it. 2. Find the nearest existing test style for that code path. Use `graft_ask "tests for <function or module>"`, then `graft_skeleton` on the test file to see its helpers and fixtures. Fall back to grep only if the graft tools are not available. Use that style. Do not build a new harness just for this. 3. Write the smallest test that would have caught the bug. It checks intended behavior, not the current implementation. 4. Run it. Show the output. It must fail, and fail for the bug, not for a typo or missing import. If not, fix the test first. 5. Make the smallest production change that gives the intended behavior without breaking nearby contracts. 6. Run the new test and the surrounding suite. Show the output. 7. If a clean test is impractical (heavy setup, brittle mocks, production-only state), use the closest runnable check instead: a script, a repro command or a log check. Say why you skipped the test. ## Stop when - The new test failed before the fix and passes after it, both shown with output, and the surrounding suite passes. - Or after three fix attempts the test still fails. Stop, report what you learned and run /ds-unstick. ## Rules - Never edit a test to match a wrong implementation. - Do not weaken existing assertions without a clear, stated reason. - No test beats a bad test: one that mostly tests mocks, depends on timing, or would be deleted right after.
Files in this package (2)
- LICENSE 1 KB
- SKILL.md 2 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · adithyanraj03/dsh-skills-pack | 100 | MIT |
| aicodeking/deepseek-stack | 100 | MIT |
| doublesharp/dsstack | 96 | MIT |
Database snapshot: 13.11.2026 · package version 946451e2ef57 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100st-tdd
Fix a bug by first writing a focused test that fails for the right reason, then making the smallest change that makes it pass. Use when the user asks for TDD or a regression test, when a bug has a cheap local test target, or for /st-tdd. - 100trove-tdd
Write a focused regression test that fails before the fix and passes after. Use when the user asks for TDD, a failing test, or a regression test, or when a bug has a cheap local test target. Skip when the test path is expensive, integration-heavy, or unclear. - 100eng-tdd
Fix a bug test-first when there is a clear, cheap regression test path. Use when the user asks for TDD, a failing test, or a regression test, or when the bug has an obvious cheap local test target. - 81bug-to-test
Turn a concrete bug report into a focused regression test and demonstrate that it fails for the reported reason. Use when adding reproduction coverage, before fixing the implementation. - 100test-driven-development
Build features and fix bugs test-first with red-green-refactor: write one failing test, watch it fail for the right reason, write the least code that makes it pass, then refactor while green. Use this skill whenever you implement a feature, add a function or endpoint, change… - 100tdd
Make a bug in a TypeScript resource executable before fixing it, with a regression test that fails before the fix and passes after. Use only when the user asks for TDD, a failing test, or a regression test, or when the resource already has a test runner and the bug has an…