kit/plugins/agent-reviewer/skills/reviewing-agents/SKILL.md
Audits Claude Code agent files across 5 quality dimensions. Produces a scored report and optionally generates a fix. Use when the user asks to review, audit, or score an agent definition.
npx skillsauth add shawn-sandy/agentics reviewing-agentsInstall 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.
Performs a structured, scored audit of Claude Code subagent definition files against official best practices. Produces a scored report across 5 quality dimensions and optionally generates a corrected version.
Follow these steps exactly.
Does not scaffold new agents — use agent-creator. Does not review SKILL.md files — use skill-reviewer.
Determine which agent definition file to audit:
agents/*.md files in the project and present a picker via AskUserQuestion.Validate the resolved file is an agent definition (has YAML frontmatter with at least a name: field). If the file is a SKILL.md, redirect: "This looks like a skill file. Use /reviewing-skills instead."
Read the target file and record:
| Metric | Value |
|--------|-------|
| Total lines | Count all lines |
| Word count | Count words in body (after closing ---) |
| Frontmatter fields present | name, description, tools, disallowedTools, model, permissionMode, maxTurns, skills, mcpServers, hooks, memory, background, effort, isolation, color, initialPrompt |
| Body lines | Lines after closing --- |
| Body sections detected | Role, Workflow/Behavior, Output Format, Scope Boundaries, Memory instructions |
| Agent type | Read-only, Editor, Background, Orchestrator (infer from tools + background field) |
Plugin agent detection:
Walk up from the agent file's directory to find .claude-plugin/plugin.json.
If found AND the agent is inside a known marketplace structure (kit/plugins/),
set marketplace_repo = true -- suppress plugin-ignored-fields warnings.
If found but NOT in kit/plugins/, set plugin_agent = true -- warn about
ignored fields (permissionMode, hooks, mcpServers).
Edge case detection:
---. Report as hard failure.Note the presence or absence of:
---)name: fielddescription: field with "Use when..." trigger phrase## Role section in body## Workflow or ## Behavior section in body## Output Format section in body## Scope Boundaries section in bodymemory: is set)Default: Use references/best-practices.md (static, always available).
Fetch live from official docs when user says:
Live fetch URL:
https://code.claude.com/docs/en/sub-agents
If live fetch fails: fall back to references/best-practices.md silently and note the failure in the audit output under a "Guidelines Source" line.
For files with git history: Compare the current agent file against its last committed version to detect breaking changes and regressions. See references/audit-steps.md for the comparison matrix.
Skip if any of the following are true:
git rev-parse --git-dir returns non-zero)git log --oneline -- <path> returns no output)For new files (no git history): Run the golden template comparison instead.
Check whether the agent file includes the expected structural sections:
## Role, ## Workflow or ## Behavior, and (for agents that produce output)
## Output Format. Report missing sections as "template gaps" alongside the
dimension scores. See references/best-practices.md -- Golden Template section.
Continue with references/audit-steps.md for:
<!-- SUGGESTION --> comments to a copyFrontmatter Compliance
---) present and matchingname: present, lowercase + hyphens only, <=64 charsname: does not contain anthropic or claude as substringdescription: present, <=1024 chars, third personmodel: valid if present (sonnet, opus, haiku, full model ID, inherit)permissionMode: valid if present (default, acceptEdits, auto, dontAsk, bypassPermissions, plan)maxTurns: in range 5-50 if presenteffort: valid if present (low, medium, high, xhigh, max)color: valid if present (red, blue, green, yellow, purple, orange, pink, cyan)background: boolean if presentisolation: is worktree if presentmemory: valid if present (user, project, local)Tool Configuration
tools: are valid Claude Code toolsAgent not listed in tools: (no effect in subagents)tools and disallowedTools set noted as INFOdisallowedTools: Write, Edit, NotebookEditDescription Quality
System Prompt Quality
## Role section present## Workflow or ## Behavior section present with numbered stepsbackground: true)memory: is set)Security & Isolation
bypassPermissions not used (or has explicit justification)background: true + mutation tools restrictedmaxTurns not outside 5-50 rangedevelopment
Turns a React component into a social card with preview, code, and props table. Builds a static preview and screenshots react-card.html via Playwright. Use when asked to share a React component.
data-ai
Refine-prompt: interviews users and assembles a structured AI prompt using Anthropic best-practice techniques. Use when the user runs /plan-agent:refine-prompt or asks to refine a prompt.
development
Plan review Agent Team. Reviews HTML implementation plans in parallel, synthesizes findings, and applies improvements in place. Use when the user asks to review or improve an implementation plan.
data-ai
Craft-prompt: interviews users and assembles a structured AI prompt using Anthropic best-practice techniques. Use when the user runs /plan-agent:craft-prompt or asks to craft a prompt.