test-driven-development
Use when the user explicitly requests strict or test-first TDD, or when the current conversation already contains an explicit `TDD Route: strict` decision…
Skill by GanyuanRan
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/ganyuanran-test-driven-development
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, productivity
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/test-driven-development
What's inside
- Skill name
test-driven-development- Description
- Use when the user explicitly requests strict or test-first TDD, or when the current conversation already contains an explicit `TDD Route: strict` decision from another Aegis workflow.
- License
- MIT
- Instructions
- 485 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Execute → False-positive entry on a native-direct-skill host? → **Exit immediately unless the user explicitly asked for TDD or the conversation already contains `TDD Route: strict`.** In `off` mode, do not start RED / GREEN / REFACTOR from generic bugfix, contract, shared-module, or risky-code wording alone. Hand control back to `using-aegis`, `systematic-debugging`, `writing-plans`, or the fast path with verification. → Implementing a feature or bugfix under TDD Route `strict`? → **No production code without a failing test first.** Gate: medium/high complexity? → route to brainstorming or writing-plans first. Mode: default `off` disables automatic TDD, not completion verification; `auto` chooses strict/light/skipped by risk. Change Necessity: before strict RED/GREEN enters production edits, confirm the slice really needs a code change. Cycle: RED (write test → watch it fail) → GREEN (minimal code → watch it pass) → REFACTOR (clean up → keep green) Regression: shared module → related tests. contract change → producer + consumer. core logic → old + new tests. Ripple signal hit → cover producer+consumer or real user path before claiming green. GREEN proves the currently expressed behavior slice only. GREEN does not by itself prove parent-task acceptance, business-value completion, or final completion. → Done when: chosen TDD Route is recorded, strict-route tests pass, TDD preflight gate passed when applicable, pre-edit complexity risk was checked for non-trivial source edits, and `verification-before-completion` has fresh evidence. # Test-Driven Development (TDD) ## Overview Under `TDD Route: strict`, write the test first. Watch it fail. Write minimal code to pass. If you didn't watch the test fail, you don't know if it tests the right thing. TDD Mode has two values: `off` and `auto`. The default `off` mode disables automatic TDD routing but never disables `verification-before-completion`. `auto` lets Aegis choose a `TDD Route` by task risk. On native-direct-skill hosts, automatic entry must stay anchored to literal conversation markers such as `TDD Route: strict`, `strict TDD`, `test-first`, or `RED / GREEN / REFACTOR`, not generic risky-implementation wording. ## When to Use Only enter this skill after one of these explicit entry signals exists: - the user explicitly asks for strict TDD, test-first development, or RED / GREEN / REFACTOR - the current conversation already contains `TDD Route: strict` from another Aegis workflow Typical strict-route shapes once entry is already justified: new features, bug fixes, refactoring, behavior or logic changes, interface/data contract changes, cross-module or shared-module changes, and core logic refactors. Exceptions (ask your human partner): throwaway prototypes, generated code, config files, pure docs cleanup, read-only diagnosis, comment-only changes. ## TDD Mode and Route Before source edits, decide: ```text Aegis Visibility: - Why this TDD route is strict, light, or skipped: - What RED/GREEN proves: - What still needs verification: TDD Route: - Mode: auto | off - Decision: strict | light | skipped - Strict authority: explicit user/project request | recorded auto decision | not applicable - Test posture: diagnostic reproduction | post-change regression | strict RED test - Reason: - Verification: ``` In `auto`, use `strict` for behavior, bugfix, contract, shared/core, producer / consumer, persistence, permission, migration, or meaningful regression risk. Use `light` for tiny low-risk edits with an obvious readback or command check. Use `skipped` for read-only, docs-only, generated, throwaway, comment-only, or environment-bound work where TDD does not fit. In `off`, do not automatically require TDD, create a strict route, or infer one from risk alone. Explicit user/project TDD requests still apply; risky work may still need regression coverage and `verification-before-completion` before any completion claim. For plan or execution review, `Mode: off / Decision: skipped` is the normal record unless an explicit user/project strict request overrides it. That record does not load this skill or turn a diagnostic reproduction into RED. An approved plan does not supply strict authority by itself. If this skill was loaded anyway without an explicit TDD request or a visible `TDD Route: strict` marker, exit instead of improvising an automatic strict route from risk words alone. Keep `Aegis Visibility` task-specific: explain the route decision and the regression boundary, not a generic claim that TDD was used. ## Preflight Gate TDD is the implementation discipline for an approved behavior or atomic task. It is not a substitute for task routing, product clarification, or planning. Before writing tests or production code, stop and route to brainstorming or writing-plans if the current request has any medium- or high-complexity signal: - multiple files, modules, pages, screens, services, or owners - user-visible flows such as navigation, onboarding, checkout, lifecycle, or recovery paths - state transitions, routing rules, API or data contracts, compatibility boundaries, migrations, permissions, or persistence - more than one acceptance path or manual/visual verification requirement - unclear product behavior, competing constraints, or long-running execution For these tasks, require a baseline read-set, plan, and atomic tasks before TDD. High-complexity or ambiguous tasks also need a spec/design review before planning. Only proceed directly with TDD for low-complexity work whose intent, owner, compatibility boundary, verification path, and slice goal / success evidence are already clear. ## Change Necessity Before strict RED/GREEN enters production code edits, make the code-change decision visible. Any new source-code path needs this check before RED/GREEN normalizes it as work to implement. This is the "should code change at all?" check; it is not a new artifact and does not belong in the `using-aegis` hot path. This is behavior-triggered, not prompt-triggered. If strict TDD is about to add any new source-code path or enter production source edits, expose a natural readback even when the user did not ask for it. A tiny helper, small guard, new
From GanyuanRan/Aegis, MIT.
More from GanyuanRan/Aegis
- 0.831score
ui-ux-governance
GanyuanRan
Use when designing, changing, or reviewing user-facing interfaces or interaction flows, including API changes that alter visible states or recovery.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.826score
using-aegis
GanyuanRan
Use when starting a turn or checking Aegis skill routing.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.825score
subagent-driven-development
GanyuanRan
Use when executing a written implementation plan with independent tasks in the current session where delegation beats inline coordination cost; otherwise…
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.825score
receiving-code-review
GanyuanRan
Use when receiving code review feedback before implementing suggestions, especially when feedback is unclear, risky, disputed, or technically questionable.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.825score
long-task-continuation
GanyuanRan
Use when a task is multi-step, may span context resets or sessions, uses subagents, or risks losing state before completion.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.825score
goal-framing
GanyuanRan
Use when the user explicitly sets an Aegis goal with /aegis-goal, Aegis goal:, or asks to define goal, success evidence, stop condition, or task boundaries…
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.825score
first-principles-review
GanyuanRan
Use when asked for first-principles or Occam's-razor review, or when high-risk decisions involve competing constraints, fallback growth, duplicate owners, or…
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.825score
finishing-a-development-branch
GanyuanRan
Use when verified work needs integration or cleanup of an existing task-created branch/worktree, or the user explicitly requests merge, PR, or branch…
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.825score
executing-plans
GanyuanRan
Use when executing a written implementation plan across sessions or with review checkpoints.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.825score
brainstorming
GanyuanRan
Use when defining ambiguous or high-complexity new features, product behavior, UI/component design, architecture choices, contract changes, or when…
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.825score
anti-entropy-governance
GanyuanRan
Use when touching retiring old logic, collapsing duplicate owners, removing fallbacks, or schema/persistence/source-of-truth boundaries; identify…
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.825score
writing-plans
GanyuanRan
Use when you have an approved spec or written requirements for a multi-step task that needs a durable plan document before touching code.
SkillAFreshness: A★ 1.4KClaude Code +9
Signals
- Stars
- 1,383
- Forks
- 78
- Open issues
- 1
- Last commit (this folder)
- Oct 10, 2026 (18 days ago)
- Last release
- Oct 21, 2026 (8 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/GanyuanRan/Aegis
- Website
- autoloom.codes/aegis/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from GanyuanRan
- 0.831score
ui-ux-governance
GanyuanRan
Use when designing, changing, or reviewing user-facing interfaces or interaction flows, including API changes that alter visible states or recovery.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.826score
using-aegis
GanyuanRan
Use when starting a turn or checking Aegis skill routing.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.825score
writing-plans
GanyuanRan
Use when you have an approved spec or written requirements for a multi-step task that needs a durable plan document before touching code.
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.825score
subagent-driven-development
GanyuanRan
Use when executing a written implementation plan with independent tasks in the current session where delegation beats inline coordination cost; otherwise…
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.825score
using-git-worktrees
GanyuanRan
Use when a coding task needs a concurrent checkout, unrelated dirty state blocks safe branch switching, or the user or repository explicitly requires a…
SkillAFreshness: A★ 1.4KClaude Code +9 - 0.825score
update-aegis
GanyuanRan
Use when the user says `aegis:update`, asks to update or upgrade an installed Aegis method-pack, wants the latest Aegis version, or asks whether Aegis is…
SkillAFreshness: A★ 1.4KClaude Code +9
Cite this page
test-driven-development skill. Agent Mart. https://agentmart.dev/skills/ganyuanran-test-driven-development (last updated 2026-10-24)