mcpField
C
codebase-analyzer

codebase-analyzer

github.com/d-o-hubDevelopment1351 installsUpdated today
Repository

About codebase-analyzer

A codebase analysis skill for developers who need to understand implementation, locate files, or document code paths. It separates file discovery, implementation tracing, and refactoring assessment into focused modes.

Key features

  1. 01File and functionality locator
  2. 02Implementation and data-flow tracing
  3. 03Technical debt assessment
  4. 04API and architecture documentation
  5. 05File:line references

Use cases

  1. 01Locate where a feature is implemented
  2. 02Trace data from entry point to exit
  3. 03Prepare code review documentation
  4. 04Identify refactoring opportunities

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/d-o-hub/rust-self-learning-memory --skill codebase-analyzer

After installing, type/codebase-analyzerin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

analysis-dimensions.md
consolidation-patterns.md
report-templates.md
evals/
evals.json

Details

From the project README

Codebase Analyzer

Analyze implementation details, trace data flow, explain technical workings, and locate files.

Quick Reference

When to Use

  • Understanding how a specific feature works
  • Finding where functionality is implemented
  • Tracing data flow from entry to exit
  • Assessing technical debt and refactoring opportunities
  • Documenting API contracts and architecture
  • Code review preparation

Analysis Modes

ModePurposeOutput
LocatorFind file locationsFile paths with descriptions
AnalyzerTrace implementationData flow with file:line refs
ConsolidatorAssess debt/refactorDebt report + recommendations

Locator Strategy

Search Patterns
PatternPurpose
*service*, *handler*Business logic
*test*, *spec*Test files
*.config.*Configuration
Rust: src/, crates/Source files
Output Format
## File Locations for [Feature]

### Implementation Files
- `src/services/feature.rs` - Main service logic

### Test Files
- `src/services/__tests__/feature.test.rs`

### Configuration
- `config/feature.json`

Analyzer Strategy

Step 1: Read Entry Points
  • Start with main files mentioned
  • Look for exports, public methods
Step 2: Follow Code Path
  • Trace function calls step by step
  • Note data transformations
Step 3: Document Key Logic
  • Describe validation, error handling
  • Explain complex algorithms

Guidelines

Do

✓ Include file:line references ✓ Read files thoroughly before explaining ✓ Trace actual code paths ✓ Group files logically by purpose ✓ Use multiple search patterns

Don't

✗ Guess about implementation ✗ Skip error handling ✗ Make architectural recommendations without context ✗ Analyze without clear goals

Remember

You are a documentarian. Map and explain, don't redesign.

Comments

Markdown supported