Codebase Index
Automatically generate relationship and dependency maps for any component-based codebase (React, Vue, Svelte, Astro, Next.js, Angular, Solid). Auto-detects framework. Supports TOON format for 30-60% token savings. Use when indexing codebases, mapping component relationships, documenting dependencies, or understanding unfamiliar projects. Generates JSON/TOON files mapping component usage, imports, npm dependencies, utilities, CSS, and data queries.
Install
/plugin marketplace add cris-achiardi/claude-skillsThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add cris-achiardi/claude-skills --skill codebase-indexgit clone --depth 1 https://github.com/cris-achiardi/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/.claude/skills/codebase-index ~/.claude/skills/codebase-indexPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Codebase Index Generate comprehensive, framework-agnostic relationship and dependency maps for component-based codebases with optional TOON format for token-efficient AI consumption. ## What This Skill Does Scans any component-based codebase to automatically generate relationship maps: - **Component relationships**: Import graph (usedBy/uses) - **NPM dependencies**: Package usage tracking - **Utility functions**: Shared code in lib/utils - **Data queries**: CMS and API patterns - **CSS structure**: Classes and design tokens **Framework Support**: React, Vue, Svelte, Astro, Next.js, Angular, Solid (auto-detected) **Output Formats**: - **TOON** (default): Token-efficient format, 30-60% smaller than JSON - **JSON**: Standard format for tooling compatibility ## Quick Start ```bash # Auto-detect framework, output TOON python scripts/index_codebase.py /path/to/project # Specify framework and format python scripts/index_codebase.py /path/to/project --framework react --format json # Use tab delimiters (even more token-efficient) python scripts/index_codebase.py /path/to/project --delimiter "\t" ``` ## Framework Auto-Detection The skill automatically detects your framework from `package.json`: | Framework | Detection | Extensions | |-----------|-----------|------------| | Astro | `astro` dependency | `.astro` | | React | `react` dependency | `.jsx`, `.tsx` | | Next.js | `next` dependency | `.jsx`, `.tsx` | | Vue | `vue` dependency | `.vue` |
Details
- Skill name
codebase-index- Repository
- cris-achiardi/claude-skills
- Path
.claude/skills/codebase-index/SKILL.md- License
- MIT
- Repo updated
- 18 May 2026
FAQ
What does the Codebase Index skill do?
Automatically generate relationship and dependency maps for any component-based codebase (React, Vue, Svelte, Astro, Next.js, Angular, Solid). Auto-detects framework. Supports TOON format for 30-60% token savings. Use when indexing codebases, mapping component relationships, documenting dependencies, or understanding unfamiliar projects. Generates JSON/TOON files mapping component usage, imports, npm dependencies, utilities, CSS, and data queries.
How do I install the Codebase Index skill?
Claude Code plugin: /plugin marketplace add cris-achiardi/claude-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Codebase Index popular?
It lives in cris-achiardi/claude-skills, which has 73 GitHub stars and 8 forks.
Related skills
AI Component Metadata
73cris-achiardi/claude-skills
Generate AI-ready metadata for design system components to enable intelligent UI generation. Analyzes component structure and generates structured metadata that helps AI understand when and how to use components correctly. Useful for teams building AI-consumable design systems.
AI Ds Composer
73cris-achiardi/claude-skills
Strategic guide for consuming design system metadata to compose components intelligently. Use when generating or modifying UI components and layouts to ensure component reuse, proper variant selection, and adherence to design system patterns. Helps Claude understand project structure, read hierarchical metadata indexes, apply anti-pattern rules, and flag when existing components don't fit a requirement.
Crazy 8s
73cris-achiardi/claude-skills
Solo rapid ideation method based on Google Design Sprint Crazy 8's exercise. Generates 8 distinct solution ideas in 8 minutes through rapid-fire ideation or sketch documentation. Use when working alone and need to explore multiple solution directions quickly, push beyond first obvious ideas, or generate variety before converging. Includes creativity warm-up questions, built-in timer, optional creative constraints, and generates visual HTML/CSS prototypes plus comparison table. NOT for team sessions (traditional Crazy 8's works better for teams).
Embedded Debugging
44Klievan/jlink-mcp
Debug embedded firmware on real hardware through the jlink-mcp server — crashes, hangs, peripheral misconfiguration, silent devices. Covers loading ELF symbols for source-level backtraces, supplying an SVD for named peripheral fields, and the halt/read/resume discipline. Use whenever debugging a microcontroller over a J-Link, OpenOCD, or Black Magic probe.
Claude Code Runner
43ericvtheg/claude-code-runner
Submit coding tasks to Claude Code Runner for autonomous implementation. The service clones repositories, makes changes, and opens pull requests.
Kuma Core Invariants
43aldegad/kuma-core-invariants
Use when reviewing architecture, refactors, state/data ownership, duplication, code and test structure, failure handling, debug discipline, work-in-progress hygiene, or concurrency policy against Alex's eight fixed invariants.
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.