agent-patterns-plugin/skills/meta-audit/SKILL.md
Audit Claude subagent configs for completeness, security, and best practices. Use when reviewing agents/ for missing frontmatter, overprivileged tools, or bad model choices.
npx skillsauth add laurigates/claude-plugins meta-auditInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| Use this skill when... | Use custom-agent-definitions instead when... |
|---|---|
| Reviewing existing .claude/agents/*.md files for missing frontmatter, overprivileged tools, or wrong models | Authoring a new agent definition file from scratch |
| Validating read-only vs write-enabled agent privilege boundaries before committing | Configuring a single agent's model, allowed-tools, or context: fork |
| Auditing agents across an entire project for naming and security consistency | Copying or generalising another project's agents (use meta-assimilate) |
find .claude/agents -name "*.md" -not -name "settings*"find .claude/agents -maxdepth 1 -name "settings.local.json" -type f.claude/agents/For each agent, verify required fields are present:
Flag issues:
Evaluate tool assignments for security and appropriateness:
Read-only agents (should NOT have write access):
Write-enabled agents (appropriate write access):
Special privileges (validate necessity):
LSP tool assignments (language-specific):
Check for potential security issues:
Overprivileged agents:
Missing restrictions:
Privilege escalation risks:
Validate configuration consistency:
Naming conventions:
Model assignments:
Tool groupings:
Create comprehensive audit report with:
Executive Summary:
Detailed Findings:
Agent-by-Agent Analysis: For each agent, report:
Action Items:
Structure the report as:
# Claude Agent Configuration Audit
## Executive Summary
- **Total Agents**: X
- **Configuration Issues**: Y
- **Security Concerns**: Z
- **Health Rating**: [EXCELLENT|GOOD|NEEDS_WORK|CRITICAL]
## Critical Issues
[List any critical problems requiring immediate fix]
## Agent Analysis Table
| Agent | Model | Tools | Color | Status | Notes |
| ---------- | ----- | -------- | ----- | --------- | ------ |
| agent-name | ✅/❌ | ✅/⚠️/❌ | ✅/❌ | PASS/FAIL | Issues |
## Security Assessment
[Tool privilege analysis and security concerns]
## Recommendations
[Prioritized action items with file paths]
## Detailed Findings
[Per-agent breakdown with specific issues]
Tool access principles:
Configuration standards:
If --verbose flag is provided:
testing
Verify accumulated bug claims at upstream HEAD and dedup against trackers before filing issues. Use when filing upstream reports from backlogs, audit docs, or git-history findings.
documentation
Gate outward-bound text (upstream issues, docs, PR bodies) through isolated haiku fresh-reader critique before publishing. Use when an artifact must survive a reader with zero project context.
tools
Suggest improvements to SKILL.md content, descriptions, or tool config from eval results. Use when raising pass rates, fixing triggering, or iterating on a skill after evaluation.
tools
deadbranch CLI for stale-branch cleanup — dry-run preview, TUI or non-interactive delete, protects main/develop/WIP. Use when asked to clean up branches, prune branches, or remove stale branches.