graph-build

graph-build is a skill for Claude Code from athola/claude-night-market. It costs 32 tokens per session (613 once invoked), scanned A, original, MIT.

A code-structure builder that parses source files into a knowledge graph using syntax trees and a database. It can create a new graph or update an existing one.

In plain words
What is it for?
Use it when setting up the graph, refreshing it after code changes, or preparing it for searches and impact analysis.
Why use it?
Search and code-impact analysis need an up-to-date picture of how files, functions, classes, and other entities relate to each other.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the gauntlet plugin — 7 skills, 6 commands, 1 agent shipped together

Good fit Use it when setting up the graph, refreshing it after code changes, or preparing it for searches and impact analysis.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add athola/claude-night-market
Claude Code
/plugin install gauntlet

Made for: Claude Code.

Or install gauntlet, the plugin that ships this one along with the rest of its 7 skills, 6 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for graph-build

README.md
[![agentmods](https://agentmods.dev/badge/skills/athola/claude-night-market/graph-build/github.svg)](https://agentmods.dev/skills/athola/claude-night-market/graph-build)
Your own site
<a href="https://agentmods.dev/skills/athola/claude-night-market/graph-build"><img src="https://agentmods.dev/badge/skills/athola/claude-night-market/graph-build/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for graph-build

Your own site · 80×15
<a href="https://agentmods.dev/skills/athola/claude-night-market/graph-build"><img src="https://agentmods.dev/badge/skills/athola/claude-night-market/graph-build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 613 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.00613
Opus 5 $0.00016 $0.00307
Sonnet 5 $0.00006 $0.00123
Haiku 4.5 $0.00003 $0.00061

Measured 7d ago against content hash 7191a5b91c4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

graph-build scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/gauntlet/skills/graph-build/SKILL.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/graph_build.py <dir>
    

    For incremental update:

    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

Read the full file on GitHub · 80 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 80 lines · 32 tokens per session scan A 7191a5b91c4e

Subscribe to this mod's changes

graph-build is a skill published in the GitHub repository athola/claude-night-market (337 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 613 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

agency-os

Notion-as-source-of-truth dispatch board for running your work like an AI agency. One Tasks database is the source of truth; tasks flow Suggestion through Discussion, To-Do, In Progress, and Done with subtasks, recurring cadences, dependencies, and template subtrees. Batch execution fans approved To-Do rows out to…

jeremylongshore/tons-of-skills-marketplace · 142 tokens

obsidian-bases

Create and configure Obsidian Bases — database-like views of notes. Activate this skill when users want to create bases, write filters, formulas, or set up table/cards/list/map views.

allenhutchison/obsidian-gemini · 43 tokens

database-patterns

Use when designing PostgreSQL + Redis data models, indexes, caching strategies, JSONB usage, tiered storage, or cache consistency contracts.

majiayu000/spellbook · 32 tokens

codex-log-guard

Diagnose excessive Codex local SQLite diagnostic log writes with read-only evidence by default. Use when a user mentions logs2.sqlite, logs2.sqlite-wal, blockloginserts, SSD/TBW wear, or explicitly asks to protect, clean up, verify, or restore Codex diagnostic logging.

majiayu000/spellbook · 68 tokens

claude-bionify

Configure and control the claude-bionify bionic reading plugin. Use when the user asks about bionic reading settings (fixation/strength, boundary, minimum word length, acronyms, URLs, headings), wants to turn the bionic display on, off, or toggle it, asks for the current status, or asks how to use the /claude-bionify…

ccplugins/awesome-claude-code-plugins · 84 tokens

convex-migration-helper

Plans and executes safe Convex schema and data migrations using the widen-migrate-narrow workflow and the @convex-dev/migrations component. Use this skill when a deployment fails schema validation, existing documents need backfilling, fields need adding or removing or changing type, tables need splitting or merging…

get-convex/convex-backend · 102 tokens