一键导入
analyze
Check for drift between spec.md, plan.md, tasks.md, and the actual code. Reports the gaps; does not fix them.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Check for drift between spec.md, plan.md, tasks.md, and the actual code. Reports the gaps; does not fix them.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run a category-specific quality pass (security / performance / accessibility / i18n / privacy / observability) against the current plan and code.
Surface [NEEDS CLARIFICATION] markers in spec.md (or plan.md) to the user, one at a time, and edit the file with the answers.
Bootstrap or amend constitution.md (framework, preset, or project). Inspects existing project context first; enforces the amendment process: issue first, one article per PR, reviewer non-author.
Print the pipeline quick-reference — a one-screen summary of every /aia:* command and its hand-offs, prefixed by a state-aware "Próximo passo" line.
Execute an approved plan + tasks list by dispatching one fresh subagent per task and applying two-stage review (spec compliance, then code quality) before moving on.
Turn an approved spec.md into a plan.md (plus research, data-model, contracts as needed) that passes the Constitution Check.
| name | analyze |
| description | Check for drift between spec.md, plan.md, tasks.md, and the actual code. Reports the gaps; does not fix them. |
| metadata | {"aiadev":{"version":"0.2.0","inputs":[{"type":"dir","path":"specs/<branch>/"}],"outputs":[{"type":"text","description":"A gap report. Optionally written to specs/<branch>/analysis.md."}],"requires":["constitution"],"handoffs":["plan","tasks","clarify"]}} |
Compare what the spec said, what the plan scheduled, what the tasks listed, and what the code actually did. Return a report of the drift.
Announce at start: "Using the analyze skill. I will report gaps; fixes are a separate pass."
Run pre-flight first: aiadev preflight analyze --feature <slug>. Abort on non-zero exit unless AIADEV_PREFLIGHT=warn is set.
spec.md, plan.md, tasks.md, and the diff of the branch vs its base.done whose files are missing or unchanged in the diff.FAIL.specs/<branch>/analysis.md (optional) or straight to the user.When a knowledge-graph context provider is configured (the optional
knowledge-graph preset declares it in mcps.yaml, spec 0017), ground the
gap classes in facts from the provider instead of inference alone. Follow
rules/graph-facts.md for how to cite and label every fact.
drift
operation; for each fact in missing, report the gap citing the
expected-and-absent path:symbol.extra, list
the changed file with the graph edge to its subsystem, so the drift reads
as "this file belongs to subsystem X but no task asked for it".rules/graph-facts.md — one of explicit, inferred, or ambiguous. A
fact labelled inferred or ambiguous is a signal to verify, and is
not a definitive gap; only explicit facts back a definitive statement.Graceful degradation. The provider is optional. When no provider is configured, produce the exact same report as the inference-only Loop above (the four gap classes) and never emit an error because a provider is absent. A provider that is configured but unavailable at runtime (timeout/error) is treated the same way: omit the provider-grounded contribution with a short note and keep the base report.
Suggest the skill most likely to close each gap:
clarify or specify (for the missing scenario).plan.tasks.implement.constitution.md's amendment process.