repo-scanner
Analyze repository structure and generate comprehensive index. Use to understand codebase organization or create repo-index.md.
When & Why to Use This Skill
The Repository Scanner skill is a powerful utility designed to automate codebase analysis and documentation. It scans repository structures to generate a comprehensive 'repo-index.md', mapping out directory hierarchies, key file purposes, entry points, and essential build commands. By providing a structured overview of project organization, it significantly reduces the cognitive load for developers and optimizes context for AI-assisted development.
Use Cases
- Rapid Onboarding: Help new team members quickly grasp the architecture and file organization of complex, unfamiliar repositories.
- AI Context Enhancement: Generate a lightweight, structured index to provide LLMs with a clear map of the codebase without exceeding token limits.
- Automated Technical Documentation: Maintain an up-to-date repository map that includes metadata, dependency entry points, and core module descriptions.
- Project Structural Auditing: Identify key entry points and verify that the project layout adheres to architectural standards and best practices.
| name | repo-scanner |
|---|---|
| description | Analyze repository structure and generate comprehensive index. Use to understand codebase organization or create repo-index.md. |
Repository Scanner Skill
Analyze the repository structure and generate a comprehensive index.
Output
Generate .prompt/repo-index.md with:
Project Metadata
- Name, type, languages, package manager
Directory Structure (2 levels)
- Key directories with one-sentence descriptions
Key Files Index
- File paths with line ranges and purposes
Entry Points
- Main entry, CLI entry, config locations
Commands
- Install, build, test, lint commands
Constraints
- Output under 200 lines
- Use file links
[name](path#L1-L50) - Reference over copy - don't include file contents
- Respect
.gitignorebut include.claude/,.github/
Rainze Project Structure
src/rainze/ # Python main code
├── core/ # Core module, contracts
├── agent/ # UCM, scene classifier
├── ai/ # LLM integration
├── gui/ # PyQt6 GUI
├── memory/ # Memory & retrieval
├── animation/ # Animation system
└── state/ # State management
rainze_core/ # Rust performance module
config/ # JSON configuration
.github/prds/ # PRD documents
Workflow
- Use
findorls -Rto discover structure - Read key files (pyproject.toml, Cargo.toml, etc.)
- Identify entry points and dependencies
- Generate structured index with links