一键导入
audit-project
Check a project repo against workspace and project-level conventions. Reports governance coverage, documentation gaps, and test status.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Check a project repo against workspace and project-level conventions. Reports governance coverage, documentation gaps, and test status.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
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.
| name | audit-project |
| description | Check a project repo against workspace and project-level conventions. Reports governance coverage, documentation gaps, and test status. |
/audit-project [<repo-name>]
If no repo name is given, audit the project repo in the current directory (when working in a project worktree).
Lifecycle position: Utility/periodic — run before or after repo work to check project-level governance. Not tied to the per-issue lifecycle.
Check a project repo against workspace standards and its own governance docs. Reports what's present, what's missing, and what may have drifted. Useful for onboarding to a repo, identifying documentation gaps, or verifying governance adoption.
Not the same as audit-workspace — that checks workspace-level governance.
This checks a single project repo.
If a repo name is given, find it under project/<repo-name>.
If not, use the current directory. Verify it's a valid project repo
(has at least a recognizable project structure such as a build file,
source directory, or manifest).
# Find repo location
find project/<repo-name> -maxdepth 0 -type d 2>/dev/null
Using the governance template (.agent/templates/project_governance.md)
as reference, check what exists:
| Item | Status | Path |
|---|---|---|
.agents/README.md | Present / Missing | ... |
PRINCIPLES.md | Present / Missing | ... |
ARCHITECTURE.md | Present / Missing | ... |
docs/decisions/ | Present / Missing (N ADRs) | ... |
.agents/workspace-context/ | Present / Missing | ... |
This is a coverage report, not a mandate — not every repo needs full governance. But missing items should be noted.
If .agents/README.md exists, check it against the template
(.agent/templates/project_agents_guide.md):
For each component/module in the repo:
For each component:
test/, tests/, *_test.py, *_test.cpp, *_test.go, *.test.*)make test
# or: npm test, pytest, cargo test, etc.
Report test existence and pass/fail, not test quality.
README.md exist?.agent/project_knowledge/ symlink (pointing to
.agents/workspace-context/) include content from this repo?## Project Audit: <repo-name>
**Location**: `project/<repo-name>`
**Components**: N components (list)
### Governance Coverage
| Item | Status |
|---|---|
| `.agents/README.md` | Present / Missing |
| `PRINCIPLES.md` | Present / Missing |
| ... | ... |
### Agent Guide
<findings if .agents/README.md exists, or "No agent guide — consider
creating one with the project_agents_guide.md template">
### Component Metadata
| Component | Description | License | Maintainer | Tests |
|---|---|---|---|---|
| `component_name` | OK / Missing | OK / Missing | OK / Missing | Exist / Missing |
### Documentation
| Item | Status |
|---|---|
| Top-level README | Present / Missing |
| ... | ... |
### Workspace Integration
| Check | Status |
|---|---|
| Listed in workspace manifest | Yes / No |
| ... | ... |
### Recommended Actions
- [ ] <specific action items>