From cc-codemaps
Regenerate token-lean architecture maps in codemaps/. Auto-detects project language, scans codebase structure, writes maps that load into context at session start.
npx claudepluginhub strml/cc-codemaps --plugin cc-codemapsThis skill uses the workspace's default tool permissions.
Regenerate the token-lean architecture maps in `codemaps/` from the current state of the codebase. These maps are loaded at session start and directly affect correctness of future edits.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Executes ctx7 CLI to fetch up-to-date library documentation, manage AI coding skills (install/search/generate/remove/suggest), and configure Context7 MCP. Useful for current API refs, skill handling, or agent setup.
Generates production-ready Python code for Dataverse SDK with error handling, singleton clients, retry logic, OData optimizations, logging, and type hints.
Share bugs, ideas, or general feedback.
Regenerate the token-lean architecture maps in codemaps/ from the current state of the codebase. These maps are loaded at session start and directly affect correctness of future edits.
Read CLAUDE.md and README.md to identify:
Fallback: If docs are missing or don't mention the language, scan for build system markers:
| Marker file | Language |
|---|---|
package.json, tsconfig.json | TypeScript/JavaScript |
Cargo.toml | Rust |
go.mod | Go |
platformio.ini, CMakeLists.txt, Makefile | C/C++ |
pyproject.toml, setup.py, requirements.txt | Python |
composer.json, wp-content/ | PHP |
pom.xml, build.gradle, build.gradle.kts | Java/Kotlin |
Gemfile, config.ru | Ruby |
Package.swift, *.xcodeproj | Swift |
*.sln, *.csproj | C# / .NET |
init.lua, *.rockspec | Lua |
Then load the matching language reference(s) from references/ for language-specific guidance on what to capture and which tools to use. Available references: typescript.md, cpp.md, python.md, rust.md, golang.md, php.md, java.md, ruby.md, swift.md, csharp.md, lua.md. Load only the ones that apply.
For multi-language projects (e.g., a C++ firmware repo with a Rust TUI tool), load all relevant references. Create one architecture.md for the overall system, with separate per-subsystem files named by component (e.g., firmware.md, viz.md) rather than generic names.
Based on the project structure, choose which files to create in codemaps/. Common patterns:
| File | When |
|---|---|
architecture.md | Always. System overview, module graph, build envs, data flow |
backend.md or firmware.md | Per-module breakdown with key functions/classes |
frontend.md | Only for projects with a frontend (React, Vue, etc.) |
data.md | Core types, schemas, constants, config objects |
integrations.md | External APIs, third-party SDKs |
workers.md | Background jobs, queues, cron tasks |
Don't create files that don't apply. A C++ firmware project has no frontend.md. A static site has no workers.md.
Pruning: If codemaps/ already exists, check for files that no longer match the project structure (e.g., a frontend.md for a project that dropped its frontend). Delete stale files to prevent future sessions from loading outdated context.
Use the techniques from the loaded language reference(s):
tree)Don't read every file line-by-line. Use symbol overviews, function signatures, and structural analysis. Limit scanning to ~20 key files per codemap — if the project has more modules, focus on top-level ones and note uncovered areas.
Tool fallbacks: Language references suggest specialized tools (ts-morph, madge, cargo modules). If these aren't installed, fall back to standard tools (tree, grep, file reads). Never attempt to install tools or run commands with side effects (e.g., npx madge --image writes to the repo — skip it).
Every codemap file starts with:
> Generated: YYYY-MM-DD | Token-lean format for LLM context
Rules:
After writing, diff each file against the previous version. Report what changed: new sections, removed sections, updated values.
If any file is being created for the first time or deleted, note it. For updates, show the diff summary. Always proceed — the user can review the git diff and revert if needed.
After updating codemaps, suggest (do not automatically apply) documentation changes:
CLAUDE.md duplicates architecture details that now live in codemaps, list the sections that could be replaced with references (e.g., "The Module Dependency Graph in CLAUDE.md duplicates codemaps/architecture.md — consider replacing with a link").README.md doesn't mention codemaps, suggest adding a line.Do NOT modify CLAUDE.md or README.md without explicit user approval. These files are hand-curated and authoritative. Codemaps are generated derivatives. Only list suggestions and let the user decide.