cm-codeintelllisted
Install: claude install-skill tody-agent/codymaster
# Code Intelligence — Structural Understanding for AI Agents
## TL;DR
- **Use to** index codebase for fast structural understanding
- **Outputs**: skeleton index, AST graph, Mermaid diagrams
- **Token saving**: ~95% for onboarding, ~30% for deep analysis
- **Next**: cm-planning or cm-debugging
> **Stop scanning. Start querying.** Skeleton Index (<4s, zero deps) + AST graph + architecture diagrams = instant code understanding.
> Inspired by [CodeGraph](https://github.com/colbymchenry/codegraph) + [GitDiagram](https://github.com/ahmedkhaleel2004/gitdiagram).
> TRIZ-optimized: 10 inventive principles applied.
## When to Use
**ALWAYS for medium-to-large projects.** This is infrastructure, not an action skill.
- **Auto-triggered by:** `cm-start` Step 0.7 (project init) — **ALWAYS runs Layer 0**
- **Manually triggered for:** "understand this codebase", "what calls X?", "what breaks if I change Y?"
- **Skip when:** NEVER — Layer 0 (Skeleton) works on any project size
### Detection Thresholds (Auto-Trigger)
```
TRIGGER if ANY of these are true:
→ Project has >50 source files
→ User wants to refactor or re-code an existing project
→ User says "understand the codebase" / "what does this do?"
→ cm-execution encounters >3 grep/glob calls for one task
→ cm-debugging needs callers/callees to trace a bug
```
---
## Architecture: 4 Layers
```
┌──────────────────────────────────────────────────────────────────────────┐
│ cm-codeintell