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

tdd

Use test-driven development for behavior-changing feature or fix work, and whenever the user mentions TDD, test-first, red-green-refactor, tracer bullets, integration tests, or public-interface behavior tests. Skip for docs-only, path-only rename, formatting-only, or purely mechanical chores unless explicitly requested.

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

설치 방법 보기

포함된 파일(6)

  • SKILL.md3.0 KB
  • references/deep-modules.md619 B
  • references/interface-design.md991 B
  • references/mocking.md1.2 KB
  • references/refactoring.md545 B
  • references/tests.md1.6 KB

SKILL.md(원문)

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

Test-Driven Development

Core Rule

Work in vertical red-green-refactor slices:

  1. RED: write one test for one observable behavior.
  2. GREEN: implement the smallest production change that makes that test pass.
  3. REFACTOR: clean up only while tests are green.

Do not write a batch of imagined tests before implementation. Each new test should respond to what the last cycle taught you about the actual behavior and interface.

Plaited Defaults

  • Use bun test for targeted tests and bun --bun tsc --noEmit for the type gate.
  • Use test, not it, and organize with describe.
  • Prefer real dependencies and real runtime boundaries over mocks.
  • Mock only external boundaries such as remote APIs, time, randomness, or rare filesystem cases.
  • Avoid conditional assertions: assert the branch first, then assert branch-specific values.
  • Test both branches for conditionals, fallbacks, and error paths.
  • Exercise public interfaces and runtime contracts rather than private helpers.
  • Follow applicable repo skills and AGENTS.md rules for the touched area.

When Starting Work

Explore the codebase first. If the public interface, expected behavior, or risk boundary is discoverable from code, tests, or docs, use that evidence instead of asking the user.

Ask one concise question only when the decision cannot be discovered and a reasonable assumption would be risky. Include your recommended answer.

Before writing production code, identify:

  • the public interface or runtime boundary under test
  • the first observable behavior to prove
  • the targeted test command for the cycle
  • the broader validation needed before handoff

Cycle Discipline

For each behavior:

  1. Add or update exactly one focused test.
  2. Run the targeted test and confirm it fails for the intended reason.
  3. Implement only enough code to pass.
  4. Run the same targeted test and confirm it passes.
  5. Refactor if useful, then rerun the affected tests.

If the test passes before production code changes, it is not a valid RED signal. Tighten the test, choose a different behavior, or explain why existing coverage already proves the behavior.

Reference Files

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

grill-me

무료

Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".

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

youdotcom-oss/agent-skills932026년 10월 14일 업데이트

Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.

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

youdotcom-oss/agent-skills932026년 10월 14일 업데이트

Plan how to build with You.com. Use when adding web search, content extraction, or research to an app or agent: finds the right You.com API, MCP server, SDK, or docs path (for example Vercel AI SDK, LangChain, Python SDK, or REST) through the `you-discover` tool and Docs MCP.

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

youdotcom-oss/agent-skills932026년 10월 14일 업데이트

Answer finance and market-data questions with the You.com `you-finance` MCP tool: stock prices, tickers, earnings, company financials, and market trends, with payment-aware fallbacks for keyless hosts.

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

youdotcom-oss/agent-skills932026년 10월 14일 업데이트

Multi-source research with citations using You.com. Use for questions that need several sources compared and synthesized, such as library or framework comparisons, tool and vendor evaluations, market research, or deep-dive reports. Routes between a cost-conscious agentic search loop and the one-shot `you-research` MCP tool.

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

youdotcom-oss/agent-skills932026년 10월 14일 업데이트

you-web

무료

Search the live web and read full pages with You.com. Use whenever a task needs information newer than training data or from outside the codebase: current library docs and API references, changelogs and release notes, breaking changes, error messages, package versions, pricing, news, or any claim to verify with cited sources. Works keyless through the free MCP profile when no You.com credentials are configured.

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

youdotcom-oss/agent-skills932026년 10월 14일 업데이트

youdotcom-oss의 스킬 모두 보기

이 스킬의 문제 신고