一键导入
tdd
Test-first an agreed behavior by enumerating its contract and producing meaningful failing tests; hand a proved red contract to $implement.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Test-first an agreed behavior by enumerating its contract and producing meaningful failing tests; hand a proved red contract to $implement.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | tdd |
| description | Test-first an agreed behavior by enumerating its contract and producing meaningful failing tests; hand a proved red contract to $implement. |
Deliver an agreed test list, runnable tests, and only the minimal stub required for meaningful failures. Production behavior remains for implementation.
Use a pasted story or one selected from the repository's backlog. Identify actor, capability,
acceptance criteria, constraints, and open questions. Resolve story selection when several candidates
exist. Route missing acceptance criteria through $stories when the user wants them derived.
Complete selection when one agreed behavior and its observable boundaries are explicit.
Read situation-catalogue.md completely. Walk every applicable row and assign one disposition:
Start with acceptance criteria, then add applicable unhappy, boundary, authorization, concurrency, persistence, async, and cross-cutting cases. Mark inferred cases separately. Present the list for user review before editing files when new inferred behavior materially expands the contract.
# | Situation | Case type | Level | Source | Disposition
The catalogue supplies probes, not default product policy. Complete enumeration when every applicable
row has an explicit disposition and every material open row is resolved or returned as a contract
blocker.
Read the repository's testing guide when present for placement, naming, commands, infrastructure, and invariants.
not implemented stub needed to compile.Complete writing when every test disposition maps to one runnable test and production logic remains
unchanged.
Run the focused repository command and inspect every failure. Accept an assertion mismatch caused by
missing behavior or the deliberate minimal-stub failure. Repair imports, type errors, broken fixtures,
and unrelated failures before handoff. When required infrastructure is unavailable after exhausting
repository-supported setup, finish as written-unverified, name the blocker, and withhold a proved-red
handoff.
The proved-red branch is complete when each written test is meaningfully red for the intended missing
behavior. The limited branch is complete when every written test is mapped to its intended failure
but unavailable infrastructure is explicitly unverified. In both branches report paths, command,
dispositions, observed failures, inferred cases, unavailable checks, and whether $implement has a
proved contract or must wait.
Bootstrap software repositories from live evidence. Use for initial setup, inherited-codebase rehabilitation, repository mapping, conventions, documentation architecture, safe restructuring, or agent-ready tooling.
Solve ambiguous, high-stakes, or multi-variable questions with a labelled problem tree. Use for open-ended life, business, product, strategy, and root-cause reasoning; route concrete feature briefs to $grill-me and specific failures to $debugging.
Diagnose software failures through evidence-based root-cause analysis. Use for bugs, failing tests, runtime errors, data anomalies, stuck jobs, environment failures, and intermittent or expensive-to-reproduce incidents.
Create, edit, and run persistent Codex workflow graphs with optional GitHub delivery.
Turn a rough software feature request into one codebase-grounded implementation brief. Use for feature pitches, vague product requirements, solution exploration, or explicit “grill me” requests before coding; use $brainstorming for non-implementation questions.
Implement an agreed story, plan, or failing-test target and prove the resulting behavior. Use when an accepted contract authorizes production changes; route diagnosis-only work to $debugging and test design to $tdd.