openspec-verify-change
하는 일
이 스킬은 보관하기 전에 코드가 OpenSpec 변경의 계획 문서와 실제로 맞는지 확인합니다. 기능이 완전하고 올바른지 확인하려는 개발자를 위한 것입니다.
사용하는 경우
- ✓보관하기 전에 구현이 완료되었는지 확인하고 싶을 때.
- ✓OpenSpec 변경의 스펙과 작업에 비추어 코드를 점검하고 싶을 때.
- ✓코드와 계획 문서가 더 이상 맞지 않는다고 의심될 때.
스킬 링크
https://github.com/fengshao1227/ccg-workflow/blob/main/.agents/skills/openspec-verify-change/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“보관하기 전에 OpenSpec의 제 결제 기능이 스펙과 작업에 맞는지 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 변경의 문서를 읽고, 완전성, 정확성, 설계의 일관성을 확인합니다. 작업과 스펙을 구현된 코드와 비교합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Verify that an implementation matches the change artifacts (specs, tasks, design).
Input: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
Steps
If no change name provided, prompt for selection
Run
openspec list --jsonto get available changes. Use the AskUserQuestion tool to let the user select.Show changes that have implementation tasks (tasks artifact exists). Include the schema used for each change if available. Mark changes with incomplete tasks as "(In Progress)".
IMPORTANT: Do NOT guess or auto-select a change. Always let the user choose.
Check status to understand the schema
openspec status --change "<name>" --jsonParse the JSON to understand:
schemaName: The workflow being used (e.g., "spec-driven")- Which artifacts exist for this change
Get the change directory and load artifacts
openspec instructions apply --change "<name>" --jsonThis returns the change directory and context files. Read all available artifacts from
contextFiles.Initialize verification report structure
Create a report structure with three dimensions:
- Completeness: Track tasks and spec coverage
- Correctness: Track requirement implementation and scenario coverage
- Coherence: Track design adherence and pattern consistency
Each dimension can have CRITICAL, WARNING, or SUGGESTION issues.
Verify Completeness
Task Completion:
- If tasks.md exists in contextFiles, read it
- Parse checkboxes:
- [ ](incomplete) vs- [x](complete) - Count complete vs total tasks
- If incomplete tasks exist:
- Add CRITICAL issue for each incomplete task
- Recommendation: "Complete task: <description>" or "Mark as done if already implemented"
Spec Coverage:
- If delta specs exist in
openspec/changes/<name>/specs/:- Extract all requirements (marked with "### Requirement:")
- For each requirement:
- Search codebase for keywords related to the requirement
- Assess if implementation likely exists
- If requirements appear unimplemented:
- Add CRITICAL issue: "Requirement not found: <requirement name>"
- Recommendation: "Implement requirement X: <description>"
Verify Correctness
Requirement Implementation Mapping:
- For each requirement from delta specs:
- Search codebase for implementation evidence
- If found, note file paths and line ranges
- Assess if implementation matches requirement intent
- If divergence detected:
- Add WARNING: "Implementation may diverge from spec: <details>"
- Recommendation: "Review <file>:<lines> against requirement X"
Scenario Coverage:
- For each scenario in delta specs (marked with "#### Scenario:"):
- Check if conditions are handled in code
- Check if tests exist covering the scenario
- If scenario appears uncovered:
- Add WARNING: "Scenario not covered: <scenario name>"
- Recommendation: "Add test or implementation for scenario: <description>"
- For each requirement from delta specs:
Verify Coherence
Design Adherence:
- If design.md exists in contextFiles:
- Extract key decisions (look for sections like "Decision:", "Approach:", "Architecture:")
- Verify implementation follows those decisions
- If contradiction detected:
- Add WARNING: "Design decision not followed: <decision>"
- Recommendation: "Update implementation or revise design.md to match reality"
- If no design.md: Skip design adherence check, note "No design.md to verify against"
Code Pattern Consistency:
- Review new code for consistency with project patterns
- Check file naming, directory structure, coding style
- If significant deviations found:
- Add SUGGESTION: "Code pattern deviation: <details>"
- Recommendation: "Consider following project pattern: <example>"
- If design.md exists in contextFiles:
Generate Verification Report
Summary Scorecard:
## Verification Report: <change-name> ### Summary | Dimension | Status | |--------------|------------------| | Completeness | X/Y tasks, N reqs| | Correctness | M/N reqs covered | | Coherence | Followed/Issues |Issues by Priority:
- CRITICAL (Must fix before archive):
- Incompl
- CRITICAL (Must fix before archive):
자주 묻는 질문
무엇을 확인하나요?
작업과 스펙의 완전성, 구현의 정확성, 설계의 일관성을 확인합니다.
변경을 대신 고르나요?
아니요. 검증할 변경을 사용자가 고르도록 요청합니다.
언제 실행해야 하나요?
구현이 끝난 뒤, 보관하기 전에 실행하세요.
상세 정보
작성자의 원본 설명
Verify implementation matches change artifacts. Use when the user wants to validate that implementation is complete, correct, and coherent before archiving.
인기도
- GitHub 스타
- 6.0k
- 순위
- #14521
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
openspec-bulk-archive-change
6.0k에이전트가 완료된 여러 OpenSpec 변경을 한 번에 보관하도록 돕고, 보관 전에 각 변경의 작업과 스펙을 확인합니다.
openspec-continue-change
6.0k에이전트가 제안서, 스펙, 설계, 작업 목록 등 다음 산출물을 만들어 OpenSpec 변경을 이어 가도록 돕습니다.
openspec-ff-change
6.0k에이전트가 OpenSpec 변경의 모든 산출물을 한 번에 만들어, 단계마다 기다리지 않고 구현을 시작하게 합니다.
openspec-new-change
6.0k에이전트가 기능이나 수정을 위한 새 OpenSpec 변경을 시작해 폴더를 만들고, 다음에 쓸 산출물을 보여 줍니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.