一键导入
analyze
Read-only consistency, coverage, and Azure-readiness analysis across constitution, spec, plan, and tasks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Read-only consistency, coverage, and Azure-readiness analysis across constitution, spec, plan, and tasks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when starting or refining a project's requirements, before any planning or coding. Supports sub-commands `sync`, `reverse`, and `validate`.
Use when local verification passed and the feature is ready to ship to Azure.
Use when a plan exists and the application source or IaC needs to be created or updated.
Use when a spec exists and an implementation or Azure deployment plan is needed, before writing code.
Use when the user wants to run the full Specify → Plan → Implement → Deploy loop end-to-end in one shot. Accepts a free-form prompt that is passed to specify.
Use when implementation exists and needs to be exercised locally against provisioned Azure dependencies, before deploying.
| name | analyze |
| description | Read-only consistency, coverage, and Azure-readiness analysis across constitution, spec, plan, and tasks. |
$ARGUMENTS
$ARGUMENTS (if any) narrows scope: artifact (spec/plan/tasks), category (coverage/ambiguity/azure), or a T###. Empty = analyze everything.
Strictly read-only. Never modify files; only produce a report.
Load context. Read specs/feature.json → <feature_directory>. Read constitution.md, spec.md, plan.md, tasks.md, tasks.json. Stop if any is missing and name the command to run first (/speckit:specify / /speckit:plan / /speckit:tasks). If tasks.md and tasks.json disagree (IDs, descriptions, order), record as CRITICAL and stop.
Build a lightweight model (don't echo raw artifact text in the report):
spec.md, keyed by explicit IDs (FR-001, SC-002) when present, else imperative slug.plan.md + constitution.tasks.json with depends_on, parallel_with, satisfies, files, status.Detection passes — high-signal only, cap 50 findings, summarize overflow:
CRITICAL.satisfies; tasks whose satisfies references nothing in spec.fast, secure, scalable, robust) without measurable criteria; unresolved markers (TODO, ???, [NEEDS CLARIFICATION: …], Resolve: …).files; requirements with verbs but no measurable outcome; user stories missing acceptance criteria.depends_on.plan.md with no provisioning task; identity/RBAC, networking, region, or data-residency constraints unaddressed; secrets/connection strings inline instead of via Key Vault / managed identity; missing IaC entry point (azure.yaml, infra/main.bicep, main.bicep, infra/main.tf, main.tf) when plan declares Azure resources.Severity:
tasks.md/tasks.json sync.Emit the report as Markdown only (no file writes):
## Specification Analysis Report
| ID | Category | Severity | Location(s) | Summary | Recommendation |
|----|----------|----------|-------------|---------|----------------|
| C1 | Constitution | CRITICAL | plan.md §Architecture | … | … |
### Coverage
| Requirement / Criterion | Has Task? | Task IDs | Notes |
|-------------------------|-----------|----------|-------|
### Unmapped Tasks
- T### — description (no `satisfies`)
### Azure Readiness
- Service / constraint → status (covered / missing IaC / missing task)
### Metrics
- Requirements: N
- Tasks: N (pending: N, done: N)
- Coverage: N% (requirements with ≥1 task)
- Ambiguity findings: N
- Duplication findings: N
- CRITICAL findings: N
Use stable finding IDs by category initial: C constitution, V coverage, D duplication, A ambiguity, U underspec, I inconsistency, Z azure.
Next actions. If any CRITICAL, recommend resolving before /speckit:implement or /speckit:deploy and name the command(s) to run. If only LOW/MEDIUM, note user may proceed and list suggestions. Ask whether to produce concrete remediation suggestions for the top findings — never apply edits.
/speckit:constitution.