cartographer
Cartographer
Purpose
To create a living document (docs/CODEBASE_MAP.md) that serves as the architectural "Source of Truth" for the project.
Workflow
Phase 1: Reconnaissance
- Tree Scan: Execute a file listing command (e.g.,
find . -maxdepth 2 -not -path '*/.*') to visualize the high-level structure. - Config Check: Read
package.jsonandtsconfig.jsonto identify the stack.
Phase 2: Iterative Analysis
Exclusion Protocol: You must strictly ignore:
- Folders in
.gitignore(specificallynode_modules/,.next/,dist/,build/). - Lock files (
package-lock.json,yarn.lock). - Public assets (
public/images/).
Loop: For each relevant major directory (e.g., app/, lib/, components/):
- Read the entry point files.
- Apply the Inspection Rubric (
references/inspection-rubric.md). - Store findings in memory.
Phase 3: Synthesis
Create or Overwrite docs/CODEBASE_MAP.md using the strict template in references/map-template.md.
Critical Constraints
- Mermaid Diagrams: You MUST generate a Mermaid graph for the high-level architecture.
- No Fluff: Do not summarize code line-by-line. Focus on intent.
- Linkage: Every mention of a file in the map must be a clickable relative link.
More from henryxv/study-platform
web-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
6vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
6vercel-deploy
Deploy applications and websites to Vercel. Use this skill when the user requests deployment actions such as "Deploy my app", "Deploy this to production", "Create a preview deployment", "Deploy and give me the link", or "Push this live". No authentication required - returns preview URL and claimable deployment link.
5