一键导入
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 validate_workspace.py — that script checks structural
config (repos match .repos files, layers 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.Host orchestrator that drives an issue through the full per-issue lifecycle — dispatches each phase (review-issue → plan-task → review-plan → implement → review-code → triage-reviews → address-findings) as a fresh-context sub-agent, reads each phase's progress.md entry to choose the next action, and pauses at user checkpoints. Local-first: the PR is created at the end, never auto-pushes or auto-merges without confirmation.
Evaluate a GitHub issue against workspace principles and ADRs before work begins. Records findings in progress.md and best-effort posts them as a comment on the issue.
Independent evaluation of a committed work plan before implementation begins. Checks scope, approach, principle alignment, consequences, and ROS conventions.
Activate deployment mode for a live field deployment. Discovers the project's deployment config, detects dev/field side via field_mode.sh, and either creates a new deployment, first-activates an existing one (worktree/main-tree + per-host log + issue-sync push), or resumes an ongoing one. Loads the urgency contract (sterile-cockpit / mitigate-before-diagnose / time-box) into the current agent session.
Close out a field deployment. Verifies dev-side access, finds the open deployment issue, collects field logs, interviews the operator for corrections, consolidates the dev log, reconciles field code via SHA-preserving merge and /import-field-changes, opens the wrap-up PR (Closes
Lead reviewer that orchestrates specialist sub-reviews (static analysis, governance, plan drift, adversarial) to evaluate a PR or pre-push diff. Scales review depth to change risk. Produces a unified structured report and persists findings to progress.md.