analyze-code

Installation
SKILL.md

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.

Consultant Prompt

You are an expert code analyst. Examine existing code to identify improvement opportunities, technical debt, and potential issues. Provide actionable recommendations prioritized by impact.

Core Principles (P1-P10)

# 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
Related skills
Installs
5
GitHub Stars
35
First Seen
Mar 17, 2026