tdd
Use test-driven development when requested, or when a clear behavior change has a trustworthy automated seam and test-first feedback is worth its cost.
Skill by Astro-Han
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/astro-han-tdd
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/tdd
What's inside
- Skill name
tdd- Description
- Use test-driven development when requested, or when a clear behavior change has a trustworthy automated seam and test-first feedback is worth its cost. Do not trigger merely for code edits, pure refactors, visual tweaks, configuration, or exploratory work.
- License
- MIT
- Instructions
- 33 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# TDD ## Choose the signal Inspect the existing tests and public contract; use the cheapest trustworthy boundary that exercises the real behavior. For a defect already captured by an existing test, add no tests or parameter rows; fix production code and only delete invalid or redundant tests. Otherwise extend an existing case before adding one for a worthwhile gap. Count parameter rows, fixtures, environment startup, and CI work as test cost, not just test functions. If no trustworthy automated signal exists, use the nearest reliable check and state the gap; do not manufacture a test seam. ## RED → GREEN → REFACTOR 1. **RED:** Express one valuable behavior and observe failure for the predicted reason before changing production code; an existing failing test already supplies RED. 2. **GREEN:** Make the smallest production change that passes, then run affected checks. 3. **REFACTOR:** Simplify implementation and tests while preserving behavior, then choose the next needed behavior. Do not write a batch of tests followed by a batch of implementation. If a behavior already passes, verify it without undoing working code to manufacture RED. If explicitly using this skill for a pure refactor, start from passing checks; add a characterization test only for a worthwhile unprotected behavior, never an invented RED. ## Keep the signal honest Expected results come from the contract, not a copy of the implementation; assertions must reject broken behavior and survive harmless internal changes. Reject implementation-detail checks, internal mocks, unconsumed snapshots, and weak type/nonempty assertions that do not prove the contract; a new helper does not earn its own test. Coverage targets, review pressure, and per-function test rules do not lower this bar; never widen the public API just to test an internal helper. ## Finish Map all tests on touched behaviors to valuable obligations and leave one representative per obligation; delete duplicate cases and parameter rows, subsumed stepping-stone tests, and existing tests that fail the quality bar above, then rerun affected checks. Report the obligation-to-test mapping and any protection deliberately dropped.
From Astro-Han/skills, MIT.
More from Astro-Han/skills
- 0.634score
wrap-up
Astro-Han
Close a session cleanly by resolving session-owned loose ends and reporting the final state.
SkillAFreshness: A★ 12Claude Code +9 - 0.598score
goal-writer
Astro-Han
Draft or review minimal, testable goals.
SkillBFreshness: B★ 12Claude Code +9 - 0.596score
pr-review
Astro-Han
Review a pull request or queue from problem value through code correctness.
SkillBFreshness: B★ 12Claude Code +9 - 0.594score
review-feedback
Astro-Han
Adjudicate and act on existing code-review feedback: PR comments, inline threads, or findings from reviewers, review tools, external models, or delegated…
SkillBFreshness: B★ 12Claude Code +9 - 0.594score
learn-anything
Astro-Han
Teach with adaptive guidance, retrieval practice, and Socratic questioning.
SkillBFreshness: B★ 12Claude Code +9 - 0.594score
simplify-audit
Astro-Han
Audit an existing repository or scoped architecture area for simplification opportunities, separating proven removals from those still blocked on a fact or a…
SkillBFreshness: B★ 12Claude Code +9 - 0.589score
shape
Astro-Han
Interview the user to resolve material branches of a decision tree and converge on a shared plan before acting.
SkillBFreshness: B★ 12Claude Code +9 - 0.583score
eli5
Astro-Han
Create simple, beautiful visual explainers for people new to a topic.
SkillBFreshness: B★ 12Claude Code +9 - 0.549score
craft-skill
Astro-Han
Create or improve agent skills from concrete behavior and evidence.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
parallel-research
Astro-Han
Research with parallel agents, independent evidence angles, and cross-validation.
SkillCFreshness: C★ 12Claude Code +9 - 0.544score
debug
Astro-Han
Diagnose and fix bugs, failures, and performance regressions.
SkillCFreshness: C★ 12Claude Code +9
Signals
- Stars
- 12
- Forks
- 3
- Open issues
- 0
- Last commit (this folder)
- Sep 5, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Astro-Han/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Astro-Han
- 0.737score
karpathy-llm-wiki
Astro-Han
Use when building or maintaining a personal LLM-powered knowledge base.
SkillCFreshness: C★ 2.6KClaude Code +9 - 0.634score
wrap-up
Astro-Han
Close a session cleanly by resolving session-owned loose ends and reporting the final state.
SkillAFreshness: A★ 12Claude Code +9 - 0.598score
goal-writer
Astro-Han
Draft or review minimal, testable goals.
SkillBFreshness: B★ 12Claude Code +9 - 0.596score
pr-review
Astro-Han
Review a pull request or queue from problem value through code correctness.
SkillBFreshness: B★ 12Claude Code +9 - 0.594score
learn-anything
Astro-Han
Teach with adaptive guidance, retrieval practice, and Socratic questioning.
SkillBFreshness: B★ 12Claude Code +9 - 0.594score
simplify-audit
Astro-Han
Audit an existing repository or scoped architecture area for simplification opportunities, separating proven removals from those still blocked on a fact or a…
SkillBFreshness: B★ 12Claude Code +9
Cite this page
tdd skill. Agent Mart. https://agentmart.dev/skills/astro-han-tdd (last updated 2026-10-24)