1---2name: cm-skill-index-23description: Progressive Disclosure skill index — efficient skill loading in 3 layers. Layer 1 (index, ~100 tokens) always loaded. Layer 2 (summary, ~300 tokens) loaded on context need. Layer 3 (full SKILL.md) loaded on execution only.4---56# Skill Index — Progressive Disclosure Engine78## TL;DR9- **Use when** searching for a CodyMaster or community skill10- **Layered**: L1 index (always loaded) → L2 summary → L3 full11- **Includes**: discovery, search, mastery (consolidated in v6)1213> **Save 90%+ tokens.** Agents scan the index first, load full skills only when executing.14> Inspired by Loki Mode's 3-Layer Progressive Disclosure memory architecture.1516## The Problem1718Traditional approach: Load every SKILL.md to decide which skill to use.19- 30+ skills × ~3000 tokens each = **90,000+ tokens just for discovery**20- Agent only needs ~500 tokens to make the choice21- **89,500 tokens wasted on reading full skills**2223## The Solution: 3-Layer Loading2425```26┌────────────────────────────────────────────────┐27│ LAYER 1: INDEX (~100 tokens per skill) │28│ Always loaded. Quick scan. "What exists?" │29│ Name + Domain + Triggers + 1-line summary │30└─────────────────────┬──────────────────────────┘31 │ (match found?)32 v33┌────────────────────────────────────────────────┐34│ LAYER 2: SUMMARY (~300 tokens per skill) │35│ Load when choosing. "Is this the right one?" │36│ Description + When to use + Integration table │37└─────────────────────┬──────────────────────────┘38 │ (confirmed?)39 v40┌────────────────────────────────────────────────┐41│ LAYER 3: FULL SKILL.md (1500-5000 tokens) │42│ Load ONLY during execution. "How to use it." │43│ Complete instructions, examples, red flags │44└────────────────────────────────────────────────┘45```4647## Layer 1: Skill Index4849**Always loaded by agents at session start.** Maximum 100 tokens per skill.5051### Engineering Swarm 🔧5253| Skill | Triggers | Summary |54|-------|----------|---------|55| `cm-tdd` | test, TDD, red-green-refactor | Red-Green-Refactor cycle before any implementation |56| `cm-debugging` | bug, error, fix, debug, broken | Root cause analysis before fixing. 5-phase investigation |57| `cm-quality-gate` | deploy, ship, verify, quality, gate | 6-gate verification: static analysis → blind review → ship |58| `cm-test-gate` | test setup, CI, test infrastructure | Setup 4-layer test gate for any project type |59| `cm-code-review` | review, PR, feedback, branch | Request reviews, handle feedback, complete branches |60| `cm-codeintell` | understand codebase, call graph, impact, architecture, what calls X, what breaks | AST knowledge graph + architecture diagrams + smart context (30% fewer tokens) |61| `cm-reactor` | rewrite, pivot, migrate, direction change, architecture wrong, restructure | TRIZ-powered strategic codebase re-direction — 5-phase incremental migration |62| `cm-clean-code` | clean, dead code, refactor, code smell, DRY, SOLID, naming, messy | 7-point hygiene gate: dead code, imports, naming, SRP, DRY, nesting |6364### Operations Swarm ⚙️6566| Skill | Triggers | Summary |67|-------|----------|---------|68| `cm-safe-deploy` | deploy, staging, production, release | Multi-gate deploy pipeline with rollback strategy |69| `cm-identity-guard` | git push, deploy, Cloudflare, Supabase, account | Verify identity before any push/deploy to prevent wrong-account |70| `cm-git-worktrees` | branch, isolate, worktree, parallel | Isolated git worktrees for feature work |71| `cm-terminal` | command, terminal, run, execute | Safe terminal execution with progress logging |7273### Security Swarm 🔒7475| Skill | Triggers | Summary |76|-------|----------|---------|77| `cm-secret-shield` | secret, token, leak, security, scan, pre-commit, gitleaks, rotate | Defense-in-depth: pre-commit hooks, repo scanning, token lifecycle |7879### Product Swarm 🎨8081| Skill | Triggers | Summary |82|-------|----------|---------|83| `cm-brainstorm-idea` | analyze, enhance, improve, initiative, evaluate, review product | Strategic analysis gate: 9 Windows + Double Diamond → 2-3 qualified options |84| `cm-planning` | plan, design, brainstorm, feature | Brainstorm intent → write implementation plan → then code |85| `cm-ux-master` | UI, UX, design, interface, usability | 48 UX Laws + 37 Design Tests + Figma/Stitch integration |86| `cm-ui-preview` | preview, visual, mockup, render UI, wireframe | Live UI concept generation via Google Stitch or Pencil MCP |87| `cm-dockit` | docs, documentation, knowledge base, SOP | Generate complete knowledge base from codebase |88| `cm-project-bootstrap` | new project, init, bootstrap, setup | Full project setup: design system → staging → CI → deploy |89| `cm-jtbd` | customer discovery, JTBD, jobs to be done, product-market fit, why users churn | JTBD canvas: Switch Interview → Outcome Metrics → Opportunity Scoring |9091### Growth Swarm 📈9293| Skill | Triggers | Summary |94|-------|----------|---------|95| `cm-content-factory` | content, blog, article, marketing | AI content engine: research → generate → audit → deploy |96| `cm-ads-tracker` | pixel, tracking, GTM, Meta, TikTok, Google Ads | Complete conversion tracking setup across platforms |97| `cm-cro-methodology` | conversion, A/B test, landing page, funnel | CRO audit: funnel mapping → persuasion → objection handling |9899### Orchestration Swarm 🎯100101| Skill | Triggers | Summary |102|-------|----------|---------|103| `cm-execution` | execute, implement, plan, RARV, batch | Execute plans: batch mode, subagent-driven, parallel, or RARV |104| `cm-continuity` | memory, context, CONTINUITY, learnings | Working memory protocol: read at start, update at end |105| `cm-skill-mastery` | which skill, skill list, discover, help | Meta-skill: when to invoke skills, how to create new ones |106| `cm-skill-health` | skill broken, skill drift, missing skill, stale skill, health | Audit a skill using docs drift, retro notes, validation, and gates |107| `cm-skill-evolution` | repair skill, evolve skill, fix skill, derive skill | Recover a degraded skill with FIX, DERIVED, or CAPTURED mode |108| `cm-skill-search` | find skill, lookup skill, which skill, search skill | Find the right skill through indexes, suggestions, and repo search |109| `cm-skill-share` | export skill, import skill, share skill, move skill | Package and transfer skill folders safely across repos and machines |110| `cm-safe-i18n` | translate, i18n, language, localize | Safe translation with multi-pass batching and audit gates |111| `cm-skill-chain` | chain, pipeline, workflow, multi-step, full process | Compose skills into automated multi-step pipelines |112| `cm-deep-search` | semantic search, find docs, large codebase, qmd | Optional power-up for semantic search across large projects |113| `cm-readit` | audio, TTS, read aloud, voice, speech, SpeechSynthesis, MP3 player | Web audio engine — TTS reader, pre-recorded MP3 player, Voice CRO triggers |114| `cm-how-it-work` | how does X work, explain, architecture overview | Explain how a system, feature, or codebase works |115116### Workflow Commands 🖥️117118| Skill | Triggers | Summary |119|-------|----------|---------|120| `cm-start` | /cm-start, start workflow, begin objective, new task | Orchestrate full cm-* workflow from objective to production code |121| `cm-dashboard` | /cm-dashboard, kanban, task board, show tasks, status board | Render Kanban board from OpenSpec `tasks.md` and `cm-tasks.json` — visual task overview |122| `cm-status` | /cm-status, quick status, progress, what's next, blocked | Ultra-concise progress summary: done / next / blocked |123124### Planned (not yet implemented) 🧪125126> Skills below do not have SKILL.md files yet.127128| Skill | Triggers | Summary |129|-------|----------|---------|130| `mom-test` *(planned)* | customer interview, validate idea, leading questions | Customer interviews without leading questions |131| `release-it` *(planned)* | production, circuit breaker, timeout, chaos | Build production-ready systems with stability patterns |132| `medical-research` *(planned)* | medical, OB/GYN, clinical, evidence-based | Evidence-based medical writing with citation standards |133| `tailwind-mastery` *(planned)* | Tailwind, utility-first, responsive, v4 | Tailwind CSS utilities, responsive, accessibility |134| `pandasai-analytics` *(planned)* | DataFrame, analytics, forecast, time-series | Natural language DataFrame analysis and visual reports |135| `cm-google-form` *(planned)* | Google Form, sheet, App Script | Form-to-sheet integration with auto-retry |136137### Community Skills Registry 🌐138139> **STOP! Zero-Token Discovery Priority:**140> BEFORE using this registry, check if `.cm/project-skills.md` exists in the local project.141> It contains the pre-compiled, exact community skills needed for the project's tech stack.142> If it doesn't exist, run `npx cm index skills` first to build it.143> 144> **Only use the registry below if tech is not listed** or if you need to search manually: `npx skills find "{keyword}"`145146#### 🖥️ Frontend Frameworks (10)147148| Skill | Source | Install Keywords |149|-------|--------|-----------------|150| `react-best-practices` | vercel-labs/agent-skills | react, react performance, RSC |151| `composition-patterns` | vercel-labs/agent-skills | react composition, compound components |152| `react-native-guidelines` | vercel-labs/agent-skills | react native, expo, mobile app |153| `react-native-best-practices` | callstackincubator/agent-skills | react native, expo, mobile |154| `nextjs-app-router-patterns` | wshobson/agents | next.js, app router, RSC |155| `react:components` | google-labs-code/stitch-skills | react components, stitch |156| `cm-ux-master` | UI/UX, design system, frontend | UI/UX design intelligence + Harvester v4 |157| `angular-directives` | analogjs/angular-skills | angular, directives, components |158| `svelte-best-practices` | community | svelte, sveltekit |159| `astro-best-practices` | community | astro, static site, islands |160161#### 🎨 CSS & UI Design (8)162163| Skill | Source | Install Keywords |164|-------|--------|-----------------|165| `web-design-guidelines` | vercel-labs/agent-skills | UI review, accessibility, UX audit |166| `tailwind-design-system` | wshobson/agents | tailwind, design tokens, utility CSS |167| `tailwind-v4-shadcn` | jezweb/claude-skills | tailwind v4, shadcn/ui |168| `tailwindcss-advanced-layouts` | josiahsiegel/claude-plugin-marketplace | tailwind layouts, responsive |169| `remotion-best-practices` | remotion-dev/skills | remotion, programmatic video |170| `shadcn-ui-patterns` | community | shadcn, radix, component library |171| `css-architecture` | community | CSS modules, BEM, CSS-in-JS |172| `framer-motion` | community | animation, framer motion, gestures |173174#### 🗄️ Databases & ORM (9)175176| Skill | Source | Install Keywords |177|-------|--------|-----------------|178| `supabase-postgres-best-practices` | supabase/agent-skills | supabase, postgres, RLS, SQL |179| `prisma-database-setup` | prisma/skills | prisma, schema, migration |180| `prisma-client-api` | prisma/skills | prisma client, type-safe queries |181| `prisma-expert` | sickn33/antigravity-awesome-skills | prisma, advanced patterns |182| `drizzle-orm` | community | drizzle, ORM, type-safe SQL |183| `mongodb-patterns` | community | mongodb, mongoose, NoSQL |184| `pinecone-db` | community | pinecone, vector DB, embeddings |185| `turso-database` | community | turso, libSQL, edge database |186| `planetscale` | community | planetscale, MySQL, branching |187188#### 🔐 Authentication (6)189190| Skill | Source | Install Keywords |191|-------|--------|-----------------|192| `clerk-nextjs-patterns` | clerk/skills | clerk, auth, nextjs auth |193| `clerk-auth-v5` | clerk/skills | clerk v5, middleware, session |194| `better-auth-best-practices` | community | better-auth, auth library |195| `next-auth-v5` | the-misfits/agent-skills | nextauth, auth.js, OAuth |196| `auth-js-v5` | the-misfits/agent-skills | auth.js, session, JWT |197| `supabase-auth` | community | supabase auth, RLS, magic link |198199#### 💳 Payments & Commerce (4)200201| Skill | Source | Install Keywords |202|-------|--------|-----------------|203| `stripe-client` | community | stripe, payment, checkout |204| `stripe-webhook` | community | stripe webhook, event handling |205| `stripe-checkout` | community | stripe checkout, subscription |206| `stripe-connect` | community | stripe connect, marketplace |207208#### 🧪 Testing (5)209210| Skill | Source | Install Keywords |211|-------|--------|-----------------|212| `testing-library` | community | testing library, react testing |213| `vitest-best-practices` | the-misfits/agent-skills | vitest, unit test, coverage |214| `playwright-e2e` | the-misfits/agent-skills | playwright, e2e, browser test |215| `cypress-patterns` | community | cypress, e2e, component test |216| `testing-guidelines` | anthropics/skills | test strategy, TDD, test design |217218#### ☁️ Cloud & Deployment (7)219220| Skill | Source | Install Keywords |221|-------|--------|-----------------|222| `vercel-deploy-claimable` | vercel-labs/agent-skills | vercel deploy, preview URL |223| `vercel-deployment-best-practices` | community | vercel, edge functions, ISR |224| `azure-deployment` | microsoft/skills | azure, cloud, Microsoft |225| `aws-deployment` | microsoft/skills | AWS, Lambda, S3 |226| `docker-expert` | community | docker, container, Dockerfile |227| `docker-compose-orchestration` | community | docker compose, multi-container |228| `multi-stage-dockerfile` | community | docker build, multi-stage, CI |229230#### 🤖 AI & ML (5)231232| Skill | Source | Install Keywords |233|-------|--------|-----------------|234| `vercel-ai-sdk-best-practices` | community | AI SDK, streaming, LLM |235| `langchain-skills` | community | langchain, agents, RAG |236| `openai-skills` | community | openai, GPT, embeddings |237| `tavily-search` | community | tavily, web search, research |238| `ai-sdk-patterns` | community | AI SDK, tool calling, generative UI |239240#### 📡 APIs & Integrations (3)241242| Skill | Source | Install Keywords |243|-------|--------|-----------------|244| `nextjs-supabase-auth` | sickn33/antigravity-awesome-skills | next.js + supabase, full-stack |245| `supabase-edge-functions` | nice-wolf-studio/claude-code-supabase-skills | edge functions, Deno |246| `nextjs-seo` | laguagu/claude-code-nextjs-skills | SEO, meta tags, sitemap |247248#### 📱 Mobile & Cross-Platform (2)249250| Skill | Source | Install Keywords |251|-------|--------|-----------------|252| `expo-patterns` | community | expo, EAS, mobile deploy |253| `capacitor-patterns` | community | capacitor, ionic, hybrid app |254255---256257**Discovery Protocol:**258```2591. Check THIS index first (59 skills above)260 → Match found? → npx skills add {source} --skill {name} -a antigravity2612. No match? → npx skills find "{keyword}" on skills.sh2623. Still nothing? → Proceed without skill, note gap in .cm-skills-log.json263264Trigger points:265 - cm-start Step 0.5 (before planning)266 - cm-planning Phase A Step 4 (scope analysis)267 - cm-execution Pre-flight (before dispatch)268 - cm-execution RARV (after 2 failed retries)269```270271## Layer 2: Skill Summary272273**Loaded when an agent has matched a skill from Layer 1 and needs more context.**274275To access Layer 2, read the first 20 lines of the corresponding SKILL.md (frontmatter + first section).276277```278Example: cm-tdd Layer 2279 - Full name: "TDD — Test Before Write"280 - When to Use: ALWAYS before implementing any feature or bugfix281 - Process: Red (write failing test) → Green (minimal code) → Refactor (clean up)282 - Integration: Works with cm-execution (subagent TDD), cm-quality-gate (coverage check)283 - Token cost: ~4200 tokens for full skill284```285286## Layer 3: Full SKILL.md287288**Loaded ONLY when executing.** Read the complete SKILL.md file.289290```bash291# Agent loads full skill only when ready to execute292view_file /path/to/skills/cm-tdd/SKILL.md293```294295## Usage Protocol296297```2981. AT SESSION START:299 - Load this skill index (Layer 1) — costs ~2500 tokens total300 - Now you know what 34 skills do without reading any of them3013022. WHEN MATCHING A TASK:303 - Scan Layer 1 triggers to find matching skill(s)304 - If unsure, read Layer 2 (first 20 lines of SKILL.md)305 - Choose the best skill3063073. WHEN EXECUTING:308 - Load Layer 3 (full SKILL.md) for the chosen skill309 - Follow the skill's instructions completely3103114. SAVINGS:312 - Without index: 34 × 3000 = 102,000 tokens313 - With index: 2800 + 300 + 3000 = 6,100 tokens314 - Saved: ~95,900 tokens (~94%)315```316317## Skill Domain Mapping318319For dynamic agent selection (Phase 3), skills map to domains:320321```yaml322engineering: [cm-tdd, cm-debugging, cm-quality-gate, cm-test-gate, cm-code-review, cm-codeintell, cm-reactor, cm-clean-code]323operations: [cm-safe-deploy, cm-identity-guard, cm-git-worktrees, cm-terminal, cm-safe-i18n]324security: [cm-secret-shield]325product: [cm-brainstorm-idea, cm-planning, cm-ux-master, cm-ui-preview, cm-dockit, cm-project-bootstrap, cm-jtbd]326growth: [cm-content-factory, cm-ads-tracker, cm-cro-methodology]327orchestration: [cm-execution, cm-continuity, cm-skill-mastery, cm-skill-health, cm-skill-evolution, cm-skill-search, cm-skill-share, cm-skill-chain, cm-deep-search, cm-readit, cm-how-it-work]328commands: [cm-start, cm-dashboard, cm-status]329# planned (no SKILL.md yet): mom-test, release-it, medical-research, tailwind-mastery, pandasai-analytics, cm-google-form330```331332## The Bottom Line333334**Know everything. Load nothing. Execute precisely. Save 90%+ tokens.**