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

tdd

Practice test-driven development for new features and bug fixes.

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

설치 방법 보기

포함된 파일(1)

  • SKILL.md1.7 KB

SKILL.md(원문)

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

TDD

Invocation

This skill is performed in the Developer persona. If you are not already running as Developer (for example, the user invoked /tdd directly), read subagents/developer.md and adopt its role guidance for the rest of this task. Stay in the current chat—do not delegate to a subagent.

Objective

Use a red -> green -> refactor workflow for changes that should be test-first.

Use /code instead when the work is implementation-heavy but not centered on new automated test coverage, such as tooling, config, or linting work.

Instructions

  1. Determine whether the task is a bug fix or a new feature.
  2. For new features, read the relevant spec or acceptance criteria before writing tests.
  3. For bug fixes, capture the expected behavior, actual behavior, and reproduction path before writing tests.
  4. Identify the most appropriate unit-level test location based on nearby repo patterns.
  5. Write the failing test first.
  6. Verify the red phase by running the relevant test suite.
  7. Implement the smallest change needed to make the new test pass.
  8. Re-run tests, then run the applicable verification checks (linting, type checking, etc.).
  9. If the change also requires browser-flow validation, call out that E2E tests are relevant and why.
  10. End with the test paths, the observed red failure, the passing result, and any follow-up work.

Guardrails

  • Do not create or modify E2E tests unless the user explicitly asks for E2E coverage.
  • Keep TDD changes scoped to the behavior under test.
  • Refactor only after the tests demonstrate the intended behavior.

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

brief

무료

Create a product brief document for a feature or project.

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

g2i-ai/agents522026년 4월 21일 업데이트

code

무료

Implement production changes with or without new test coverage.

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

g2i-ai/agents522026년 4월 21일 업데이트

draft-pr

무료

Prepare commits, push a branch, and create a draft PR targeting your base branch.

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

g2i-ai/agents522026년 4월 21일 업데이트

Generate a PR description for the current branch against your base branch.

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

g2i-ai/agents522026년 4월 21일 업데이트

review

무료

Review a branch or PR for merge readiness and produce a QA report.

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

g2i-ai/agents522026년 4월 21일 업데이트

spec

무료

Transform a product brief into a technical specification.

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

g2i-ai/agents522026년 4월 21일 업데이트

g2i-ai의 스킬 모두 보기

이 스킬의 문제 신고