plugins/codebase-mapper/skills/codebase-mapper/SKILL.md
Knowledge base for the codebase-mapper plugin. Provides writing guidelines, tone rules, and diagram conventions for generating human-readable project guides. Referenced by all codebase-mapper agents during document generation. TRIGGER WHEN: referenced by codebase-mapper pipeline agents (codebase-explorer, overview-writer, tech-writer, flow-writer, onboarding-writer, ops-writer, config-writer, guide-reviewer) during document generation. DO NOT TRIGGER WHEN: outside the /map-codebase pipeline (general documentation work should use docs:readme-craft or codebase-mapper:docs-create).
npx skillsauth add acaprino/anvil-toolset codebase-mapperInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate a human-readable project guide for unfamiliar codebases. Output is narrative, didactic material - not technical dumps or AI-oriented analysis. Target audience: a smart colleague on their first day.
All output goes to .codebase-map/ in the project root:
.codebase-map/
INDEX.md # Entry point with navigable summary
00-executive-summary.md # Plain-language summary for anyone (non-technical)
01-overview.md # What is this project, who is it for
02-features.md # Functional capabilities
03-tech-stack.md # Technologies and dependencies
04-architecture.md # How code is organized, layers, components
05-workflows.md # Main user/system flows with diagrams
06-data-model.md # Data structures, entities, relationships
07-getting-started.md # Where to start working, key files, dev setup
08-open-questions.md # Gaps, unknowns, things to ask the team
09-project-anatomy.md # Config files, env vars, scripts, directory tree
10-configuration-guide.md # Configuration recipes, operations, troubleshooting
11-glossary.md # Domain and technical glossary (plain definitions)
_internal/
context-brief.md # Phase 1 exploration output (internal reference)
interconnect.md # Phase 1b structured map: contracts, invariants, domain rules (optional)
Single codebase-explorer agent reads the project and writes _internal/context-brief.md, which leads with a ## Project Profile (type, audience, register) and a ## Why / Context dossier.
The map-codebase command surfaces the inferred Project Profile and lets the user confirm or adjust it before the writers run. The confirmed profile drives register and depth across all documents.
Single senior-review:semantic-interconnect-mapper agent reads the context brief and writes _internal/interconnect.md (contracts, invariants, domain rules, integration hot-spots). Optional: if it fails, the pipeline continues in degraded mode. The tech-writer, flow-writer, ops-writer, and guide-reviewer cite this map instead of paraphrasing code.
Six parallel writer agents, each reading context-brief.md:
overview-writer - 00-executive-summary.md (plain-language), 01-overview.md, 02-features.md (mindmap)tech-writer - 03-tech-stack.md, 04-architecture.md (component diagram)flow-writer - 05-workflows.md, 06-data-model.md (flowcharts, sequence, ER)onboarding-writer - 07-getting-started.md, 08-open-questions.mdops-writer - 09-project-anatomy.md (config files, env vars, scripts, directory tree)config-writer - 10-configuration-guide.md (config recipes, operations, troubleshooting)Single guide-reviewer agent reads all documents, adds cross-references, fixes consistency, checks register consistency against the Project Profile, writes 11-glossary.md, and produces INDEX.md with per-audience reading paths.
Read on demand, not upfront:
references/writing-guidelines.md - voice, tone, structure, audience as a parameterreferences/audience-adaptation.md - Project Profile schema, register matrix, archetypes, the "for everyone" rulereferences/diagram-patterns.md - Mermaid templates for each documentBeyond the pipeline, the plugin provides standalone documentation agents:
documentation-engineer - Bottom-up technical documentation from code analysis (API docs, architecture, tutorials, refactoring)doc-humanizer - Rewrites existing documentation to follow the writing guidelinesBoth agents use the same writing guidelines and diagram patterns as the pipeline writers.
development
Unified web frontend knowledge base covering CSS architecture, UX psychology, UI components, distinctive aesthetics, and interface design generation. TRIGGER WHEN: working on web styling, design systems, component decisions, responsive strategy, distinctive frontend aesthetics, or exploring multiple interface designs. DO NOT TRIGGER WHEN: the task is purely backend or unrelated to web frontend.
development
Coordinate parallel code reviews across multiple quality dimensions with finding deduplication, severity calibration, and consolidated reporting. Use this skill when organizing multi-reviewer code reviews, calibrating finding severity, or consolidating review results.
tools
Progressive Web App knowledge base for 2025-2026: Web App Manifest, Service Workers (Workbox 7, Serwist), Web Push (VAPID, RFC 8030/8291/8292, Declarative Push for Safari 18.4+), install flows (beforeinstallprompt, Window Controls Overlay), OPFS storage, Project Fugu, Core Web Vitals (INP < 200ms), security (HTTPS, CSP, COOP/COEP), and distribution (Bubblewrap, PWA Builder MSIX, Capacitor). TRIGGER WHEN: building, auditing, or debugging PWAs, including manifest, service worker, Web Push, install flow, OPFS, Background Sync, Wake Lock, vite-plugin-pwa, Next.js Serwist, @angular/pwa, @vite-pwa/nuxt, Bubblewrap, TWA, PWA Builder, or Capacitor wrapping. DO NOT TRIGGER WHEN: the task is generic frontend styling (use frontend), React performance (use react-development:review-react), cross-platform security unrelated to PWA (use platform-engineering), Tauri or Electron wrappers (use tauri-development), or GA4 / analytics (use digital-marketing).
development
Knowledge base for pure-architecture decisions on when to unify duplicated logic into a shared abstraction versus leave it duplicated. Covers the canonical theory (Rule of Three, DRY/WET/AHA, Wrong Abstraction, Locality of Behaviour, Bounded Contexts, Tidy First options framing, CUPID vs SOLID), 12 essential-duplication patterns that justify unification, 12 wrong-abstraction patterns that justify inlining or decomposition, an operational decision frame, and a verified reading list. TRIGGER WHEN: the user is making an architectural decision about whether to centralize, extract, or remove a layer; reviewing an abstraction for premature generality; auditing scattered cross-cutting concerns; spawned by the abstraction-architect agent during /abstraction-architect:audit; the user asks "should I extract this into a service" / "is this DRY enough" / "is this wrong abstraction". DO NOT TRIGGER WHEN: the task is code formatting and readability cleanup (use clean-code:clean-code), Python-specific refactoring with metrics (use python-development:python-refactor), generic dead-code removal (use senior-review:cleanup-dead-code), security review (use senior-review:security-auditor), or pure pattern-consistency review without an architecture lens (use senior-review:code-auditor).