/gauntlet:graph-buildfrom gauntlet
Builds or incrementally updates a code knowledge graph using tree-sitter AST parsing and SQLite storage. Use before search or blast-radius analysis.
Ships in gauntlet. 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.
Build or update the .gauntlet/graph.db knowledge graph
for the current codebase.
Detect target: Use the current working directory or a user-specified path.
Check for existing graph: If .gauntlet/graph.db
exists, run an incremental update. Otherwise, run a
full build.
Run the build script:
For full build:
uv run --project ${CLAUDE_PLUGIN_ROOT} python \
${CLAUDE_PLUGIN_ROOT}/scripts/graph_build.py <dir>
For incremental update:
uv run --project ${CLAUDE_PLUGIN_ROOT} python \
${CLAUDE_PLUGIN_ROOT}/scripts/graph_build.py <dir> --incremental
The build runs in the plugin's own environment because
a system python3 may lack tree-sitter. Without it a
build exits 2 with an error key rather than reporting
files it did not parse.
An incremental update diffs against --base-ref, which
defaults to the commit of the last successful build.
Commits made since then are re-parsed. A graph built
before that commit was recorded falls back to HEAD,
which covers uncommitted changes only: run a full build
once.
Report results: Show the JSON output including files parsed, nodes created, edges created, and duration.
Suggest next steps: Recommend searching the graph or running blast radius analysis.
gauntlet:graph-search)gauntlet:extract)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.
.gauntlet/graph.db (SQLite with WAL mode).gauntlet/.gitignore to prevent commitsedges row has a resolution column recording how a
CALLS target was found: exact (module qualifier, self/cls
scope, or a unique definition in the caller's plugin), name_guess
(a method picked by bare name on a receiver of unknown type, a
unique definition in another plugin, or a bare call that
matched several definitions and only one sits in the caller's
own plugins/<name>/, as with vendored copies), or empty (declared
edge, external call, or a row from a graph built before the
column existed). Treat name_guess edges as unconfirmed: blast
radius lists them under name_guess_callers. A
database lacking the column gains it when opened. Its old edges
stay empty until a full build, and blast radius sets
graph_predates_resolution while the last full build is older
than 1.10.4.gauntlet_version
in the metadata table; an incremental build leaves it
alone. At session start, a graph built by an older
version is rebuilt in the background (log:
.gauntlet/rebuild.log). Opt out with
rebuild_on_upgrade: false in .gauntlet/config.yaml or
.gauntlet/config.json..gauntlet/graph.lock while it runs. A second
build exits 75 without touching the graph..gauntlet/graph.db exists and is a valid SQLite file after
the skill completes; .gauntlet/.gitignore exists to prevent
the database from being committedfiles_parsed,
nodes_created, edges_created, duration; values are
non-zero for non-empty codebases.gauntlet/graph.db already
exists (script invoked with --incremental); full build only
on first runWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub athola/claude-night-market --plugin gauntlet7 skills in this plugin
/challengePresents adaptive codebase challenge questions with multiple-choice and trace exercises. Use when testing contributor knowledge of the codebase./curateAdds developer-authored annotations to the gauntlet knowledge base. Use when capturing tribal knowledge or rationale not visible in code./extractBuilds the gauntlet knowledge base from AST extraction and AI enrichment. Use when initializing or refreshing codebase knowledge for challenges./graph-searchSearches the code knowledge graph by function, class, or type using FTS5 full-text search. Use when locating code entities by name or qualified path./onboardGuides a new developer through five staged challenge sets covering architecture, domain, patterns, and hardening. Use when onboarding contributors./problem-bankAudits the DSA problem bank for coverage gaps and proposes new YAML entries. Use when the problem bank needs a coverage review.Other plugins' skills for the same job