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

write-tests

Write meaningful Replica tests. Use when adding regression coverage, testing new behavior, or changing existing automated tests.

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

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.2 KB

SKILL.md(원문)

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

Writing meaningful tests

Establish the contract

Read the root instructions, shared coding conventions, and testing and review guide, then the affected project's instructions and relevant guides. The shared guide owns test-quality criteria and the independent-writer policy.

Identify the accepted behavior, public interface, and existing coverage. For each proposed case, state the distinct regression it catches and why existing cases would miss it. Drop redundant cases and incidental assertions. Complete this step when every retained case has an expected outcome grounded in requirements rather than current implementation.

Choose the writer

Apply the shared guide's independent-writer policy. For substantial behavior changes and nontrivial bug fixes, delegate once to an available code-capable agent with permission to edit tests. Use a synchronous task unless implementation can safely proceed in separate files while the writer works.

If you are already the assigned test writer, write the tests directly; this assignment is the independent pass.

Give the writer a self-contained assignment containing:

  • The relevant user request and accepted requirements, separately from implementation suggestions.
  • The bug reproduction or behavior to add, including known failure and boundary cases.
  • Affected interfaces and paths, existing coverage, project guidance, and any implementation already completed.
  • Ownership of named test files and necessary test fixtures; production changes remain with the implementation agent.
  • A bounded result: implement the smallest distinct coverage, run focused checks, and return changed files, the regression each case catches, observed red/green evidence, and unresolved requirements or production defects.

When behavior is unclear, resolve it with the user before asking the writer to encode it. Small changes follow the same process directly without delegation.

Write and verify

Use the existing runner and repository test patterns. Establish a meaningful failing case where feasible, then run the smallest command covering the completed change. Preserve unrelated work when checking pre-fix behavior; prefer an isolated reproduction over reverting a dirty worktree.

Review the resulting tests against the shared criteria. Ensure mocks leave the behavior under test real, expectations come from the contract, and every added case protects a distinct regression. Resolve reported production defects in the implementation agent, then rerun affected tests and follow the project's final-check requirements.

Finish only when the retained cases prove their intended outcomes, or explicitly report the blocker and unverified behavior. Distinguish observed results from expected coverage, and maintenance simplification from measured runtime savings. Keep the handoff concise; the per-case rationale belongs in the writer's working result, not boilerplate code comments or a new tracking document.

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Audits actual components and routes against applicable WCAG 2.2 A/AA criteria using consumer-owned design-system evidence and repository tools. Use when asked for an accessibility audit, a11y check, keyboard or focus review, contrast check, or screen-reader verification.

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

github/replica142026년 10월 17일 업데이트

Creates or updates believable deterministic raw fixture scenarios without breaking an existing prototype. Use when asked to add or change fixtures, seed data, sample data, scenarios, or cross-record relationships. Not for UI redesign, live-data infrastructure, or unrelated commands.

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

github/replica142026년 10월 17일 업데이트

Use for explicit agent-browser CLI checks or a named browser capability neither the Copilot canvas nor configured Playwright MCP can supply. Ordinary rendered checks and browser selection belong to browser-canvas-validation.

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

github/replica142026년 10월 17일 업데이트

Use the Copilot browser canvas first for rendered route checks, interaction tests, screenshots and visual, responsive or accessibility evidence. Use configured isolated Playwright MCP only when the canvas is unavailable for a required check.

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

github/replica142026년 10월 17일 업데이트

Review Replica pull requests using the same shared conventions and project guides as implementation agents. Use when reviewing changes to code, tests, workflows, or documentation in this repository.

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

github/replica142026년 10월 17일 업데이트

Reviews existing UI components for design-system consistency, states, responsiveness and accessibility using consumer-owned context. Use when asked to review component quality, check design-system adherence or audit component consistency.

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

github/replica142026년 10월 17일 업데이트

github의 스킬 모두 보기

이 스킬의 문제 신고