project-map

A codebase map generator that creates a short file describing a project's languages, structure, commands, entry points, and conventions.

In plain words
What is it for?
Use it when onboarding to a repository, exploring an unfamiliar codebase, or auditing its layout. It can also identify the structure of a monorepo, which is a repository containing several related projects or packages.
Why use it?
It gives a coding agent a quick orientation without making it inspect the whole filesystem. This is useful when starting work in an unfamiliar project or checking how its code is organised.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/soulcodex/agentic/project-map
Any agent
npx skills add soulcodex/agentic --skill project-map
Clone the repo
git clone --depth 1 https://github.com/soulcodex/agentic

Made for: Claude Code, Codex.

Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 898 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00049 $0.00898
Opus 5 $0.00024 $0.00449
Sonnet 5 $0.00010 $0.00180
Haiku 4.5 $0.00005 $0.00090

Measured 2d ago against content hash 0748ce817c89, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

project-map scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/development/project-map/SKILL.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Project Map Skill

Generate .agentic/project-map.md to orient any agent to the codebase.

Step 0 — Check Existing Map

Check if .agentic/project-map.md already exists:

  • If present: Ask the user if they want to refresh it or keep existing.
    • Default: keep existing unless --refresh flag is passed or user explicitly requests refresh.
  • If absent: Continue to Step 1.

Step 1 — Auto-discover Codebase Structure

Detect the language and architecture by inspecting the filesystem:

  1. Detect language(s) — inspect for manifest files:

    • go.mod → Go
    • package.json / tsconfig.json → TypeScript/JavaScript
    • pyproject.toml → Python
    • composer.json → PHP
  2. Detect architecture markers — inspect directory names:

    • Hexagonal: domain/, application/, infrastructure/, ports/
    • CQRS: command/, query/
    • DDD: aggregate roots, value objects, domain events
  3. Read build/test/lint commands — inspect:

    • Makefile
    • justfile
    • package.json scripts
    • Taskfile.yml
  4. Identify entry points — look for:

    • main.go
    • cmd/
    • src/index.ts
    • app/main.py
    • artisan
    • bin/
  5. For monorepos — detect tier structure from .agentic/config.yaml if present.

Step 2 — Map the Layer Structure

  1. Identify architectural layers:

    • Domain: entities, value objects, domain events, repository interfaces
    • Application: use cases, command/query handlers
    • Infrastructure: repository implementations, HTTP clients, messaging adapters
    • Ports/Adapters: HTTP controllers, CLI commands, message consumers
  2. List key modules/packages (top 5-10) with one-line purpose each.

  3. Note non-obvious conventions:

    • Naming rules (e.g., *_test.go suffix, service.go patterns)
    • File organization (co-location rules, split by concern vs. feature)
    • Error handling patterns
    • Token/entity naming conventions

Step 3 — Identify Complexity Hotspots

  1. Largest files by line count — use wc -l or equivalent on key source files.

Read the full file on GitHub · 107 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 107 lines · 49 tokens per session scan A 0748ce817c89

Subscribe to this mod's changes

project-map is a skill published in the GitHub repository soulcodex/agentic (10 stars, last pushed 2d ago), licensed MIT. It adds 49 tokens to every session and 898 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

help

Use when asked what the capstone plugin can do - prints the usage block.

GentBajko/capstone · 18 tokens

explain-codebase

Drop into any repo and generate a structured architecture overview. Maps the codebase, identifies entry points, frameworks, and dependencies — then produces a "start here" guide for new contributors.

suryast/free-ai-agent-skills · 42 tokens

core

Internal to the capstone suite - carries the shared rules (references/) and scripts every capstone subcommand reads; it exists so npx-skills installs ship them alongside the command skills. Not meant to be invoked directly; when invoked anyway, run references/../scripts/help.sh and output its stdout verbatim.

GentBajko/capstone · 65 tokens

feature

Use when the user wants one feature taken from idea to working code - "add a feature", "build X end to end", "take X from idea to shipped" - runs the feature chain groom -> plan -> implement consecutively, detecting the feature's stage and resuming at the first incomplete one. For the whole-product greenfield pipeline…

GentBajko/capstone · 82 tokens

groom

Use when starting work on a feature or change for a project that already has capstone docs - "new feature", "add a feature", "implement X", "build X", "design a feature", "spec it out", "flesh out", "refine this idea", "let's work on X" - a doc-grounded one-question-at-a-time interview producing a traceable feature…

GentBajko/capstone · 135 tokens

map

Use when asked to build, refresh, update, or check a codebase's architecture reference docs - "map the codebase", "document this repo", "are the docs current", "bring the docs in line with the code" - writes a docs/capstone/ index plus topic chapters, the logic/ business-logic map and the uiux/ surface map, then on…

GentBajko/capstone · 141 tokens