com um clique
spectra-verify
Verify implementation matches artifacts
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Verify implementation matches artifacts
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Use when 使用者說「自動推」「loop」「幫我把 change 推到 ready」「不在的時候繼續做」、或 routine fire 自動觸發(--unattended)。適用於推進既有 spectra change;NOT for 非 spectra 工作、一次性任務、interval 盲跑命令(用 /loop)、user 在場想逐項拍板(用 /goal)、或想設計新 loop(看 vendor/snippets/loop-engineering cookbook)。
依功能分類變更並逐步完成 commit,遵循 commitlint 規範。Use when 使用者說「commit」「提交」「分批 commit」,或 working tree 有多組 unrelated 變更需要分門別類提交。
Deprecated alias — 已改名 /change-loop(2026-07-05)。Use when 既有 routine 或舊指令仍呼叫 /loop-engineer 時轉發。
Analyze artifact consistency for a change
Implement or resume tasks from a Spectra change
Archive a completed change
| name | spectra-verify |
| description | Verify implementation matches artifacts |
| context | fork |
| agent | Explore |
| disallowedTools | ["Edit","Write"] |
| license | MIT |
| compatibility | Requires spectra CLI. |
| effort | medium |
| metadata | {"author":"spectra","version":"1.0","generatedBy":"Spectra"} |
This generated Claude Code skill runs with context: fork. The rules in this section take precedence over the shared verify body below.
When no change name is provided, run spectra list --json and consider only active changes with implementation tasks. Auto-select only when exactly one matching active change exists. If there are zero matching active changes or more than one matching active change, return the candidate list or empty-state message and ask the main thread to rerun /spectra-verify <change-name>. Do NOT ask an interactive selection question inside the fork.
Verify that an implementation matches the change artifacts (specs, tasks, design).
Input: Optionally specify a change name after /spectra-verify (e.g., /spectra-verify add-auth). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
Prerequisites: This skill requires the spectra CLI. If any spectra command fails with "command not found" or similar, report the error and STOP.
Steps
If no change name provided, prompt for selection
Run spectra list --json to get available changes. Use the AskUserQuestion tool to let the user select (if this tool is not available, ask as plain text and wait for the user's response).
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
spectra status --change "<name>" --json
Parse the JSON to understand:
schemaName: The workflow being used (e.g., "spec-driven")2.5. Stash Reconcile (clade fork; not in upstream spectra)
Scan namespaced stashes related to this change before verifying. Prevents false-positive pass when WIP fixes are stuck in stash (auto-stashed by wt-helper / propagate / clade-publish) and never reapplied to the tree under verification — without this, verify on a clean tree reports green but real fixes haven't landed.
node scripts/stash-reconcile.mjs --slug "<change-name>" --jsonentries.length === 0, continue silently to Step 3.⚠ Stash Reconcile: N entries match slug '<change>', then use AskUserQuestion:
ref, namespace.kind, createdAt, file list, and recommendation.action/recommendation.reason; then re-ask the same questionrecommendation.action === "apply", run git stash apply <ref> (safety contract: NEVER pop / drop here). Then continue to Step 3.--no-reconcile (or said "不要掃 stash" / "skip reconcile"), skip this step and print Stash reconcile: skipped (user --no-reconcile).Get the change directory and load artifacts
spectra instructions apply --change "<name>" --json
This returns the change directory and context files. Read all available artifacts from contextFiles.
Initialize verification report structure
Create a report structure with three dimensions:
Each dimension can have CRITICAL, WARNING, or SUGGESTION issues.
Verify Completeness
Task Completion:
- [ ] (incomplete) vs - [x] (complete)Spec Coverage:
openspec/changes/<name>/specs/:
5.5. Manual-Review Pattern Re-check (clade fork addition — advisory; verify is read-only)
/spectra-verify runs with disallowedTools: [Edit, Write] (see frontmatter), so this step does not fix ## 人工檢查 pattern hits — it surfaces them as Completeness WARNING issues. The actual interactive fix path is /spectra-archive Step 3.3 (Fix now / @followup / @no-manual-review-check) or /spectra-ingest Check 7 if more context update needed first.
bash scripts/spectra-advanced/post-propose-manual-review-check.sh <change-name>
Exit 2 = pattern findings (any of ABSTRACT_REFERENCE / CARD_WITHOUT_UID / UI_ITEM_NO_URL / MULTI_STEP_NOT_SCOPED / REVIEW_UI_BACKEND_ROUNDTRIP / INTERNAL_JARGON_LEAKAGE). For each finding parsed from hook stderr:
Manual-review pattern hit: <pattern> at tasks.md:<line>Run /spectra-archive Step 3.3 to fix interactively (or Edit tasks.md per hook remediation guidance), then re-run /spectra-verifyHook exits 0 → no Completeness manual-review issues added; proceed to Step 6 silently. Reference: vendor/snippets/manual-review-enforcement/patterns.json + rules/core/manual-review.data-readiness.md.
Verify Correctness
Requirement Implementation Mapping:
Scenario Coverage:
Example Traceability:
##### Example: in delta specs:
Verify Coherence
Design Adherence:
Code Pattern Consistency:
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):
WARNING (Should fix):
SUGGESTION (Nice to fix):
Final Assessment:
Assessment evidence gate(clade fork addition — 寫「All checks passed / Ready for archive」前 MUST):report 附 ### Evidence 段,每個 dimension 一行「實際執行的檢查+結果」——Completeness 貼 tasks.md checkbox 計數的實跑輸出、Correctness 貼 requirement 關鍵詞搜尋的命中檔案清單(或「searched X, found in Y」摘要)、Coherence 貼 design 決策比對的 code refs。貼不出某 dimension 的證據=該 dimension 在 scorecard 標「not verified」,不得計入 pass。
Verification Heuristics
Graceful Degradation
Output Format
Use clear markdown with:
file.ts:123