Programming · Building & coding
graph-build
/graph-build
Builds or updates the code knowledge graph via tree-sitter AST and SQLite. Use when setting up the graph before search or blast-radius analysis.
- Author
- athola ↗
- Repository
- claude-night-market ↗
- Licence
- MIT
- Last repository change
- 01.10.2026
Assessment and security
100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
Deprecation
No signals detected. Repository changed on 01.10.2026, without references to retired models or APIs.
Licence
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Builds or updates the code knowledge graph via tree-sitter AST and SQLite. Use when setting up the graph before search or blast-radius analysis.
Original author description
Builds or updates the code knowledge graph via tree-sitter AST and SQLite. Use when setting up the graph before search or blast-radius analysis.
How it works
- Steps
- When To Use
- When NOT To Use
- What Gets Parsed
- Storage
- Exit Criteria
Original SKILL.md headings · 75 lines, 305 words
SKILL.md preview
---
name: graph-build
description: Builds or updates the code knowledge graph via tree-sitter AST and SQLite. Use when setting up the graph before search or blast-radius analysis.
model_hint: standard
---
# Build Code Knowledge Graph
Build or update the `.gauntlet/graph.db` knowledge graph
for the current codebase.
## Steps
1. **Detect target**: Use the current working directory
or a user-specified path.
2. **Check for existing graph**: If `.gauntlet/graph.db`
exists, run an incremental update. Otherwise, run a
full build.
3. **Run the build script**:
For full build:
```bash
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/graph_build.py <dir>
```
For incremental update:
```bash
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/graph_build.py <dir> --incremental
```
4. **Report results**: Show the JSON output including
files parsed, nodes created, edges created, and
duration.
5. **Suggest next steps**: Recommend searching the graph
or running blast radius analysis.
## When To Use
- At the start of a session to build structural awareness
- After significant code changes to update the graph
- Before running blast radius analysis or flow tracing
- When the user asks about codebase structure
## When NOT To Use
- Querying a graph that already exists (use `gauntlet:graph-search`)
- Building the challenge knowledge base (use `gauntlet:extract`)
## What Gets Parsed
The graph extracts nodes (File, Class, Function, Type,
Test) and edges (CALLS, IMPORTS_FROM, INHERITS, CONTAINS,
IMPLEMENTS, TESTED_BY) from 20+ languages including
Python, JavaScript, TypeScript, Go, Rust, Java, C/C++,
Ruby, and PHP.
## Storage
- Database: `.gauntlet/graph.db` (SQLite with WAL mode)
- Auto-creates `.gauntlet/.gitignore` to prevent commits
- Incremental updates use SHA-256 hashing to skip
unchanged files
## Exit Criteria
- [ ] `.gauntlet/graph.db` exists and is a valid SQLite file after
the skill completes; `.gauntlet/.gitignore` exists to prevent
the database from being committed
- [ ] Build report JSON includes all four keys: `files_parsed`,
`nodes_created`, `edges_created`, `duration`; values are
non-zero for non-empty codebases
- [ ] Incremental update path used when `.gauntlet/graph.db` already
exists (script invoked with `--incremental`); full build only
on first run
- [ ] Next-step suggestions presented to the user: search the graph
or run blast-radius analysis
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · athola/claude-night-market | 100 | MIT |
| FormaMindPro/formamind | 85 | MIT |
Database snapshot: 13.11.2026 · package version 6f05ec8b0638 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100ai-codegraph
Semantic code intelligence via MCP: call chains, blast radius, cross-file symbol relationships. Uses CodeGraph (colbymchenry/codegraph) — a local-first Rust server that builds a SQLite knowledge graph from tree-sitter ASTs. One tool: codegraph_explore. Use when the question… - 90knowledge-graph
Offline per-repo code knowledge graph (`kg` CLI). Use for graph status, index/refresh/reset, blast radius, what depends on X, or finding the code for X. - 100ast-grep
Write, debug, and validate ast-grep structural code search rules. Use for syntax-aware code search, AST pattern matching, structural refactor discovery, or searches plain text tools like rg can miss — functions with particular descendants, calls inside specific contexts,… - 100graphify
Map a folder or codebase into a queryable knowledge graph with the graphify CLI (local tree-sitter AST, zero LLM cost) and answer structure questions from it: 架构 / 依赖关系 / 什么调用了 X / A 和 B 怎么关联 / 这个项目怎么组织 / 知识图谱 / graphify. Trigger when the user points at a project directory and… - 100codemapper
Use when analyzing codebases for structure, finding symbols, tracing call paths, checking test coverage, or analyzing dependencies - provides instant AST-based code analysis using tree-sitter for Python, JavaScript, TypeScript, Rust, Java, Go, and C - 90codegraph
Pre-indexed code knowledge graph (MCP, SQLite + tree-sitter) for faster, lower-token exploration of brownfield codebases. Use when starting work on a repo larger than ~500 files or when the task involves cross-file traversal — "where is X used", "what calls Y", "what breaks if I…