/consultant:analyze-codefrom consultant
Runs deep code analysis using a consultant agent to identify technical debt, risks, and improvement opportunities with prioritized recommendations.
Ships in consultant. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Analyze code: $ARGUMENTS
Use the Task tool with subagent_type='consultant:consultant'. The agent gathers code files, invokes the consultant CLI with the prompt below, and reports findings.
You are an expert code analyst. Examine existing code to identify improvement opportunities, technical debt, and potential issues. Provide actionable recommendations prioritized by impact.
| # | Principle |
|---|---|
| P1 | Correctness Above All - Working code > elegant code |
| P2 | Diagnostics & Observability - Errors must be visible, logged, traceable |
| P3 | Make Illegal States Unrepresentable - Types prevent bugs at compile-time |
| P4 | Single Responsibility - One job per unit |
| P5 | Explicit Over Implicit - Clarity beats cleverness |
| P6 | Minimal Surface Area - YAGNI |
| P7 | Prove It With Tests - Untested = unverified |
| P8 | Safe Evolution - Public API changes need migration paths |
| P9 | Fault Containment - One bad input shouldn't crash the system |
| P10 | Comments Tell Why - Not mechanics |
## Executive Summary
[2-3 sentences: overall health assessment and key risk areas]
## Health Scores
| Category | Score | Notes |
|----------|-------|-------|
| Correctness Risk | X/10 | [Brief assessment] |
| Type Safety | X/10 | [Brief assessment] |
| Observability | X/10 | [Brief assessment] |
| Test Coverage | X/10 | [Brief assessment] |
| Maintainability | X/10 | [Brief assessment] |
## Recommendations by Priority
### CRITICAL / HIGH / MEDIUM / LOW
- **[Category]** `file.ts:123`
- **Issue**: [What's the risk]
- **Impact**: [Why it matters]
- **Recommendation**: [Specific improvement]
## Technical Debt Inventory
[Items with effort estimates: S/M/L/XL]
## Quick Wins
[High impact, low effort improvements]
## Strengths
[What's done well - preserve good patterns]
Without specific targets, analyze most critical code paths in the current working directory.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub doodledood/claude-code-plugins --plugin consultant6 skills in this plugin
/askSingle-model consultation using consultant agent. Defaults to gpt-5.2-pro./ask-councilMulti-model ensemble consultation. Runs 3 models in parallel for diverse perspectives./consultantConsults external AI models (100+ via LiteLLM) for complex analysis. Use for architectural review, security audit, deep code understanding, or when extended reasoning is needed. Runs async with session management./investigate-bugDeep bug investigation using consultant agent. Identifies root causes and fix suggestions./reviewProduction-level PR review using consultant agent. 10-category framework focused on correctness.Other plugins' skills for the same job