Codebase analyzer

From d-o-hub/rust-self-learning-memory · View interactive version

Codebase analyzer is an AI agent skill from the GitHub repository d-o-hub/rust-self-learning-memory. 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 to use this skill

Skill file

Codebase Analyzer

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

Quick Reference

When to Use

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

Step 2: Follow Code Path

Step 3: Document Key Logic

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.