Skip to content
Agentmart
Submit a tool

alex-graph

Incrementally update the codebase graph for only the files changed since the last build (git-tracked), instead of a full rebuild.

Skill by AlexBodner

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/alexbodner-alex-graph

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Incrementally update the codebase graph for only the files changed since the last build (git-tracked), instead of a full rebuild. Refreshing an existing graph runs without asking; only the first build of a repo asks. Use when the graph is stale after edits or a merge.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/alex-graph

What's inside

Skill name
alex-graph
Description
Incrementally update the codebase graph for only the files changed since the last build (git-tracked), instead of a full rebuild. Refreshing an existing graph runs without asking; only the first build of a repo asks. Use when the graph is stale after edits or a merge.
License
MIT
Instructions
70 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Alex graph (incremental)

Keep the understand-anything graph fresh **without** full rebuilds. The stale set comes
from git (near-free) and the update is incremental.

**The first build asks; refreshes do not.** Building a graph from scratch is the expensive,
explicit step — propose it and wait. Once a graph and its `graph-base` exist, keeping it
current is maintenance: refresh the changed files without asking. The SessionStart pointer
says which case you are in.

## Workflow

1. **See what's stale** (source files changed since the last build):

   ```bash
   python3 bin/graph-mark --stale
   ```

   If the list is empty, stop — the graph is current. If `graph-base not set`,
   there is no build to diff against yet (see "No graph yet" below).

2. **Refresh without asking** when a graph already exists — this is maintenance, and the
   cost is bounded by the stale set, not the repo. Say what you refreshed afterwards.
   Only the *first* build of a repo needs approval (see "No graph yet").

3. **Run the INCREMENTAL update** over the changed set only, not a full rebuild:

   ```text
   /understand-diff        # analyze the git diff / changed files into the graph
   # or, if the plugin prefers it: /understand --auto-update
   ```

4. **Re-mark the base** so staleness resets to zero:

   ```bash
   python3 bin/graph-mark
   ```

## Triggers

- **On PR merge:** the installed `post-merge` git hook prints a reminder; run this
  skill when you next open Claude.
- **During development:** SessionStart (also after a compaction) surfaces `STALE: N source file(s)`.
  Below the auto threshold (`ALEXS_RIG_GRAPH_AUTO_AT`, default 10) that line is
  informational; at or above it, refresh on your own initiative.

## Parallel agents / worktrees

Each worktree keeps its own graph and `graph-base` (`.alexs-rig/` is gitignored), so
agents grow their graphs independently — no collisions. On merge you **re-derive**, you
do not git-merge: run this skill on main and it updates only the merged diff. If that
stale set is large (a big merge), update in a few file batches rather than one giant
`/understand-diff`. See `docs/knowledge-graph.md` → "Parallel agents / worktrees".

## No graph yet

This is the one step that needs the user's go-ahead — a first build reads the whole repo
and is not cheap. Propose it, then once approved:

```text
/understand --auto-update
```

Staleness tracking starts by itself the next time a session sees the graph — no
`graph-mark` needed for the first build.

Never dump `knowledge-graph.json` into L0 or chat — query it. This skill orchestrates
understand-anything; the Rig does not implement its own graph engine.

From AlexBodner/alexs-rig, MIT.

More from AlexBodner/alexs-rig

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Sep 4, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from AlexBodner

Cite this page

alex-graph skill. Agent Mart. https://agentmart.dev/skills/alexbodner-alex-graph (last updated 2026-10-24)