map-codebase
Skill0 starsChanged 8 months agoMITView on GitHub
Inspect an existing project and produce a structured codebase map covering stack, architecture, conventions, integrations, testing, and risks.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- buildomator/buildomatortheir own version, first seen Sep 20, 2026
- danielvm-git/bigpowerstheir own version, first seen Sep 1, 2026
- AliOsm/skillstheir own version, first seen Aug 19, 2026
- julienlegoux/skillstheir own version, first seen Aug 8, 2026
- duthaho/claudekittheir own version, first seen Jul 22, 2026
- gabrielferreira/claude-code-frameworktheir own version, first seen May 29, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- danielvm-git/bigpowers★ 252same name
- duthaho/claudekit★ 97same name
- buildomator/buildomator★ 90same name
- YehudaFrankel/clankbrain★ 16same name
- julienlegoux/skills★ 4same name
- AliOsm/skills★ 1same name
- gabrielferreira/claude-code-framework★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- codex/AGENTS.mdAGENTS.md
- claude/CLAUDE.mdCLAUDE.md
- backend-refactorSkill
- buildSkill
- discussSkill
- docSkill
- frontend-designSkill
- frontend-refactorSkill
- low-altitude-interviewerSkill
- pdfSkill
- repo-bootstrapSkill
- skill-maintenanceSkill
- tdd-executionSkill
- architecture-guardrailsSkill
- closed-loop-testingSkill
- harness-marathonSkill
- task-harnessSkill
- api-designSkill
- architecture-designSkill
- brainstormSkill
- codex-record-retrospectiveSkill
- database-designSkill
- integration-designSkill
- migration-designSkill
- observability-designSkill
- planSkill
- query-optimizationSkill
- scalability-checkSkill
- service-boundary-reviewSkill
- api-change-checkSkill
- browseSkill
- bugfix-verificationSkill
- debugSkill
- incident-debugSkill
- performance-investigationSkill
- qaSkill
- reviewSkill
- security-reviewSkill
- verifySkill
- release-checkSkill
- shipSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. 0 are common, 15 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
15
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when entering a brownfield project, inheriting an unfamiliar repository, or preparing to plan work against an existing …
- Very specific: line 24
When ContextWeaver is available in the environment, use it as the primary evidence accelerator, not as a replacement for architectural …
- Distinctive: line 27
if available, verify index scope before scanning deeply
- Very specific: line 28
use search --format json and prompt-context --format json to collect candidate files and symbols
- Very specific: line 29
prefer official distributed scripts from contextweaver install-skills when stable structured output is needed
- Very specific: line 30
follow the decision rules in ~/.agents/skills/using-contextweaver/SKILL.md to choose read vs grep vs semantic retrieval
- Distinctive: line 32
if unavailable, continue with normal repository-first scanning
- Distinctive: line 44
If the baseline scan shows this is a multi-module or multi-app repository, do not assume the user wants a full-repository map unless they …
- Distinctive: line 48
if the user already names the target module, service, app, or flow, continue with that boundary
- Distinctive: line 49
if the repository is clearly multi-module and the target is still ambiguous, pause and ask one short question to confirm which module or …
- Distinctive: line 50
only do a broad full-repository map without confirmation when the user explicitly asks for the whole repository or when the module boundary …
- Distinctive: line 58
Use a layered entry strategy:
- Distinctive: line 69
Test layout and commands
- Distinctive: line 76
When the user already points to a module or objective, do not treat that as permission to skip the baseline layer.
- Distinctive: line 77
When the repository is multi-module, keep the baseline layer narrow and only wide enough to identify the module boundary before deepening.
- Distinctive: line 78
When the baseline is already clear, do not keep broadening the scan beyond the target layer.
- Distinctive: line 84
prefer short concrete notes over long prose
- Distinctive: line 85
if something is unknown, say it is unknown
- Distinctive: line 87
when docs or planning files disagree with the repository, record that drift explicitly instead of smoothing it over
- Very specific: line 91
If harness/state.md exists, update it with:
- Very specific: line 97
If the mapping reveals durable repository-level drift, structural mismatch, or workflow implications worth preserving, append a concise …
- Very specific: line 110
default to minimal output (summary.md + concerns.md)
- Very specific: line 111
use full output only when repository-level onboarding or handoff needs a full map pack
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Map Codebase
Use this skill when entering a brownfield project, inheriting an unfamiliar repository, or preparing to plan work against an existing codebase.
Read First
- root
AGENTS.md - nearby docs such as
README*,docs/, architecture notes, and config files docs/reference/conventions.mdif it existsharness/state.mdif it existsharness/history.mdif it existsreferences/layered-entry.mdreferences/output-shape.mdreferences/runtime-footprint.mdwhen important evidence may live outside the repository~/.agents/skills/using-contextweaver/SKILL.mdwhenContextWeaveris available
Context Retrieval
When ContextWeaver is available in the environment, use it as the primary evidence accelerator, not as a replacement for architectural judgment.
- first check whether
contextweaver(orcw) is available - if available, verify index scope before scanning deeply
- use
search --format jsonandprompt-context --format jsonto collect candidate files and symbols - prefer official distributed scripts from
contextweaver install-skillswhen stable structured output is needed - follow the decision rules in
~/.agents/skills/using-contextweaver/SKILL.mdto choosereadvsgrepvs semantic retrieval - then confirm critical claims by opening repository files directly
- if unavailable, continue with normal repository-first scanning
Goals
- build a trustworthy map of how the project works
- record evidence, not guesses
- identify stack, architecture, boundaries, and risky areas
- prepare material that later skills can use without re-exploring everything
- surface mismatches between documented structure and actual repository structure
Multi-Module Guard
If the baseline scan shows this is a multi-module or multi-app repository, do not assume the user wants a full-repository map unless they clearly asked for that.
Use this rule:
- if the user already names the target module, service, app, or flow, continue with that boundary
- if the repository is clearly multi-module and the target is still ambiguous, pause and ask one short question to confirm which module or scope they want mapped first
- only do a broad full-repository map without confirmation when the user explicitly asks for the whole repository or when the module boundary truly cannot be separated safely
The confirmation should be short and concrete, for example:
这个仓库看起来是多模块的,你这次想先聚焦哪个模块?
Investigation Order
Use a layered entry strategy:
- Baseline layer
- Design layer
- Target layer
Within those layers, investigate in this order:
- Entry docs and top-level manifests
- Build and runtime config
- Source tree layout
- Test layout and commands
- Compare docs, scripts, and CI entrypoints against the real repository layout
- External integrations
- Host-runtime footprint outside the repo when relevant
- User-targeted deepening only after the baseline and nearby design are stable
- Hotspots, risks, and unclear areas
When the user already points to a module or objective, do not treat that as permission to skip the baseline layer. When the repository is multi-module, keep the baseline layer narrow and only wide enough to identify the module boundary before deepening. When the baseline is already clear, do not keep broadening the scan beyond the target layer.
Evidence Rules
- cite actual files, directories, commands, and symbols
- distinguish confirmed facts from inference
- prefer short concrete notes over long prose
- if something is unknown, say it is unknown
- distinguish repository evidence from host-runtime evidence such as local config, logs, launch agents, or running processes
- when docs or planning files disagree with the repository, record that drift explicitly instead of smoothing it over
State Updates
If harness/state.md exists, update it with:
- status: mapped
- current focus: codebase map completed
- decision entry summarizing the repository scan
If the mapping reveals durable repository-level drift, structural mismatch, or workflow implications worth preserving, append a concise entry to harness/history.md.
Output
Tell the user:
- what was mapped
- the main architectural shape
- the top concerns
- the best next step, usually
brainstormorplan
Choose output depth using references/output-shape.md:
- default to
minimaloutput (summary.md+concerns.md) - use
fulloutput only when repository-level onboarding or handoff needs a full map pack
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

