Skills for Real Engineers. Straight from my .agents directory.
map
Agent skill fromSethGammon/Citadel
Structural codebase index generator. Builds a compact JSON map of files, exports, imports, dependency graph, and roles. Queryable by keyword. Injected into fleet agents as context slices to reduce token usage on code navigation.
How to install map
npx skills add SethGammon/Citadel# or add only this skill to Claude Code: copy the folder
skills/map/
# into
~/.claude/skills/map/ (all projects)
.claude/skills/map/ (one project)
1# /map -- Codebase Intelligence23## Orientation45Use `/map` when:6- Starting work on an unfamiliar codebase (build the index first)7- A fleet or archon campaign needs agents to know "what files matter for X"8- You want a quick structural overview (stats, roles, dependency graph)9- You need to find files related to a keyword without exploratory reads1011Do not use `/map` for:12- Reading file contents (use Read)13- Searching for string patterns inside files (use Grep)14- Single-file edits where you already know the path1516## Commands1718| Command | Behavior |19|---|---|20| `/map` | Generate or refresh the index (skips if cache is fresh) |21| `/map --force` | Rebuild the index even if cache is fresh |22| `/map query <terms>` | Search the index for files matching keywords |23| `/map stats` | Print summary statistics (files, lines, languages, roles) |24| `/map slice <terms>` | Output a compact context slice for agent injection |25| `/map stale` | Detect added, changed, or removed indexed source files |2627## Protocol2829### Step 1: GENERATE INDEX3031Run the index generator:3233```bash34node scripts/map-index.js --generate --root .35```3637Add `--force` if the user requested a fresh rebuild or if the index is stale.3839The generator:401. Walks the project tree (respects `.gitignore`, skips `node_modules`, `dist`, etc.)412. Extracts exports, imports, and symbols from each source file423. Infers a role for each file (component, hook, store, route, test, config, etc.)43…
Excerpt shown under the repository's MIT license.
More skills in Citadel
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
