一键导入
audit-workspace
Check the workspace against its own standards. Find rules without enforcement, drifted ADRs, stale docs, and missing consequences. Run periodically.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Check the workspace against its own standards. Find rules without enforcement, drifted ADRs, stale docs, and missing consequences. Run periodically.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | audit-workspace |
| description | Check the workspace against its own standards. Find rules without enforcement, drifted ADRs, stale docs, and missing consequences. Run periodically. |
/audit-workspace
Lifecycle position: Utility/periodic — run periodically to check workspace governance health. Not tied to the per-issue lifecycle.
Periodic governance health check — the "garbage collection" pattern. Verifies that the workspace follows its own rules. Reports findings in the conversation.
Not the same as a structural validation script — those scripts check structural config (repos match config files, projects are set up correctly). This skill checks governance: are rules enforced? Are docs current? Are ADRs still accurate?
For each principle in docs/PRINCIPLES.md, check whether an enforcement
mechanism exists:
| Principle | Enforcement | Status |
|---|---|---|
| Human control and transparency | PR template consequence checklist | OK / Missing |
| Enforcement over documentation | Pre-commit hooks, CI checks | OK / Missing |
| ... | ... | ... |
Flag principles that exist only as documentation with no hook, CI check, or guardrail.
For each ADR in docs/decisions/:
Compare the script reference table in AGENTS.md against actual scripts
in .agent/scripts/:
For each template in .agent/templates/:
.agents/ not
agent_context/)?Read the consequences map in .agent/knowledge/principles_review_guide.md:
Check that framework adapter files are consistent with AGENTS.md:
.github/copilot-instructions.md.agent/instructions/gemini-cli.instructions.mdCLAUDE.mdFlag any rules in AGENTS.md that should be reflected in adapters but aren't.
.agent/scripts/worktree_list.sh
List any worktrees that appear abandoned (no recent commits, merged PRs).
## Workspace Audit
**Date**: YYYY-MM-DD
### Summary
| Category | Findings |
|---|---|
| Principles enforcement | X of Y enforced |
| ADR accuracy | X of Y current |
| Script references | X stale, Y undocumented |
| Templates | X issues |
| Consequences map | X gaps |
| Instruction consistency | X issues |
| Stale worktrees | X found |
### Findings
#### <Category>
| Item | Status | Details |
|---|---|---|
| ... | OK / Issue | ... |
### Recommended Actions
- [ ] <specific action items>
generate_knowledge.sh
but it was removed in #274" is actionable. "Some references may be stale"
is not.Lead reviewer that orchestrates specialist sub-reviews (static analysis, governance, plan drift, adversarial) to evaluate a PR. Scales review depth to change risk. Produces a unified structured report.
Claude Code only — create or enter the worktree for an issue/skill and switch the session into it via the native EnterWorktree tool. Wraps worktree_create.sh / worktree_enter.sh so all project policy (issue checks, branch naming, skill allowlist, --plan-file draft PR, --workflow scaffolding) still applies.
Evaluate PR review comments (human and bot) against local code, principles, and ADRs. Includes CI check status. Classifies each as valid or false positive and presents a fix plan.
Generate a principles-aware work plan for an issue. Saves to `.agent/work-plans/` in the repo that owns the issue and commits as the first step on the feature branch.
Scan project repositories for GitHub issues, categorize them, flag stale items, and cross-reference with workspace tracking.
Read ROADMAP.md files, cross-reference with GitHub issues, detect staleness, and suggest prioritized next work.