Skip to content
Back to skills

Repo Map

ASecurity

Generate a ranked codebase map showing key files and relationships

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 2, 2026
ai-agentsgogitapibackend

Works with

  • api

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add majiayu000/claude-skill-registry --skill repo-map --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Repo Map?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Repo Map
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-repo-map/badge)](https://www.skillsdirectory.com/skills/majiayu000-repo-map)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: repo-map
description: Generate a ranked codebase map showing key files and relationships
argument-hint: "[--depth=2] [--focus=<module>]"
tags: [navigation, codebase, architecture, productivity]
user-invocable: true
---

# Codebase Map Generator

Generate a graph-ranked map of the codebase showing the most important files, dependencies, and call relationships.

## What To Do

1. **Analyze the repository structure**: Use Glob to find all source files, count per directory, identify entry points.

2. **Rank files by importance**:
   - Fan-in (how many files reference this file) -- higher = more important
   - Fan-out (how many files this file imports) -- moderate = hub file
   - Size and change frequency via `git log`
   - Entry points (Controllers, Program.cs, App.tsx) rank highest

3. **Generate the map** as structured summary:
   ```
   ## Core (highest rank)
   src/backend/Program.cs                    -- Entry point, DI registration
   src/backend/Services/MatchingService.cs   -- Core matching algorithm (12 refs)

   ## API Layer
   src/backend/Controllers/CandidateController.cs -- 8 endpoints

   ## Domain
   src/backend/Models/CandidateProfile.cs    -- Central model (18 refs)
   ```

4. **Focus mode**: When `--focus=<module>`, zoom into that module with full dependency graph.

## Arguments
- `--depth=<n>`: Directory tree depth (default: 2)
- `--focus=<module>`: Focus on specific module
- `--format=<md|mermaid|json>`: Output format

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.