test-value-evidence
하는 일
이 스킬은 특정 변경의 테스트가 새 동작이 잘못되었거나 빠졌을 때 알아차릴지 확인합니다. 버그 수정이나 기능이 테스트로 보호되는지 증명을 원하는 검토자를 위한 스킬입니다.
사용하는 경우
- ✓풀 리퀘스트가 동작을 바꿨고, 잘못된 결과를 테스트가 잡아낸다는 증거가 필요할 때.
- ✓회귀 테스트는 예전 코드에서 실패하고 수정된 코드에서 통과해야 할 때.
- ✓전체 테스트 검토가 아니라 하나의 커밋이나 풀 리퀘스트에 연결된 증거가 필요할 때.
스킬 링크
https://github.com/dotnet/skills/blob/main/plugins/dotnet-test/skills/test-value-evidence/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 풀 리퀘스트의 새 테스트가 예전 코드에서는 실패하고 수정된 코드에서는 통과하는지 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트가 지정된 리비전에서 바뀐 동작과 관련 테스트를 찾고, 누락되거나 잘못된 동작을 테스트가 감지하는지 전후 증거를 모읍니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Test-value evidence
A passing test proves little unless it detects the relevant wrong behavior. Assess the changed contracts and their directly related tests, not the entire repository. Discover and follow the repository's instructions, pinned toolchain, test commands, assertion conventions, and execution permissions. This skill does not authorize edits in a read-only review, execution of untrusted code, workflow dispatch, publication, or access to another session's checkout.
Inputs and boundaries
Discover the requested diff/revision, production entry points, tests, fixtures, and available execution artifacts. If the change cannot be identified, report the missing scope instead of grading the workspace. Existing unchanged tests can suffice; a source-only diff is not automatically untested.
Use test-gap-analysis for general existing-suite blind spots, grade-tests
for curated per-test readiness/quality, and existing repository mutation tooling
for mutation campaigns. Do not start a second mutation engine or require
full-suite mutation testing for every change. This skill is self-contained:
sibling skills are optional routing destinations, not required dependencies.
Workflow
Bind the contract to the tested revision. For a PR, record its merge base and exact head SHA. For a commit, record the selected parent and commit; identify the parent explicitly for a merge commit. For uncommitted work, record the base SHA plus a reproducible patch identity (saved patch/hash, including relevant untracked files), not a fictitious committed revision. Evidence expires after relevant source, tests, helpers, configuration, or package changes unless revalidated.
For each distinct behavior change, map:
requirement -> input/sequence -> expected public outcome -> production entry point -> named test/data case -> distinguishing assertion. Derive the expected outcome independently from requirements or supported API/protocol semantics, not the implementation or the test's current value. Check build/package/configuration behavior, deleted/renamed code, removed tests, and shipping consumers as well as source. Include positive, negative, boundary, compatibility, cancellation, cleanup, and multi-module cases only where relevant to the changed contract.A mock of the changed component, self-comparison, or expected value computed by the same production algorithm does not provide an independent oracle.
Choose the meaningful counterfactual.
Change Counterfactual Required observation Bug fix Keep the regression test and restore the actual pre-fix defect. The test fails for that defect, then passes with the fix. New feature Disable/remove or corrupt the behavior, retaining the API shape and setup needed to build. An assertion detects absent/wrong behavior, then passes with the feature. Stronger/test-only coverage Introduce one plausible wrong public outcome. The strengthened test detects it; the unmodified product passes. Behavior-preserving refactor Compare the preserved contract before and after; optionally probe a relevant fault. Preservation tests pass on both revisions; passing before is expected. Documentation/generated metadata only Establish whether an executable contract changed. Not applicable only with a concrete reason; generated or build metadata can change behavior. For a fix, prefer the real pre-fix implementation with the same regression test, setup, dependencies, and inputs. If new APIs prevent that combination from compiling, restore only the defective behavior in the head version. Call this a targeted counterfactual, not a run on the base revision. Record its exact patch/hash. Never change assertions to manufacture red.
For a feature, a missing-symbol compiler error is not behavioral proof. Choose a buildable no-op, disabled registration, old branch, or wrong output. A compiler/analyzer diagnostic can be valid behavior only when an executed harness asserts that exact diagnostic or its absence.
Prefer small plausible faults: restore the old boundary, drop a required output, skip a callback, ignore an option, or return the wrong value. An equivalent mutation is not a gap. A crash, timeout, or exception counts only when it is the intended contract signal and diagnostics attribute it to the fault, not setup, discovery, fla
자주 묻는 질문
저장소 전체를 검토하나요?
아니요. 식별된 변경과 직접 관련된 테스트에 초점을 맞춥니다.
신뢰할 수 없는 코드를 실행하나요?
아니요. 신뢰할 수 없는 코드는 실행하지 않으며, 읽기 전용 검토에서는 파일도 수정하지 않습니다.
뮤테이션 테스트와 같은 건가요?
정확히는 아닙니다. 새 뮤테이션 엔진을 시작하는 대신 저장소의 기존 도구를 쓰고 변경 자체를 확인합니다.
상세 정보
작성자의 원본 설명
Assess tests for an identified code or test change, feature, PR or commit. USE FOR: review changed behavior or regression tests, prove pre-fix/missing behavior is detected, revision-bound red-green evidence. Polyglot. DO NOT USE without an identified change: hypothetical mutations or general suite blind spots (test-gap-analysis). Also exclude per-test readiness/A-F grades (grade-tests), coverage (coverage-analysis), new suites (code-testing), or mutation engines.
repo: dotnet/skills
인기도
- GitHub 스타
- 5.8k
- 순위
- #14641
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
create-custom-agent
5.8k에이전트가 자체 도구, 지침, 다른 에이전트로의 핸드오프를 가진 VS Code 커스텀 에이전트 파일을 만들도록 돕습니다.
create-skill
5.8k에이전트가 올바른 이름, 명확한 트리거 설명, 표준을 따르는 SKILL.md 파일로 새 에이전트 스킬을 만들도록 돕습니다.
csharp-scripts
5.8k에이전트가 .NET 명령줄 도구로 작은 C# 프로그램을 전체 프로젝트 없이 단일 파일로 실행하도록 돕습니다.
dotnet-pinvoke
5.8k에이전트가 .NET에서 네이티브 C나 C++ 라이브러리를 올바르게 호출하도록 돕습니다. 시그니처, 문자열 처리, 메모리, 안전 핸들을 다룹니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.