uniswap/ai-toolkit/analyze-code
Claude Code and agent skill by uniswap/ai-toolkit
- community
Checking that the SKILL.md file is still in the repository.
Comprehensive code explanation and analysis. Use when user says "explain this file to me", "what does this code do", "analyze the security of this module", "review the performance of this function", or "help me understand this architecture".
Install
npx vskill@latest install uniswap/ai-toolkit/analyze-codeSKILL.md
Code Analyzer
Provide comprehensive code explanation through multi-agent analysis for architecture, patterns, security, and performance insights.
Execution Steps
- Identify the target — Extract the file path or module name from the user's request. If no target is specified, ask: "Which file or module would you like me to analyze?"
- Verify the target exists — Use
ReadorGlobto confirm the file exists. If it doesn't, report and stop: "Could not find<path>. Please check the path and try again."
- Infer analysis depth from the user's request:
overview— request uses words like "quick", "summary", "briefly", "what does this do"deep— request mentions "security", "performance", "vulnerabilities", "thorough", "deep", "comprehensive"architectural— request mentions "architecture", "system", "how does this fit", "overall design"- Default to `overview` when depth is ambiguous.
deepspawns three agents; running
that for "what does this file do" costs three context loads to answer a one-agent question. Escalate to deep only on evidence — the user asked for it, overview surfaced a concrete security or performance concern, or the target is a trust boundary (auth, payments, external input parsing).
- Dispatch agents based on depth:
overview: spawn code-explainer-agent only; pass the file path and its contentsdeep: spawn code-explainer-agent + security-analyzer-agent + performance-analyzer-agent in parallelarchitectural: run context-loader-agent first to gather system-level context, then spawn code-explainer-agent + security-analyzer-agent + performance-analyzer-agent in parallel with that context
- Synthesize results — Combine agent outputs into a single structured report. Integrate and deduplicate findings; do not dump raw agent output.
- Handle agent failures — If an agent errors or returns empty output, note it in the report ("Security analysis unavailable") and continue with remaining results.
Analysis Depth
| Depth | Description | Agents Used | |
|---|---|---|---|
overview | Quick summary | code-explainer | |
deep | Comprehensive analysis | code-explainer, security-analyzer, performance-analyzer | |
architectural | System-level context | All agents + context-loader |
Focus Areas
- patterns: Design patterns, SOLID, anti-patterns
- security: Vulnerabilities, input validation, auth
- performance: Algorithm complexity, memory, queries
- all: Complete analysis (default)
Output Includes
- Summary: Purpose and the concrete complexity signals observed (function count, nesting
depth, file length). Do not emit a maintainability score — there is no measurement behind it.
- Architecture: Patterns, layers, coupling analysis
- Functionality: Main purpose, data flow, side effects
- Dependencies: Imports, exports, circular dependencies
- Risks: Security, performance, maintainability issues
- Improvements: Quick wins and refactoring suggestions
Delegation
For simple explanations, use code-explainer-agent directly.
For deep analysis, coordinate:
- code-explainer-agent: Architecture and patterns
- security-analyzer-agent: Vulnerability assessment
- performance-analyzer-agent: Complexity analysis
- context-loader-agent: System-level context
Examples
Detailed Reference
For output schemas and advanced options, see explain-file-guide.md.
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/plugins/development-codebase-tools/skills/analyze-code/SKILL.md
Popularity
- Repository stars
- 42
- Repository forks
- 12
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/uniswap/ai-toolkit/analyze-code)