一键导入
spec-audit
Spec Audit
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Spec Audit
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Cut a PPDS release — CHANGELOG refresh, version bump, tag push sequence, CI monitoring, post-publish verification. Use when preparing a new prerelease or stable release across CLI, TUI, MCP, Extension, and NuGet libraries.
Triage and merge open dependabot PRs per docs/MERGE-POLICY.md — classify each PR (auto-merge / verify-then-merge / manual review), enable auto-merge for safe ones, run targeted test suites for risky ones, and surface anything needing human judgment. Use when there's a backlog of dependabot PRs, after a quiet period, or as a routine drain.
AI self-verification of implemented work across surfaces (extension, CLI, MCP, TUI, workflow). Use after implementation to verify code works in its runtime environment.
Create, triage, and manage GitHub issues per PPDS backlog conventions. Use when creating issues, grooming the backlog, reviewing what to work on next, or filing bugs.
Brainstorm ideas into specs and plans through collaborative dialogue. Use when starting a new feature, exploring an idea, or designing a system — before any implementation.
Gates
| name | spec-audit |
| description | Spec Audit |
Compare specifications against reality. Find drift, gaps, and undocumented behavior. Produces actionable findings — does not auto-fix.
$ARGUMENTS = spec name for single audit (e.g., connection-pooling), or empty for full audit of all specs
Read these files:
specs/CONSTITUTION.md — principles to check againstSingle spec ($ARGUMENTS provided):
specs/$ARGUMENTS.mdFull audit ($ARGUMENTS empty):
specs/*.md (excluding CONSTITUTION.md, SPEC-TEMPLATE.md, README.md) to get the list of all specsAgent tool with subagent_type: "general-purpose") with the audit prompt belowFor each spec, check these categories:
A. Acceptance Criteria Coverage
## Acceptance Criteria section with numbered IDs?dotnet test --filter "FullyQualifiedName~{TestMethod}" -v q, TypeScript: npx vitest run -t "{TestMethod}" --prefix src/PPDS.Extension)B. Code-to-Spec Alignment
Code: headerC. Constitution Compliance
D. Cross-Spec Consistency
Related Specs section)Single spec report format:
## {spec-name}.md — Audit Report
**Last Updated:** {date from spec header}
**Code:** {code path from spec header}
### Acceptance Criteria
| ID | Criterion | Finding |
|----|-----------|---------|
| AC-01 | {criterion text} | verified: test exists and passes |
| AC-02 | {criterion text} | NOT FOUND: test method not found |
| — | No AC section | MISSING — needs AC table |
### Code Alignment
- {finding 1}
- {finding 2}
### Undocumented Behavior
- {code behavior not covered by any spec section}
### Constitution
- {compliant or violation with citation}
### Remediation Priority
1. {highest priority fix}
2. {next priority}
Full audit summary format:
## PPDS Spec Audit Summary — {date}
### Overview
| Spec | ACs | Alignment | Constitution | Priority |
|------|-----|-----------|--------------|----------|
| connection-pooling.md | 5/5 verified | 2 drifted | compliant | LOW |
| tui-foundation.md | no ACs | 3 missing | A1 violation | HIGH |
### High Priority Remediation
1. {spec}: {issue}
2. {spec}: {issue}
### Stats
- Specs with ACs: N/{total} (compute {total} from glob `specs/*.md` minus CONSTITUTION.md, SPEC-TEMPLATE.md, README.md)
- Specs fully aligned: N/{total}
- Constitution violations: N
When dispatching a subagent for a single spec during full audit, use this prompt:
You are auditing the PPDS specification at specs/{name}.md against the actual codebase.
Read specs/CONSTITUTION.md first for the principles to check against.
Your Job:
1. Read specs/{name}.md
2. Read the code files referenced in the spec's Code: header
3. Check each acceptance criterion — does the referenced test exist? Search with Grep.
4. Check core requirements — does the code match what the spec describes?
5. Check for undocumented behavior — code that does things the spec doesn't mention
6. Check constitution compliance
Report your findings using the single spec report format.
Do NOT fix anything. Just report findings.