implement

star 160

TDD implementation (RED→GREEN→REFACTOR) → verify → review

mag123c By mag123c schedule Updated 1/28/2026

name: implement description: TDD implementation (RED→GREEN→REFACTOR) → verify → review required_context: - .claude/ai-context/architecture.md - .claude/ai-context/conventions.md

Implement

Flow

Analysis → Gate pre-run → TDD(RED→GREEN→REFACTOR) → /verify → /review → /wrap

Execution

  1. Analysis: Review plan, identify affected modules

  2. Gate pre-run (MUST — before coding) Run the PLAN's [unverified-gate: probe=…] / Phase 0 probes before RED. Fail → halt + report (don't build on a falsified assumption). Map Acceptance/DoD → RED tests; mark unverifiable as [unverified-gate] to carry to verify/wrap. Detail → references/gates.md (tag vocab: ../clarify/references/provenance.md).

    Rust-specific probes:

    • cargo check — 컴파일 가능 여부
    • cargo test -- --list — 테스트 타깃 존재 확인
    • make check — fmt + clippy + test 통합 게이트
  3. TDD Cycle:

    • RED: Write failing test first
    • GREEN: Minimal code to pass
    • REFACTOR: Clean up (keep tests passing)
  4. Auto-call /verify: On implementation complete

  5. Auto-call /review: On verify pass

  6. Auto-call /wrap: On review PASS

Commands

cargo test
cargo clippy -- -D warnings
cargo fmt --check

Rules

  • No implementation without test
  • On verify fail → fix and retry
  • On review FAIL → fix and retry
  • Complete full chain without stopping
Install via CLI
npx skills add https://github.com/mag123c/toktrack --skill implement
Repository Details
star Stars 160
call_split Forks 13
navigation Branch main
article Path SKILL.md
More from Creator