ALWAYS invoke this skill when auditing, reviewing, or evaluating subagent configuration files. NEVER audit subagents without this skill.
From claudenpx claudepluginhub outcomeeng/claude --plugin claudeThis skill uses the workspace's default tool permissions.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Facilitates interactive brainstorming sessions using diverse creative techniques and ideation methods. Activates when users say 'help me brainstorm' or 'help me ideate'.
This ensures subagents follow proper structure, configuration, pure XML formatting, and implementation patterns. </objective>
<quick_start>
$ARGUMENTS</quick_start>
<constraints> - MUST check for markdown headings (##, ###) in subagent body and flag as critical - MUST verify all XML tags are properly closed - MUST distinguish between functional deficiencies and style preferences - NEVER flag missing tag names if the content/function is present under a different name (e.g., `<critical_workflow>` vs `<workflow>`) - ALWAYS verify information isn't present under a different tag name or format before flagging - DO NOT flag formatting preferences that don't impact effectiveness - MUST flag missing functionality, not missing exact tag names - ONLY flag issues that reduce actual effectiveness - ALWAYS apply contextual judgment based on subagent purpose and complexity </constraints><critical_workflow> MANDATORY: Read best practices FIRST, before auditing:
.claude/plugins/cache/**/creating-subagents/SKILL.mdreferences/subagents.md, references/writing-subagent-prompts.md$ARGUMENTSUse ACTUAL patterns from references, not memory. </critical_workflow>
<evaluation_areas> <area name="critical" priority="must-fix"> These issues significantly hurt effectiveness - flag as critical:
yaml_frontmatter:
role_definition:
<role> section clearly define specialized expertise?workflow_specification:
<workflow>, <approach>, <critical_workflow>, etc.)?constraints_definition:
tool_access:
xml_structure:
focus_areas:
output_format:
<output_format> section with clear structuremodel_selection:
success_criteria:
error_handling:
examples:
context_management: For long-running agents, context/memory strategy extended_thinking: For complex reasoning tasks, thinking approach guidance prompt_caching: For frequently invoked agents, cache-friendly structure testing_strategy: Test cases, validation criteria, edge cases observability: Logging/tracing guidance evaluation_metrics: Measurable success metrics
</area> </evaluation_areas><contextual_judgment> Apply judgment based on subagent purpose and complexity:
Simple subagents (single task, minimal tools):
Complex subagents (multi-step, external systems, security concerns):
Delegation subagents (coordinate other subagents):
Always explain WHY something matters for this specific subagent, not just that it violates a rule. </contextual_judgment>
<anti_patterns> Flag these structural violations:
<pattern name="markdown_headings_in_body" severity="critical"> Using markdown headings (##, ###) for structure instead of XML tags.Why this matters: Subagent.md files are consumed only by Claude, never read by humans. Pure XML structure provides ~25% better token efficiency and consistent parsing.
How to detect: Search file for ## or ### symbols outside code blocks/examples.
Fix: Convert to semantic XML tags (e.g., ## Workflow → <workflow>)
</pattern>
Why this matters: Breaks parsing, creates ambiguous boundaries, harder for Claude to parse structure.
How to detect: Count opening/closing tags, verify each <tag> has </tag>.
Fix: Add missing closing tags, fix nesting order. </pattern>
<pattern name="hybrid_xml_markdown" severity="critical"> Mixing XML tags with markdown headings inconsistently.Why this matters: Inconsistent structure makes parsing unpredictable, reduces token efficiency benefits.
How to detect: File has both XML tags (<role>) and markdown headings (## Workflow).
Fix: Convert all structural headings to pure XML. </pattern>
<pattern name="non_semantic_tags" severity="recommendation"> Generic tag names like `<section1>`, `<part2>`, `<content>`.Why this matters: Tags should convey meaning, not just structure. Semantic tags improve readability and parsing.
How to detect: Tags with generic names instead of purpose-based names.
Fix: Use semantic tags (<workflow>, <constraints>, <validation>).
</pattern>
</anti_patterns>
<output_format> Audit reports use severity-based findings, not scores. Generate output using this markdown template:
## Audit Results: [subagent-name]
### Assessment
[1-2 sentence overall assessment: Is this subagent fit for purpose? What's the main takeaway?]
### Critical Issues
Issues that hurt effectiveness or violate required patterns:
1. **[Issue category]** (file:line)
- Current: [What exists now]
- Should be: [What it should be]
- Why it matters: [Specific impact on this subagent's effectiveness]
- Fix: [Specific action to take]
2. ...
(If none: "No critical issues found.")
### Recommendations
Improvements that would make this subagent better:
1. **[Issue category]** (file:line)
- Current: [What exists now]
- Recommendation: [What to change]
- Benefit: [How this improves the subagent]
2. ...
(If none: "No recommendations - subagent follows best practices well.")
### Strengths
What's working well (keep these):
- [Specific strength with location]
- ...
### Quick Fixes
Minor issues easily resolved:
1. [Issue] at file:line → [One-line fix]
2. ...
### Context
- Subagent type: [simple/complex/delegation/etc.]
- Tool access: [appropriate/over-permissioned/under-specified]
- Model selection: [appropriate/reconsider - with reason if latter]
- Estimated effort to address issues: [low/medium/high]
</output_format>
<validation> Before completing the audit, verify:<final_step> After presenting findings, offer:
</final_step>
<success_criteria> A complete subagent audit includes:
</success_criteria>