본문으로 건너뛰기
cccskills
무료GitHub에 공개

skill-tdd

Build a behavior change with observed red, minimal green, and measured test consolidation

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md3.1 KB
  • agents/openai.yaml164 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Host: Codex CLI — This skill was designed for Claude Code and adapted for Codex. Cross-reference commands use installed skill names in Codex rather than /octo:* slash commands. Use the active Codex shell and subagent tools. Do not claim a provider, model, or host subagent is available until the current session exposes it. For host tool equivalents, see skills/blocks/codex-host-adapter.md.

Test-driven development

Read skills/blocks/engineering-method-selection.md from the installed plugin for review admission. Natural-language requests and --peer-review share that policy. Honor host-only requests; risk alone does not authorize paid usage.

Run the red, green, and refactor cycle on the current host. Routine TDD makes zero additional provider dispatches. Use one external reviewer only when the user passes --peer-review, explicitly requests independent review, or an existing risk policy requires it. Explicit debate, council, and multi-model commands retain their own execution contracts.

<HARD-GATE> NO PRODUCTION BEHAVIOR CHANGE WITHOUT AN OBSERVED, EXPECTED FAILING TEST FIRST. </HARD-GATE>

The rule

Do not change production behavior until a focused test fails for the expected reason. Existing implementation outside the requested change remains intact.

  1. Name the observable behavior and the smallest public boundary that proves it.
  2. Write one focused test. Directly test an internal invariant only when the public boundary cannot isolate its failure mode.
  3. Run it and record the expected failure, command, and exit status.
  4. Implement the smallest change that passes.
  5. Run the focused test, then the affected suite.
  6. Refactor only while the tests remain green.

If a test passes before implementation, it is not red evidence. If it errors due to fixture or syntax problems, repair the test until it fails on the missing behavior.

Consolidating tests

Do not equate similar assertions with duplicate guarantees. Keep separate OS, security, cancellation, and integration boundaries. For every removed test, record old_test, behavior, replacement, mutant, red_observed, baseline_ms, candidate_ms, and reason. The retained test must kill the named mutant at the intended caller boundary.

After one warm-up, measure five isolated runs and report every sample and the median. Review a slowdown only when it exceeds both 20 percent and 100 ms.

Completion requires observed red and green evidence, affected-suite results, and the consolidation ledger when tests were removed. A missing reviewer is reported as incomplete review, never simulated.

Strategy rotation

If the same test remains red after two implementation attempts, stop and recheck the test boundary, fixture, and expected behavior. The strategy-rotation hook is a signal to try a fundamentally different hypothesis, not another variation of the same patch.

Adapted from DEEPENING in mattpocock/skills at commit 3cca18b368ae95cdbdebbff572ccafa662551015 under the MIT License. See THIRD_PARTY_NOTICES.md.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Starter: interpret a council run's verdict artifacts — quorum, dissent, cross-lab validity, and what to do next

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nyldn/claude-octopus4.3천2026년 10월 19일 업데이트

Starter: frame a decision as a multi-model debate — picks sides, seats providers, and launches /octo:debate with a well-formed motion

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nyldn/claude-octopus4.3천2026년 10월 19일 업데이트

Multi-AI requirements scoping using available external providers (Double Diamond Define phase). Priority triggers: octo define, octo scope, co-define, co-scope. DO NOT use for implementation, research, review/validation, or built-in commands.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nyldn/claude-octopus4.3천2026년 10월 19일 업데이트

Multi-AI validation, scoring, and review using available external providers (Double Diamond Deliver phase)

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nyldn/claude-octopus4.3천2026년 10월 19일 업데이트

Multi-AI implementation using available external providers (Double Diamond Develop phase). DO NOT use for simple code edits, reading/reviewing code, built-in commands, or trivial single-file changes.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nyldn/claude-octopus4.3천2026년 10월 19일 업데이트

Multi-AI research using available external providers (Double Diamond Discover phase)

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nyldn/claude-octopus4.3천2026년 10월 19일 업데이트

nyldn의 스킬 모두 보기

이 스킬의 문제 신고