| name | audit-agents |
| description | Audit the agentic configuration for consistency, coherence, and conciseness. Load when modifying agent definitions, skills, or pipeline structure, or to verify cross-tool parity. |
| compatibility | ["claude-code","opencode","github-copilot"] |
| metadata | {"version":"2.0","author":"team"} |
When to Run
Run this audit after any change to:
- Agent definitions (
.claude/agents/, .opencode/agents/, .github/agents/)
- Skills (
.claude/skills/)
- Pipeline state files or templates (
.claude/templates/)
- CLAUDE.md agent-related sections
.claude/agents/README.md
Audit Checklist
1. Skills Coverage
2. Agent Thinness
For each agent in .claude/agents/, .opencode/agents/, and .github/agents/:
Grep patterns to detect violations:
| Pattern | Where to Search | Violation |
|---|
| \.scratch/ | Agent body | Inline state detection table (belongs in pipeline-handoff skill) |
- \[ \] | Agent body | Inline checklist (belongs in a skill) |
\*\*Red\*\*.*failing test | Agent body | Inline TDD process (belongs in tdd-workflow skill) |
## Review Focus | Agent body | Inline review criteria (belongs in review skill) |
## PRD Boundary | Agent body | Inline validation rules (belongs in prd-authoring skill) |
## Output Format with template | Agent body | Inline output template (belongs in .claude/templates/ or skill) |
| Numbered list 5+ steps duplicating skill | Agent body | Inline process (belongs in a skill) |
## Principles with numbered items | Agent body (design expert) | Inline design principles (belongs in design-validation skill) |
3. Cross-Tool Parity
For each agent, compare all three tool versions (.claude/, .opencode/, .github/):
4. Reference Integrity
5. Review Output Files
Verify these filenames match across all locations:
- Reviewer agent files (all three tools)
review-checklist skill reviewer table
.claude/agents/README.md agent table
.claude/templates/review.md (output format)
Expected filenames:
code-quality-reviewer writes .scratch/reviews/code-quality.md
test-reviewer writes .scratch/reviews/test-coverage.md
security-reviewer writes .scratch/reviews/security.md
doc-reviewer writes .scratch/reviews/doc-review.md
6. No Duplication
7. State File Consistency
Verify state file names match across:
pipeline-handoff skill state files table
.claude/agents/README.md scratch directory structure
.claude/templates/ directory
Expected state files:
.scratch/current-feature.md (product-requirements-expert)
.scratch/design-notes.md (system-design-expert)
.scratch/implementation-plan.md (feature-implementer)
.scratch/build-failure.md (feature-implementer, deleted on success)
.scratch/reviews/*.md (reviewer agents)
.scratch/review-summary.md (feature-implementer)
.scratch/escalations.md (feature-implementer)
.scratch/eval-*.md (coordinator via feature-eval skill)
8. Quality Gate Consistency
Verify the quality gate matches across all locations:
9. Pipeline Philosophy Enforcement
Verify the pipeline-handoff skill contains:
Verify agents do NOT contain:
10. Reviewer Conduct
For each reviewer agent (code-quality, test, security, doc) in all three tool directories:
11. Skill Cross-References
Output Format
Report each item as:
[OK] — checked and correct
[ISSUE] file:line — description and fix
[DUPLICATION] file:line — what is duplicated and where