Graph Refresh — Development skill for Claude Code
Re-index the codegraph Python package so /graph queries reflect the latest on-disk state.
How to install Graph Refresh
Installs to ~/.claude/commands/cognitx-leyton-graphrag-code-graph-refresh.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/cognitx-leyton/graphrag-code/HEAD/.claude/commands/graph-refresh.md -o ~/.claude/commands/cognitx-leyton-graphrag-code-graph-refresh.md Restart Claude Code, or start a new session, for it to be picked up.
What Graph Refresh does
allowed-tools: Bash(codegraph index:*), Bash(.venv/bin/codegraph index:*), Bash(codegraph index:*) description: Re-index the codegraph Python package so /graph queries reflect the latest on-disk state
Why
codegraph is a static snapshot of the codebase at index time. Edits after indexing don't show up in the graph until you re-index. Run this command after any **structural** change — adding/removing classes, functions, methods, imports, decorators; renaming; moving files. For cosmeti
Alternatives in Development
- Reflect Skills 996 ★
- LiveBrowser — Browser tools (browser_navigate, browser_get_state, browser_snapshot, browser_get_text, browser_click, browser 250 ★
- Claude Self Reflect — Claude forgets everything 204 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Orch Resume
Rebuild orchestration state after a crash, /clear or compaction — reads the ledger, scratch index and verify v
Graph
Run a read-only Cypher query against the live codegraph Neo4j graph
Codebase Graph
Code intelligence MCP server — 42-language tree-sitter AST parsing, FalkorDB knowledge graphs, 0.944 MRR searc
Migrate REST To GraphQL
Migrate legacy Shopify REST Admin API calls to the latest stable GraphQL Admin API with cost-aware queries and
Register Workstream
Register/refresh a project workstream (a reusable lane of work) — project-with-reflect
Termina Tui Patterns
How to do async work correctly in the Termina TUI (R3 + single-threaded render loop). Activate when editing an
Related Agents
Codegraph
Optional. Query a CodeGraph index of the repo for the impact radius, callers, callees, and affected tests of c
Reflect
Identity reflection agent. Evaluates a provided conversation excerpt against 5 criteria and writes qualifying
Dashboard Updater
Use this agent when the Dispatcher needs to reflect an event (report received, task dispatched, PR merged, wor