cartographer
Meta-skill plugin that generates /atlas skills for any repository, providing AI-optimized codebase navigation plus spec-driven development workflows. Use when the user needs to understand a codebase structure, generate navigation aids, create implementation specs, or review code against documented patterns.
What this skill does
# Cartographer
Generate AI-optimized codebase navigation (atlas skills) plus spec-driven development workflows.
## Quick Start
```bash
# Generate atlas for current codebase
/cartographer:chart
# Use atlas for navigation (auto-invoked)
/atlas
# Spec-driven development
/navigator:plan <task> # Create implementation spec
/navigator:build <spec> # Execute spec with patterns
/navigator:review <spec> # Review against patterns
```
## Core Concepts
### Atlas
An atlas is a generated skill (`.claude/skills/atlas/`) that provides:
- **Domain mapping**: Where different features/concerns live
- **Pattern documentation**: How code is structured (controllers, services, etc.)
- **Anti-patterns**: Codebase-specific mistakes to avoid
- **File conventions**: Naming and location patterns
### Spec-Driven Development
Navigator commands use the atlas to:
1. **Plan**: Generate specs with relevant pattern context
2. **Build**: Implement following documented conventions
3. **Review**: Validate against patterns and anti-patterns
## Commands
### Cartographer Commands
| Command | Model | Description |
|---------|-------|-------------|
| `/cartographer:chart` | sonnet | Generate complete atlas |
| `/cartographer:rechart` | sonnet | Incrementally update atlas |
| `/cartographer:health` | sonnet | Comprehensive atlas health check (drift, structure, quality) |
| `/cartographer:explore <domain>` | sonnet | Deep-dive into domain |
| `/cartographer:where <query>` | haiku | Quick path lookup |
| `/cartographer:capture` | haiku | Capture knowledge to atlas |
| `/cartographer:orient` | haiku | Set up CLAUDE.md awareness |
| `/cartographer:embed` | sonnet | Export commands for plugin-free use |
| `/cartographer:help` | haiku | Display usage guide |
### Navigator Commands
| Command | Model | Description |
|---------|-------|-------------|
| `/navigator:plan <task>` | sonnet | Create implementation spec with atlas context |
| `/navigator:build <spec>` | sonnet | Execute spec with pattern guidance |
| `/navigator:review <spec>` | sonnet | Review implementation against spec/patterns |
## Workflows
### New Codebase Setup
```
/cartographer:chart # Generate atlas (interactive)
/cartographer:orient # Add atlas awareness to CLAUDE.md
```
### Feature Development
```
/navigator:plan add user profiles # Generate spec
/navigator:build specs/user-profiles.md # Implement
/navigator:review specs/user-profiles.md # Review
```
### Atlas Maintenance
```
/cartographer:health # Check drift, structure, and quality
/cartographer:rechart # Update stale areas
/cartographer:capture --pattern # Add discovered patterns
```
## Agents
The plugin uses specialized agents for complex tasks:
### Analysis Agents
| Agent | Model | Purpose |
|-------|-------|---------|
| surveyor | sonnet | Explores codebase to detect project type, domains, and patterns |
| auditor | sonnet | Validates atlas accuracy against actual codebase state |
| import-analyzer | sonnet | Analyzes import graph for layer boundary detection |
### Review Agents
| Agent | Model | Purpose |
|-------|-------|---------|
| pattern-enforcer | sonnet | Validates code against documented patterns |
| architecture-auditor | sonnet | Validates layer boundaries and import rules |
| anti-pattern-detector | sonnet | Scans for codebase-specific anti-patterns |
| convention-checker | haiku | Validates file naming and locations |
| atlas-validator | haiku | Validates atlas document structure |
## Files
```
cartographer/
├── SKILL.md # This file
├── .claude-plugin/
│ └── plugin.json # Plugin metadata
├── commands/
│ ├── cartographer/ # Atlas management commands
│ └── navigator/ # Spec-driven workflow commands
├── agents/
│ ├── surveyor.md # Codebase analysis
│ ├── auditor.md # Atlas validation
│ ├── import-analyzer.md # Import graph analysis
│ └── review/ # Code review agents
├── assets/
│ ├── atlas-templates/ # Generated atlas templates
│ └── embed-templates/ # Standalone command templates
└── references/
└── atlas-format.md # Atlas schema documentation
```
## Plugin-Free Operation
Export commands for use without the plugin installed:
```bash
/cartographer:embed --output .claude/commands/
```
This creates standalone command files that maintain full fidelity with plugin commands.
## Troubleshooting
| Issue | Solution |
|-------|----------|
| Atlas not found | `/cartographer:chart` |
| Atlas outdated | `/cartographer:health` then `/cartographer:rechart` |
| Pattern violations | Check atlas anti-patterns, update if needed |
| Missing domain | `/cartographer:explore <path>` to enrich |
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.