openspec-verify-change
यह क्या करती है
यह स्किल archive से पहले जाँचती है कि code वास्तव में OpenSpec change के योजना दस्तावेज़ों से मेल खाता है। यह उन डेवलपर के लिए है जो पक्का करना चाहते हैं कि feature पूरा और सही है।
कब इस्तेमाल करें
- ✓जब आप change archive करने से पहले पक्का करना चाहें कि implementation पूरा है।
- ✓जब आप OpenSpec change के specs और tasks से code मिलाना चाहें।
- ✓जब आपको शक हो कि code और योजना दस्तावेज़ अब एक जैसे नहीं हैं।
Skill का लिंक
https://github.com/fengshao1227/ccg-workflow/blob/main/.agents/skills/openspec-verify-change/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे OpenSpec में payment feature को archive करने से पहले जाँचिए कि वह उसके specs और tasks से मेल खाता है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट change के दस्तावेज़ लोड करता है, फिर पूर्णता, सटीकता और संगति जाँचता है, और tasks व specs की तुलना लागू किए गए code से करता है।
तकनीकी सामग्री (मूल 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):
अक्सर पूछे जाने वाले सवाल
यह क्या जाँचती है?
यह tasks और specs की पूर्णता, implementation की सटीकता और design की संगति जाँचती है।
क्या यह मेरे लिए change चुनती है?
नहीं। यह जाँचने के लिए change चुनने को कहती है।
इसे कब चलाना चाहिए?
archive करने से पहले, implementation पूरा होने के बाद।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
openspec-bulk-archive-change
6.0kयह आपके एजेंट को कई पूरे हो चुके OpenSpec changes एक साथ archive करने देती है, archive से पहले हर change के tasks और specs जाँचकर।
openspec-continue-change
6.0kयह आपके एजेंट को OpenSpec change को आगे बढ़ाने देती है, उसका अगला artifact बनाकर, जैसे proposal, spec, design या task सूची।
openspec-ff-change
6.0kयह आपके एजेंट को एक साथ OpenSpec change के सारे artifacts बनाने देती है, ताकि हर एक से गुज़रे बिना implementation शुरू हो सके।
openspec-new-change
6.0kयह आपके एजेंट को feature या fix के लिए नया OpenSpec change शुरू करने देती है, उसका फ़ोल्डर बनाकर और दिखाकर कि आगे कौन से artifacts लिखने हैं।
मिलती-जुलती skills
test-driven-development
311kयह आपके एजेंट को किसी भी फ़ीचर या सुधार से पहले पहले असफल होने वाला टेस्ट लिखना, उसे असफल होते देखना, फिर पास करने वाला सबसे छोटा कोड लिखना सिखाती है।
verification-before-completion
311kयह आपके एजेंट को किसी काम, सुधार या build के पूरा या पास होने का दावा करने से पहले असली जांच चलाकर उसका आउटपुट पढ़ना सिखाती है।
migrate-to-shoehorn
310kआपकी टेस्ट फ़ाइलों में जोखिम भरे type casts की जगह shoehorn लाइब्रेरी लगाती है, ताकि टेस्ट अधूरे डेटा से भी type checks पास कर सकें।