repo-scanner

DCRepairCenter's avatarfrom DCRepairCenter

Analyze repository structure and generate comprehensive index. Use to understand codebase organization or create repo-index.md.

⭐0stars🔀1forks📁View on GitHub🕐Updated Jan 1, 2026⬇️3downloads

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.
namerepo-scanner
descriptionAnalyze 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:

  1. Project Metadata

    • Name, type, languages, package manager
  2. Directory Structure (2 levels)

    • Key directories with one-sentence descriptions
  3. Key Files Index

    • File paths with line ranges and purposes
  4. Entry Points

    • Main entry, CLI entry, config locations
  5. 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 .gitignore but 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

  1. Use find or ls -R to discover structure
  2. Read key files (pyproject.toml, Cargo.toml, etc.)
  3. Identify entry points and dependencies
  4. Generate structured index with links