一键导入
spectra-analyze
Analyze artifact consistency for a change
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze artifact consistency for a change
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 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-analyze |
| description | Analyze artifact consistency for a change |
| 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 analyze body below.
When no change name is provided, run spectra list --json. Auto-select only when there is exactly one active change. If there are zero active changes or more than one active change, return the candidate list or empty-state message and ask the main thread to rerun /spectra-analyze <change-name>. Do NOT ask an interactive selection question inside the fork.
Analyze artifact consistency for a change. Can be invoked directly or triggered automatically when all artifacts are complete.
Input: Optionally specify a change name (e.g., /spectra-analyze add-auth). If omitted, infer from conversation context or auto-select if only one active change exists.
Prerequisites: This skill requires the spectra CLI. If any spectra command fails with "command not found" or similar, report the error and STOP.
Steps
Determine change name
If not provided, infer from context or run spectra list --json to auto-select.
Run programmatic analysis
spectra analyze <change-name> --json
This returns structured JSON with:
dimensions: Array of { dimension, status, finding_count } for Coverage, Consistency, Ambiguity, Gapsfindings: Array of { id, dimension, severity, location, summary, recommendation }artifacts_analyzed / artifacts_missing: Which artifacts were availablePresent results
Format the JSON output as a readable summary:
## Artifact Analysis: <change-name>
| Dimension | Status |
|---------------|--------------------------|
| Coverage | <status> |
| Consistency | <status> |
| Ambiguity | <status> |
| Gaps | <status> |
Group findings by severity (Critical > Warning > Suggestion) with locations and recommendations.
Supplement with AI semantic analysis (optional)
The programmatic analyzer catches structural issues. For deeper semantic analysis, also read the artifacts and check for:
Add any additional findings to the report.
Recommend next steps
/spectra-apply/spectra-applyPassive Trigger
When spectra status --change "<name>" --json shows isComplete: true, run this analysis automatically before recommending /spectra-apply.
Guardrails