/ai-tools:code-mapfrom ai-tools
Generates an AI-optimized YAML code map (.codemap.yaml) capturing project structure, API surface, services, models, and conventions for quick AI codebase navigation.
Ships in ai-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Output: .codemap.yaml at repository root
Format: YAML — optimized for AI token efficiency
Version: 1.0
� Philosophy: Produce a compact, accurate, machine-readable map of the entire codebase that lets an AI agent skip exploratory scanning and jump straight to productive work.
✅ Initial onboarding — no .codemap.yaml exists yet
✅ After major structural changes — new projects, controllers, services added/removed
✅ Periodic refresh — the extension flagged the map as stale
❌ Minor code changes within existing files (the map is structural, not line-level)
Follow these steps in order. Do not skip steps. Do not guess — verify by reading actual files.
*.slnx or *.sln) at the repo rootProgram.cs) for each non-test projectFor every project directory (not test projects), scan the top-level subdirectories and assign a one-line purpose. Focus on directories containing source code:
Controllers/ — what kind of controllers?Services/ — business logic for what domain?Repositories/ — data access for what entities?Models/, DTOs/, Requests/, Responses/ — what data shapes?Views/ — what UI areas?wwwroot/js/, wwwroot/css/ — frontend assetsAlso map significant nested directories (e.g., Views/NewContracts/_ProductPartials/).
For each API controller (files in Controllers/ with [ApiController] attribute):
[Route("...")])"GET /route → description"For each MVC controller (controllers returning views, not API):
For each service class (in Services/ directories):
For important models only (not every DTO — focus on core domain objects):
UserSessionData, WizardState, BundleSelections)ContractModel, AccountInfoDto, OrderSummaryDto)Record: name, path, type (entity/dto/viewmodel/session/config), key properties.
Identify the most important relationships by reading DI registrations (Program.cs) and constructor dependencies:
Use the format: from → to (type: manages|calls|depends|implements) + note
Scan Program.cs and middleware configuration to identify:
Review 3–5 files of each type (controllers, services, repositories) and note patterns:
Combine all collected data into the YAML schema below and write to .codemap.yaml at the repository root. If the file already exists, overwrite it completely.
# .codemap.yaml — AI-optimized codebase intelligence map
# Generated by the code-map skill. Do not edit manually.
# Regenerate by invoking the code-map skill.
version: 1
generated: "YYYY-MM-DDTHH:MM:SSZ"
overview:
name: "repository-name"
purpose: "one-line description of what this codebase does"
tech:
- "framework/language"
architecture: "one-line data flow description"
projects:
ProjectName:
path: "relative/path/"
type: web-mvc | web-api | test | library
framework: "net10.0"
purpose: "what this project does"
entry: "Program.cs"
directories:
"relative/path/to/dir/": "one-line purpose"
endpoints:
- controller: ClassName
path: "relative/file/path.cs"
base: "/api/route"
methods:
- "VERB /route → brief description"
mvc_controllers:
- controller: ClassName
path: "relative/file/path.cs"
actions:
- "ActionName → description (view: _ViewName.cshtml)"
services:
- name: ClassName
path: "relative/file/path.cs"
purpose: "what this service does"
depends: ["IDependency1", "IDependency2"]
models:
- name: ClassName
path: "relative/file/path.cs"
type: entity | dto | viewmodel | session | config
key_props: ["Property1", "Property2"]
relationships:
- from: "SourceClass"
to: "TargetClass"
type: manages | calls | depends | implements
note: "brief explanation"
cross_cutting:
auth: "description of auth strategy"
cache: "description of caching strategy"
session: "description of session management"
error: "description of error handling"
logging: "description of logging approach"
background: "description of background tasks"
conventions:
- "convention description"
Before writing the file, verify:
projects:Aim for 5,000–10,000 tokens in the output file. To stay within budget:
"GET / → description")directories: and services: sectionsnode_modules/, wwwroot/lib/)END OF SKILL
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
code-map, codebase-navigation, project-structure, ai-optimized
npx claudepluginhub sean-m-cooper/ai_tools --plugin ai-tools12 skills in this plugin
/audit-writing-architectureAudit technical and professional nonfiction with SOLID, DRY, YAGNI, paragraph contracts, and refactoring practices. Use when asked to review an article, essay, white paper, newsletter, documentation set, or similar nonfiction for structural cohesion, coupling, reader context, replaceable support, repetition, unnecessary material, or readiness to publish. Produce a read-only, prioritized architectural diagnosis unless the user explicitly asks for revision./author-style-guideAnalyze an author's real writing samples, interview them about observed patterns and intended positioning, and create or update a personalized style guide for articles, newsletters, social posts, email, product writing, or thought leadership. Use when an author wants to define their voice, extract actionable core rules, distinguish audience or channel registers, document brand and product positioning, calibrate AI editing behavior, create author-style-guide.md, or give downstream writing agents a shared source of truth./cold-start-auditAudit a standalone artifact for context its intended reader, operator, or AI collaborator needs but was never given. Use when asked whether an article, essay, specification, architecture decision, proposal, user story, runbook, prompt, instruction file, or similar artifact can stand on its own; when asked to run a cold-start review; or when looking for undefined terms, ambiguous referents, undeclared prerequisites, missing logical steps, required information hidden behind links, or irrelevant background. Produce a read-only, prioritized context-dependency diagnosis unless the user explicitly requests revision./content-voice-auditRun a read-only heuristic audit of Markdown blog posts, newsletters, essays, and thought-leadership content for formulaic cadence, weak evidence, generic significance, canned phrasing, repeated AI-pattern signals, and thin structure. Use when asked to run a content or slop audit, identify low-scoring pieces, rank editorial risks, or generate a content-quality report for one or more content directories./content-voice-revisionRevise selected blog posts, newsletters, and thought-leadership content using findings from a content audit. Use when asked to fix named essays, improve the lowest-scoring content, reduce AI-sounding cadence, add evidence or receipts, or strengthen an argument without changing the author's voice. Work conversationally with the author to solicit missing evidence, nuance, and lived experience before substantive rewrites./feature-writerGuide a product owner through defining a feature — UI, backend, or full-stack. Conducts a structured interview that branches based on feature type, then produces a structured Feature document. Use when a PO wants to define a new feature, plan a screen flow, document an API, or describe a backend capability. Examples: "let's define a new feature", "I want to plan a UI flow", "help me define an API feature", "plan a backend service", "/feature-writer".Other plugins' skills for the same job