Agent skill · Design & Presentation

codemap

Generate navigational codebase maps with architecture diagrams. Use when mapping a codebase, creating architecture docs, visualizing project structure, generating infrastructure diagrams, understanding repo layout, or onboarding to a new project.

majiayu000github.com/majiayu000GitHub ↗
claude-coderead-onlyMIT
Install
npx skills add majiayu000/claude-skill-registry --skill codemap-antoniocascais-claude-code-toolkit --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 7 KB
Bundled scripts: none
Allowed tools: -Read-Write(./**)-Glob-Grep-Bash(ast-grep:*)-Bash(terraform
Path: skills/analysis/codemap-antoniocascais-claude-code-toolkit/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Codemap Generator Generate `CODEMAP.md` files that help humans and AI agents navigate codebases. ## Output Separation - **CODEMAP.md** = Auto-generated navigation map (this skill creates/updates) - **ARCHITECTURE.md** = Hand-written design decisions (never touch) ## Workflow ### Phase 1: Project Analysis 1. **Count files** to determine project size: - Use Glob with pattern `**/*` excluding vendored paths - Exclude: `node_modules/`, `vendor/`, `__pycache__/`, `target/`, `.terraform/`, `.*` - Count results to determine depth 2. **Detect project type(s)**: - Check for IaC patterns (Terraform, Ansible, K8s, etc.) - Check for application code (package.json, go.mod, requirements.txt, etc.) - Projects can be mixed (app + infra) 3. **Set depth based on file count**: | Files | Depth | Output | |-------|-------|--------| | <50 | shallow | Single root CODEMAP.md | | 50-500 | medium | Root + key directories | | >500 | deep | Root + 2 levels, skip vendored | ### Phase 2: Existing File Check **STOP. Check for existing CODEMAP.md before proceeding.** Before generating, check if `CODEMAP.md` exists. **If exists**: Use `AskUserQuestion` with options: - Overwrite completely - Merge/update (preserv

What's inside
Steps it walks through
  1. Output Separation
  2. Workflow
  3. Phase 1: Project Analysis
  4. Phase 2: Existing File Check
  5. Phase 3: Content Generation
  6. Phase 4: Output
  7. Detection Patterns
  8. Application Code
  9. Infrastructure as Code
  10. Mermaid Diagram Patterns
  11. Code Architecture (Component Relationships)
  12. Infrastructure Topology
  13. Module Hierarchy (Terraform)
  14. Analysis Techniques
Ships with 1 file
  • metadata.json
Commands it runs
ast-grep --pattern 'import $_ from "$SOURCE"' --lang ts
ast-grep --pattern 'require("$SOURCE")' --lang js
ast-grep --pattern 'from $MODULE import $_' --lang python
ast-grep --pattern 'import $MODULE' --lang python
ast-grep --pattern 'import "$PKG"' --lang go
terraform graph | # convert DOT to mermaid
More from claude-skill-registry
All skills →
About this skill
What does the codemap skill do?

Generate navigational codebase maps with architecture diagrams. Use when mapping a codebase, creating architecture docs, visualizing project structure, generating infrastructure diagrams, understanding repo layout, or onboarding to a new project.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill codemap-antoniocascais-claude-code-toolkit --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going