/gitkb:gitkbfrom gitkb
Use GitKB from Claude Code for local code intelligence first, with full persistent knowledge graph setup when the user wants tasks, decisions, architecture, sync, or team context. Use when the user asks about callers, callees, impact, symbols, dead code, codebase structure, GitKB setup, tasks, or knowledge management.
Ships in gitkb. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
GitKB is a local CLI for code intelligence and a persistent knowledge graph for tasks, decisions, architecture, sync, and team context. Do not assume MCP is available. Use Bash/CLI first unless the project already has full GitKB/Claude setup.
Run these checks before using GitKB:
command -v git-kb
git rev-parse --show-toplevel
If git-kb is missing, guide the user to install it:
brew install gitkb/tap/gitkb
# or
curl -fsSL https://get.gitkb.com/install.sh | bash
If the current directory is not a Git repo, explain that code intelligence needs a Git repo.
When exploring code relationships, prefer git-kb code over grep. Grep matches text; git-kb code understands the AST and call graph.
| Instead of | Use |
|---|---|
| grep for function callers | git-kb code callers "<symbol>" --json |
| grep for definitions | git-kb code symbols --file <path> --json |
| grep to assess change impact | git-kb code impact <path> --json |
| manual dead code search | git-kb code dead --json |
.kbGitKB code intelligence works in a normal Git repo without git-kb init.
Use these commands for code questions:
git-kb code doctor --json
git-kb code index
git-kb code symbols --json
git-kb code symbols --file path/to/file --json
git-kb code callers "<symbol>" --json
git-kb code callees "<symbol>" --json
git-kb code impact path/to/file --json
git-kb code dead --json
git-kb code query hotspots --json
Run git-kb code doctor --json first when you need to understand index health or language support. Run git-kb code index before first analysis or after large code changes.
Use GitKB code intelligence before broad refactors, symbol renames, dead-code removal, dependency cleanup, service-edge analysis, or questions about how code flows through the repository.
Only guide full setup when the user wants persistent tasks, project memory, sync, or complete Claude integration:
git-kb init
git-kb init claude
After full setup, canonical skills and Claude assets come from git-kb init claude. Do not recreate or vendor those assets from this plugin.
MCP is supported after full KB setup today. It is not required for first value in Claude Code. If MCP is unavailable, stale, or not initialized, use the CLI fallback and continue.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub gitkb/gitkb-claude-plugin --plugin gitkb