codebase-analyzer
Analyze implementation details, trace data flow, explain technical workings, locate files, and consolidate codebases. Use when you need to understand HOW code works, find file locations, or assess technical debt.
How do I install this agent skill?
npx skills add https://github.com/d-o-hub/rust-self-learning-memory --skill codebase-analyzerIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides strategies and templates for technical codebase analysis and consolidation. While the provided instructions are well-structured and safe, the skill's primary function — processing and analyzing untrusted external codebases — represents a surface for indirect prompt injection.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerwarn
1/1 file flagged
What does this agent skill do?
Codebase Analyzer
Analyze implementation details, trace data flow, explain technical workings, and locate files.
Quick Reference
- analysis-dimensions.md - 8 analysis dimensions with detailed criteria
- consolidation-patterns.md - Common refactoring patterns with examples
- report-templates.md - Output format templates
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
| Mode | Purpose | Output |
|---|---|---|
| Locator | Find file locations | File paths with descriptions |
| Analyzer | Trace implementation | Data flow with file:line refs |
| Consolidator | Assess debt/refactor | Debt report + recommendations |
Locator Strategy
Search Patterns
| Pattern | Purpose |
|---|---|
*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.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/d-o-hub/rust-self-learning-memory/codebase-analyzer">View codebase-analyzer on skillZs</a>