update-codemap
Skill71 starsChanged 7 months agoMITView on GitHub
Update docs/technical/CODEMAP.md to accurately reflect the current state of the codebase. A stale CODEMAP misleads agents more than having none. Run this skill after any significant feature merge, refactor, or directory restructure. If $ARGUMENTS is provided, update only the section(s) relevant to the named module or area. If $ARGUMENTS is empty, perform a full CODEMAP refresh. Read docs/technical/CODEMAP.md to understand what is currently documented. Run the following to get the current structure: Also read docs/technical/API.md and docs/technical/DATABASE.md if they exist…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- AcKeskin/contexturetheir own version, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- AcKeskin/contexture★ 2same 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 repository117 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-healthSkill
- agent-styleSkill
- angular-best-practicesSkill
- annotateSkill
- api-designSkill
- architecture-decision-recordsSkill
- aws-serverlessSkill
- backend-architectSkill
- backend-patternsSkill
- brainstormSkill
- bug-reportSkill
- changelogSkill
- claude-apiSkill
- cloud-architectSkill
- cloud-run-puppeteerSkill
- code-review-checklistSkill
- code-reviewSkill
- code-simplificationSkill
- codex-sddSkill
- commitSkill
- context-engineeringSkill
- database-architectSkill
- db-reviewSkill
- deep-interviewSkill
- design-reviewSkill
- design-systemSkill
- devops-deploySkill
- diagnoseSkill
- django-patternsSkill
- docker-patternsSkill
- dotnet-backend-patternsSkill
- dreamSkill
- drizzle-orm-expertSkill
- estimateSkill
- event-sourcing-architectSkill
- fastapi-proSkill
- fork-joinSkill
- freezeSkill
- frontend-designSkill
- frontend-patternsSkill
- frontend-ui-dark-tsSkill
- gate-checkSkill
- gemini-api-integrationSkill
- gitlab-ci-patternsSkill
- guardSkill
- handoffSkill
- hotfixSkill
- hybrid-cloud-architectSkill
- kubernetes-architectSkill
- laravel-patternsSkill
- launch-checklistSkill
- learnerSkill
- llm-app-patternsSkill
- localizeSkill
- map-systemsSkill
- map-workflowSkill
- markdown-injection-scannerSkill
- microservices-patternsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Update docs/technical/CODEMAP.md to accurately reflect the current state of the codebase.
- Very specific: line 20
If $ARGUMENTS is provided, update only the section(s) relevant to the named module or area.
- Very specific: line 22
If $ARGUMENTS is empty, perform a full CODEMAP refresh.
- Very specific: line 26
Read docs/technical/CODEMAP.md to understand what is currently documented.
- Distinctive: line 30
Run the following to get the current structure:
- Distinctive: line 56
Remove rows for modules/files that no longer exist
- Distinctive: line 57
Add rows for new modules/files
- Distinctive: line 58
Keep descriptions concise — one sentence max
- Very specific: line 59
If a section has no entries yet, keep the *(not yet populated)* placeholder row
- Distinctive: line 60
Do not over-document — only include modules that other agents would need to find
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Update docs/technical/CODEMAP.md to accurately reflect the current state of the codebase.
A stale CODEMAP misleads agents more than having none. Run this skill after any significant feature merge, refactor, or directory restructure.
Steps
1. Determine scope
If $ARGUMENTS is provided, update only the section(s) relevant to the named module or area.
If $ARGUMENTS is empty, perform a full CODEMAP refresh.
2. Read current CODEMAP
Read docs/technical/CODEMAP.md to understand what is currently documented.
3. Scan the codebase
Run the following to get the current structure:
# Top-level src/ structure
find src/ -type f -name "*.ts" -o -name "*.tsx" -o -name "*.js" -o -name "*.jsx" -o -name "*.py" -o -name "*.go" 2>/dev/null | sort | head -100
# API routes / handlers
grep -r "router\.\|app\.\|@Get\|@Post\|@Put\|@Delete\|@Patch" src/ --include="*.ts" --include="*.js" --include="*.py" -l 2>/dev/null
# Exported utilities
grep -r "^export function\|^export const\|^def \|^func " src/ --include="*.ts" --include="*.js" --include="*.py" --include="*.go" -l 2>/dev/null | head -30Also read docs/technical/API.md and docs/technical/DATABASE.md if they exist — they contain authoritative specs for the API and schema sections.
4. Update CODEMAP sections
For each section in CODEMAP.md, update the table rows to reflect what actually exists:
- Application Modules: One row per top-level module/feature directory in
src/ - API Endpoints: One row per route group (not every individual endpoint — use route prefixes)
- Shared Utilities: One row per utility file or helper module
- Data Models: One row per major entity/table
- External Integrations: One row per third-party service
Rules:
- Remove rows for modules/files that no longer exist
- Add rows for new modules/files
- Keep descriptions concise — one sentence max
- If a section has no entries yet, keep the
*(not yet populated)*placeholder row - Do not over-document — only include modules that other agents would need to find
5. Update Revision History
Append a row to the Revision History table:
| [today's date] | @lead-programmer (or @technical-director) | [brief summary: "added X module, removed Y, updated API section"] |6. Confirm
Print:
CODEMAP updated. [N] modules documented across [M] sections.
Stale entries removed: [list or "none"]
New entries added: [list or "none"]Staleness indicators
CODEMAP should be re-run when:
- A new feature directory is added to
src/ - An existing module is renamed, moved, or deleted
- New API route groups are added
- New third-party integrations are wired in
- An agent says "I couldn't find X" when X should exist
Tip: After running
/orchestrateon a large feature, run/update-codemapas the final step before closing the feature branch.
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.

