codeindex-guide

star 11

Use when the user asks about CodeIndex itself — available tools, how to query the knowledge graph, MCP resources, graph schema, or workflow reference. Examples: "What CodeIndex tools are available?", "How do I use CodeIndex?"

GetKlai By GetKlai schedule Updated 6/5/2026

name: codeindex-guide description: "Use when the user asks about CodeIndex itself — available tools, how to query the knowledge graph, MCP resources, graph schema, or workflow reference. Examples: "What CodeIndex tools are available?", "How do I use CodeIndex?""

CodeIndex Guide

Quick reference for all CodeIndex MCP tools, resources, and the knowledge graph schema.

Always Start Here

For any task involving code understanding, debugging, impact analysis, or refactoring:

  1. Read codeindex://repo/{name}/context — codebase overview + check index freshness
  2. Match your task to a skill below and read that skill file
  3. Follow the skill's workflow and checklist

In Conductor worktrees, a stale warning can be an overlay/canonical-checkout mismatch rather than a broken shared index. Do not run codeindex analyze or codeindex update from a feature worktree. Run scripts/codeindex-health.sh; only if it reports the shared base index is stale, run scripts/codeindex-health.sh --repair.

Skills

Task Skill to read
Understand architecture / "How does X work?" codeindex-exploring
Blast radius / "What breaks if I change X?" codeindex-impact-analysis
Trace bugs / "Why is X failing?" codeindex-debugging
Rename / extract / split / refactor codeindex-refactoring
Tools, resources, schema reference codeindex-guide (this file)
Index, status, clean, wiki CLI commands codeindex-cli

Tools Reference

Tool What it gives you
query Process-grouped code intelligence — execution flows related to a concept
context 360-degree symbol view — categorized refs, processes it participates in
impact Symbol blast radius — what breaks at depth 1/2/3 with confidence
detect_changes Git-diff impact — what do your current changes affect
rename Multi-file coordinated rename with confidence-tagged edits
cypher Raw graph queries (read codeindex://repo/{name}/schema first)
list_repos Discover indexed repos

Resources Reference

Lightweight reads (~100-500 tokens) for navigation:

Resource Content
codeindex://repo/{name}/context Stats, staleness check
codeindex://repo/{name}/clusters All functional areas with cohesion scores
codeindex://repo/{name}/cluster/{clusterName} Area members
codeindex://repo/{name}/processes All execution flows
codeindex://repo/{name}/process/{processName} Step-by-step trace
codeindex://repo/{name}/schema Graph schema for Cypher

Graph Schema

Nodes: File, Function, Class, Interface, Method, Community, Process Edges (via CodeRelation.type): CALLS, IMPORTS, EXTENDS, IMPLEMENTS, DEFINES, MEMBER_OF, STEP_IN_PROCESS

MATCH (caller)-[:CodeRelation {type: 'CALLS'}]->(f:Function {name: "myFunc"})
RETURN caller.name, caller.filePath
Install via CLI
npx skills add https://github.com/GetKlai/klai --skill codeindex-guide
Repository Details
star Stars 11
call_split Forks 2
navigation Branch main
article Path SKILL.md
More from Creator