From code-quality
Performs deep codebase analysis for patterns, architecture, implementation details, and technical debt using codebase-analyst agent. Analyzes concepts, modules, questions, or provides overviews.
npx claudepluginhub melodic-software/claude-code-plugins --plugin code-qualityThis skill is limited to using the following tools:
Perform comprehensive codebase analysis to understand patterns, architecture, and implementation details.
Conducts evidence-based codebase analysis with confidence tracking, gathering from code, docs, tests, git history for architecture mapping, pattern extraction, and technical research.
Analyzes codebases with Gemini's codebase_investigator tool for architecture overviews, dependency mapping, onboarding unfamiliar code, legacy systems, and technical debt identification.
Deeply explores existing codebases to map architecture, data flow, domain model, API surface, dependencies, and code health using read-only SubAgents.
Share bugs, ideas, or general feedback.
Perform comprehensive codebase analysis to understand patterns, architecture, and implementation details.
Use the codebase-analyst agent to perform deep codebase analysis.
The codebase-analyst agent provides:
Invoke the agent based on the arguments provided:
$ARGUMENTS
Based on the arguments, determine the analysis scope:
If a topic/concept provided (e.g., "authentication", "error handling"):
- Find all code related to that concept
- Analyze patterns, implementations, and consistency
- Identify entry points, data flows, and dependencies
If a directory/path provided (e.g., "src/components/"):
- Analyze architecture and structure of that module
- Identify patterns and conventions used
- Map internal dependencies
If a question provided (e.g., "how does the API handle errors?"):
- Research and answer the architectural question
- Provide code references and examples
- Explain the design decisions
If no arguments:
- Provide high-level codebase overview
- Identify main modules and their relationships
- Highlight key patterns and conventions
/code-quality:analyze authentication
/code-quality:analyze "error handling patterns"
/code-quality:analyze "how API endpoints work"
/code-quality:analyze src/components/
/code-quality:analyze "the database layer"
/code-quality:analyze "how does caching work in this codebase?"
/code-quality:analyze "what design patterns are used?"
/code-quality:analyze
The agent returns analysis findings:
## Analysis: [Topic/Scope]
### Overview
[High-level summary of findings]
### Key Patterns
- [Pattern 1]: [Description and locations]
- [Pattern 2]: [Description and locations]
### Architecture
[Structure, layers, dependencies]
### Code References
- `path/to/file.ext:line` - [What this shows]
### Recommendations
[Suggestions for understanding or improving]
This command delegates to the codebase-analyst agent which specializes in deep exploration and pattern recognition. It's read-only and focuses on understanding rather than modification.