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

tdd

Run red-green-refactor in vertical slices, emphasizing behavior-first tests and harness quality gates.

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

설치 방법 보기

포함된 파일(6)

  • SKILL.md3.5 KB
  • deep-modules.md1.2 KB
  • interface-design.md653 B
  • mocking.md1.4 KB
  • refactoring.md387 B
  • tests.md1.6 KB

SKILL.md(원문)

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

tdd

Use test-driven development to deliver features/fixes in small behavior-focused increments.

Core principles

  • Test observable behavior via public interfaces.
  • Avoid coupling tests to internal implementation details.
  • Work in vertical slices: one failing test -> minimal passing code -> repeat.
  • Refactor only while green.

Workflow

1) Plan behavior and boundaries

Before coding:

  • Confirm target behavior with the user (or issue AC)
  • Identify public interface changes
  • Select highest-value behaviors to test first
  • Spot deep-module opportunities (simple interface, deep internals)

2) Tracer bullet first

Create one thin end-to-end test that proves a real path.

RED: write one failing behavior test
GREEN: write minimal code to pass

3) Incremental red-green loop

For each next behavior:

RED: next failing behavior test
GREEN: minimal implementation

Rules:

  • One test at a time
  • No speculative implementation
  • Keep assertions on externally visible outcomes

4) Refactor pass

When all current tests are green:

  • Remove duplication
  • Deepen modules where complexity is leaking
  • Tighten names/interfaces
  • Re-run test suite after each refactor step

Never refactor while red.

Test quality checklist

  • Test describes behavior (not internals)
  • Test uses public interfaces only
  • Test survives internal refactor
  • Added code is minimal for current failing test
  • No dead code or TODO placeholders

Harness verification gates

After meaningful changes, run:

bun run typecheck
bun run lint
bun test

If a sub-repo defines different commands, follow that sub-repo's AGENTS.md.

Beads integration

Use beads to track TDD slices:

bd create --type task --title "TDD slice: <behavior>" --description "<expected behavior and test scope>" --priority 2 --repo .
bd comments add <id> "worklog: red->green completed for <behavior>"

Deep-dive references

Bundled with this skill (self-contained — no external repos required):

Attribution

The bundled deep-dive docs (tests.md, interface-design.md, deep-modules.md, mocking.md, refactoring.md) are vendored verbatim from the tdd skill in mattpocock/skills. This SKILL.md is an Agent Forge adaptation of the same concepts (Beads tracking + harness quality gates). Original work © 2026 Matt Pocock, MIT License:

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

add-bead

무료

Capture free-text work as a tracked Beads issue. Use when the user runs /add-bead or wants to quickly file a Beads issue.

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

jupes/agent-forge-harness22026년 10월 19일 업데이트

add-repo

무료

Register a new sub-repo in the knowledge base.

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

jupes/agent-forge-harness22026년 10월 19일 업데이트

Add focused Bun unit tests for mission-critical behavior and edge cases — not blanket coverage.

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

jupes/agent-forge-harness22026년 10월 19일 업데이트

ask

무료

Answer questions about the codebase from knowledge files. Use when the user runs /ask or asks a domain/knowledge question about the repos.

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

jupes/agent-forge-harness22026년 10월 19일 업데이트

Meta-skill for creating Agent Forge skills under .claude/skills/ with SKILL.md, optional references/ and scripts/, and Bun scaffolds. Use when the user wants to add or author a skill, scaffold a new skill folder, or align skill docs with harness conventions (JSON script output, Beads for tasks).

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

jupes/agent-forge-harness22026년 10월 19일 업데이트

Choose Beads issue priority (P0–P4, numeric, or named) from urgency, impact, and risk when creating or triaging work.

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

jupes/agent-forge-harness22026년 10월 19일 업데이트

jupes의 스킬 모두 보기

이 스킬의 문제 신고