meta-audit
БесплатноБез исполняемых скриптовНе проверенAudit Claude subagent configs for completeness, security, and best practices. Use when reviewing agents/ for missing frontmatter, overprivileged tools, or bad…
от laurigates★ 61 звезда на GitHubОб этом скилле
meta-audit
When to Use This Skill
| 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 isolation |
| Auditing agents across an entire project for naming and security consistency | Copying or generalising another project's agents (use meta-assimilate) |
Context
- Agent definitions: !
find . -path '*/.claude/agents/*' -name "*.md" -not -name "settings*" - Settings file: !
find . -path '*/.claude/agents/*' -maxdepth 3 -name "settings.local.json" -type f
Your task
1. Discovery Phase
- Use Glob to find all agent definition files in
.claude/agents/ - Read each agent file to extract frontmatter and configuration
- Identify the settings.local.json for permission overrides
2. Frontmatter Validation
For each agent, verify required fields are present:
- ✅ name: Agent identifier (must match filename)
- ✅ model: an alias (
opus,fable,sonnet,haiku,inherit) or a current full ID (e.g.claude-fable-5-2); a dated ID from a superseded generation (claude-opus-4-7,claude-sonnet-4-6,claude-fable-5-1) is a finding — recommend the alias unless the pin is deliberate - ℹ️ effort: optional
low…max(overrides the session effort while the agent runs; default inherits); recommendlowwhere the body describes mechanical work - ✅ color: Hex color code for UI (e.g., "#E53E3E")
- ✅ description: Clear usage guidance with "Use proactively when..."
- ✅ tools: Tool list or "All" for full access
Flag issues:
- Missing required fields
- Mismatched name vs filename
- Invalid model names
- Malformed color codes
- Keys Claude Code ignores on an agent — skill fields such as
contextorallowed-tools, and misspelled fields. An unrecognized key is dropped without an error, so it reads as configuration and does nothing (sub-agents.md § Supported frontmatter fields)
3. Tool Assignment Analysis
Evaluate tool assignments for security and appropriateness:
Read-only agents (should NOT have write access):
- research-documentation
- code-analysis (read only)
- code-review (read + LSP only)
- security-audit (read + LSP + Bash for scanning)
Write-enabled agents (appropriate write access):
- code-refactoring (Edit, MultiEdit)
- documentation (Write, MultiEdit)
- cicd-pipelines (Write, Edit, GitHub)
Special privileges (validate necessity):
- Bash access (security-audit, system-debugging, cicd-pipelines, test-architecture)
- GitHub access (cicd-pipelines, commit-review)
- Zen MCP access (system-debugging only)
- All tools access (should be rare, validate justification)
LSP tool assignments (language-specific):
- Verify LSP tools match agent's language focus
- security-audit should have broad LSP coverage (6+ servers)
- code-review should have multi-language LSP support
- code-analysis should have appropriate LSP access
4. Security Assessment
Check for potential security issues:
Overprivileged agents:
- Agents with "All" tools without clear justification
- Read-only agents with write/edit capabilities
- Unnecessary Bash or GitHub access
- Research agents with modification permissions
Missing restrictions:
- settings.local.json should have deny rules for destructive operations
- Allow list should be minimal and specific
- No wildcard tool access unless justified
Privilege escalation risks:
- Agents that can modify other agent configs
- Agents with both read and execute permissions
- Cross-agent permission leakage
5. Consistency Checks
Validate configuration consistency:
Naming conventions:
- Agent names use kebab-case
- Filenames match agent names
- Descriptions follow consistent format
Model assignments:
- All agents use appropriate Claude models
- No deprecated model references
- Consistent model selection strategy
Tool groupings:
- Similar agents have similar tool sets
- No duplicate or redundant tool assignments
- Clear separation of concerns
6. Report Generation
Create comprehensive audit report with:
Executive Summary:
- Total agents audited
- Critical issues found
- Security concerns
- Overall health rating
Detailed Findings:
- ❌ Critical: Missing required fields, security violations
- ⚠️ Warnings: Overprivileged agents, inconsistencies
- ℹ️ Info: Best practice suggestions, optimization opportunities
Agent-by-Agent Analysis: For each agent, report:
- Configuration completeness (✅/❌ for each required field)
- Tool assignment appropriateness (✅/⚠️/❌)
- Security assessment (safe/review/risk)
- Recommendations for improvement
*Action Items:
Установить meta-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
GlobReadTodoWriteFAQ
Что делает скилл meta-audit?
Audit Claude subagent configs for completeness, security, and best practices. Use when reviewing agents/ for missing frontmatter, overprivileged tools, or bad model choices.
Как установить скилл meta-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл meta-audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic