This skill should be used when the user asks to "modernize an agent", "audit agent definitions", "update agent format", "check agent quality", "rewrite agent prompts", or wants to bring agent files up to current Claude Code plugin standards. Also applies when reviewing agents for verbose content, missing frontmatter, or weak triggering descriptions.
From ai-developmentnpx claudepluginhub therealbill/mynet --plugin ai-developmentThis skill uses the workspace's default tool permissions.
references/audit-criteria.mdSearches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Analyzes unfamiliar codebases to generate structured onboarding guides with architecture maps, key entry points, conventions, and starter CLAUDE.md.
Audit and rewrite Claude Code plugin agent definitions to meet current standards. Transform verbose, generic agent prompts into concise, opinionated definitions that trust the model's knowledge and focus on decisions, boundaries, and priorities.
.md files against the plugin agent specRead the agent file and evaluate against the spec. Check every frontmatter field and assess the
system prompt quality. For the complete checklist, consult references/audit-criteria.md.
Produce a findings table:
| # | Field/Area | Issue | Severity |
|---|---|---|---|
| 1 | color | Missing — required field | Must fix |
| 2 | description | No <example> blocks | Must fix |
| ... | ... | ... | ... |
Severity levels:
Scan the body for common anti-patterns. For the full list, consult the "System Prompt Anti-Patterns"
section in references/audit-criteria.md. The key patterns to flag:
Count total bullet points and flag if over ~20 — a sign the prompt is listing topics instead of providing guidance.
When rewriting, apply these principles:
Trust the model. Opus doesn't need to be told what gofmt is or that errors.Is exists. State
priorities and boundaries, not concept inventories.
Decisions over topics. Instead of "Branching strategies: Git Flow, GitHub Flow, trunk-based," write "Default to trunk-based with short-lived feature branches unless the project genuinely needs release branches."
Guard rails over checklists. A "Do Not" section that prevents the 3-5 most common mistakes is more valuable than a 20-item checklist of things to do.
Concise role statement. One sentence establishing who the agent is. No "years of experience" padding.
Concrete process. Numbered steps for what happens when the agent is invoked. Each step should describe an action, not a topic.
Structured output. Define how results should be reported — severity levels, file references, format.
After rewriting, verify:
name, description, model, color)<example> blocks with proper structuretools array follows least-privilege principleWhen auditing multiple agents in a directory, produce a summary table:
| Agent | Lines | Missing Fields | Anti-patterns | Action Needed |
|---|---|---|---|---|
code-reviewer | 31 | color, examples | Generic checklist | Rewrite |
architect-reviewer | 43 | model, color, tools | None significant | Fix frontmatter |
Prioritize rewrites by severity. Fix frontmatter-only issues first, then tackle full rewrites.
Model selection:
opus — Complex judgment: architecture review, test diagnosis, code simplification, TUI designsonnet — Formulaic review: code review checklists, accessibility audits, Playwright testshaiku — Simple validation: format checks, lintinginherit — When the parent's model is always appropriateWhen to merge agents: If two agents share >70% of their system prompt or would need the same context to operate, merge them. Add a section for the secondary concern rather than maintaining a separate agent with overlapping triggers.
When to split agents: If an agent's system prompt exceeds 5,000 characters and covers genuinely distinct domains (e.g., TUI development + database design), split into focused agents.
For detailed audit criteria, anti-pattern examples, and rewriting methodology:
references/audit-criteria.md — Complete frontmatter checklist, system prompt anti-patterns with before/after examples, quality criteria, color guidelines, and rewriting methodology