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

test

Behavior-first test guidance.

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

설치 방법 보기

포함된 파일(1)

  • SKILL.md2.2 KB

SKILL.md(원문)

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

Test

Invocation

This skill is performed in the Developer persona. If you are not already running as Developer (for example, the user invoked /test 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

Write or improve tests that defend real user-visible behavior without encoding broken behavior as correct.

Core Rules

  • Start from the expected user behavior or contract, not implementation details.
  • Test names must describe observable behavior only.
  • Never write a green test that asserts a known bug as correct behavior.
  • If a test reveals a product bug, call that out explicitly instead of mutating the test to hide it.
  • Prefer existing test helpers, fixtures, and patterns before creating new ones.

Naming Guidance

  • Good: when a valid user signs in, they reach the dashboard
  • Good: when repo access is removed, the preview no longer shows that collaborator
  • Bad: useThing works correctly
  • Bad: POST /api/foo returns 200
  • Bad: someHelper handles edge cases

Repo Conventions

  • Place unit tests close to the code they cover as *.test.ts or *.test.tsx.
  • Run the relevant test suite for unit-level verification.
  • Run E2E tests when the change requires browser-flow validation.
  • If the repo does not provide a narrower script for the exact test slice you want, say so explicitly rather than inventing one.

Bug Discovery Protocol

  1. A failing test that exposes a real bug is a useful deliverable.
  2. If the observed behavior looks wrong, ask whether it is intentional before turning it into the asserted contract.
  3. Fix the application behavior when it is in scope.
  4. If the bug is out of scope, document the gap clearly instead of pretending the behavior is correct.

Review Checklist

  • Does the test assert a real contract or user-visible behavior?
  • Does it verify more than status-only success?
  • Does it match existing repo test structure and helpers?
  • Does it avoid broad mocks when the contract is integration-sensitive?
  • Does it run under the right repo verification command?

리뷰

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

댓글

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

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

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. 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의 스킬 모두 보기

이 스킬의 문제 신고