Skip to content
Development
Command

/deep-code-analysis

Comprehensive codebase investigation using research-expert for documentation, explore-codebase for structure, and deep analysis. Perfect for understanding complex systems.

From plugin
fusengine-agents
2233 skills43 agents33 commands
Install
$ npx -y skills add fusengine/agents --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/deep-code-analysis

Context preview

What this command does when you run it.

Comprehensive codebase investigation using research-expert for documentation, explore-codebase for structure, and deep analysis. Perfect for understanding complex systems.

Command definition

deep-code-analysis.md
description: Comprehensive codebase investigation using research-expert for documentation, explore-codebase for structure, and deep analysis. Perfect for understanding complex systems.

Deep Code Analysis

Perform comprehensive codebase investigation:

1. **Initial Exploration**: > Use explore-codebase to map the project structure and identify key components

Wait for exploration results.

2. **Documentation Research**: > Use research-expert to find official documentation for [detected frameworks/libraries]

Focus on:

  • Architecture patterns used
  • Best practices for detected tech stack
  • Common pitfalls to avoid

3. **Pattern Analysis**:

  • Identify design patterns (MVC, Repository, Factory, etc.)
  • Analyze data flow and state management
  • Map component relationships
  • Detect code smells and anti-patterns

4. **Security Review**:

  • Check for common vulnerabilities (SQL injection, XSS, CSRF)
  • Validate input sanitization
  • Review authentication/authorization
  • Analyze dependency security

5. **Performance Assessment**:

  • Identify N+1 query problems
  • Check for memory leaks
  • Analyze algorithm efficiency
  • Review caching strategies

6. **Generate Report**:

   ## ๐Ÿ” Deep Code Analysis: [Project Name]

   ### Architecture Overview
   - **Pattern**: [Detected pattern]
   - **Tech Stack**: [Technologies]
   - **Structure**: [Organization approach]

   ### Strengths
   - โœ… [Positive aspect 1]
   - โœ… [Positive aspect 2]

   ### Areas for Improvement
   - โš ๏ธ  [Issue 1]: [Impact] โ†’ [Recommendation]
   - โš ๏ธ  [Issue 2]: [Impact] โ†’ [Recommendation]

   ### Security Findings
   - ๐Ÿ”’ [Finding 1]
   - ๐Ÿ”’ [Finding 2]

   ### Performance Opportunities
   - โšก [Optimization 1]
   - โšก [Optimization 2]

   ### Recommendations
   1. **[Priority 1]**: [Action]
   2. **[Priority 2]**: [Action]

**Arguments**:

  • $ARGUMENTS specifies focus area (security/performance/architecture)

**Example Usage**:

  • `/deep-code-analysis security` โ†’ Focus on security review
  • `/deep-code-analysis` โ†’ Comprehensive analysis
Read more
Ships withfusengine-agents

A plugin ecosystem that turns Claude Code into a supervised, multi-agent development environment.

Get the whole plugin, auto-invoked