graph-navigation
Skill2 starsChanged 6 months agoMITView on GitHub
Query backlogd's local agent-execution + memory graph (.backlogd/graph/) — read-only. Records what only the loop knows (dispatch outcomes, latency, rework events) plus a low-signal aside of which files past problems touched. Use when a backlogd agent wants prior context before acting (problem-history / module-history / find-similar) or when a maintainer wants framework-effectiveness metrics (graph.py report). Local JSON only, no Linear/MCP — safe inside the developer's solve-only boundary. Pairs with references/graph-schema.md (nodes/edges/IDs) and references/graph-queries.md (copy-paste recipes).
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 49
Every lookup must tolerate "nothing found" and move on.
- Very specific: line 75
All three read every session file under .backlogd/graph/ and filter the edges.
- Very specific: line 119
Local only: No Linear, no MCP, no network.
- Very specific: line 124
IDs are opaque strings: Always build/compare node ids via the documented convention (problem:linear:NB-N, module:<path>, session:<id>) — …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Navigating backlogd's memory graph
backlogd keeps a small knowledge graph of its own work. Its primary signal is the
agent-execution dimension — what only the scrum loop knows: when a unit was dispatched,
the recorded outcome (solved / partial / blocked — the coarse graph bucket the
orchestrator folds the developer's richer STATUS onto; see skills/solve/capture.md),
how long it took, when the PR opened, how long the whole run took, and how often a problem
was sent back for rework.
That's the data the maintainer asks framework-effectiveness questions of: "where do we
rework, where do we block, how fast does the loop close?"
Alongside the agent-execution edges, the graph also retains a small low-signal aside:
which files ("modules") past problems touched, so an agent can ask "have we been here
before, and what did it touch?" before acting. The file dimension duplicates git log
and is no longer emitted on new runs, but historical edges remain readable and
prior_work still surfaces them when present.
This skill is read-only navigation. It answers questions from the local store; it
never writes it. (Writing is the scrum-master's job — see skills/solve/dispatch.md,
skills/solve/handoff.md, and commands/review.md for the orchestrator hooks.)
Read this file first; reach for a reference when you act:
references/graph-schema.md— what the nodes and edges are: thekind:backend:native_idID convention, every edge type, the on-disk store layout, and the edge object shape. Read it when you're unsure what a node id or edge means.references/graph-queries.md— the exact, copy-paste query recipes (a tinyload_edges()loader + the lookups). Copy from here when you actually run a query.
What this graph is — and is not
- It owns the dimension Linear and git can't compute: the agent-execution metadata (dispatch outcomes, latency, rework) plus the residual session→file aside. It deliberately does not duplicate Linear's hierarchy/relations/comments/PRs, nor git's file-authorship history.
- It is complementary to the
linearskill. When you need work-item facts (status, parent/child, blockers, comments) → use Linear via the MCP. When you need "how often do we rework? how fast does the loop close?" → rungraph.py report. When you need "what's been solved near this code?" → use the lookups below. - It is local JSON, no network. Reading it needs no Linear, no MCP, no API key — which is
exactly why a
backlogd:developercan use it within its solve-only boundary. - It may be empty or sparse (early days, or a fresh checkout — the store is gitignored). Every lookup must tolerate "nothing found" and move on; never treat an empty graph as an error.
When to use it
Scrum-master (/backlogd:solve) — during the loop:
- Before dispatching a developer, run problem-history / find-similar on the problem so you can fold a short "prior work" note into the developer's brief.
- The orchestrator hooks (
dispatch_started/dispatch_completed/pr_opened/run_completed/rework) are wired in the skill prose; you don't query those — they feedgraph.py report.
Developer (backlogd:developer) — while solving, within the solve-only boundary:
- About to edit a file? Run module-history to see which problems last touched it and why.
- Tackling something that feels familiar? Run find-similar to surface the closest past problems by shared touch-set, then read their Linear issues for context.
Maintainer / product owner — measuring the framework:
python scripts/graph.py reportprints a markdown table: rework rate, partial rate, p50/p90 dispatch→PR latency, blocker frequency byarea:*label.
The three lookups
All three read every session file under .backlogd/graph/ and filter the edges. Full,
runnable versions (with the loader) live in
references/graph-queries.md — the sketches below show the
shape. Each treats both legacy solves edges and new dispatch_completed edges as
evidence that a session worked on a problem.
1. problem-history — which files did a problem touch? (low-signal aside)
Sessions that solved the problem → the modules those sessions touches.
problem = "problem:linear:NB-241"
solve_like = {"solves", "dispatch_completed"}
sessions = {e["src"] for e in edges if e["type"] in solve_like and e["tgt"] == problem}
files = sorted({e["tgt"] for e in edges if e["type"] == "touches" and e["src"] in sessions})2. module-history — which problems touched a file? (low-signal aside)
Sessions that touches the file → the problems those sessions solved.
module = "module:scripts/graph.py"
solve_like = {"solves", "dispatch_completed"}
sessions = {e["src"] for e in edges if e["type"] == "touches" and e["tgt"] == module}
problems = sorted({e["tgt"] for e in edges if e["type"] in solve_like and e["src"] in sessions})3. find-similar — which past problems share a touch-set with this one? (low-signal aside)
Build each problem's touch-set (the union of files its sessions touched), then rank other problems by overlap with the target's set (shared count / Jaccard). See the reference for the full ranking recipe.
Note. The three lookups above rely on
touchesedges, which are no longer emitted on new runs. They keep working against historical data; on a fresh graph they'll return nothing. The primary signal of the graph is now the agent-execution edges — query them viagraph.py reportor the recipes inreferences/graph-queries.md.
Boundaries — read before you query
- Read-only, always. This skill never writes
.backlogd/graph/. If you think an edge is missing, that's a gap in the orchestrator's emission step (seeskills/solve/), not something to patch here. - Local only. No Linear, no MCP, no network. Resolve work-item details (titles, status)
by taking the
NB-Na lookup returns and reading it in Linear separately — keep the graph query itself offline. - Best-effort. A missing/empty store, or a malformed session file, yields fewer results — never an exception. Degrade quietly.
- IDs are opaque strings. Always build/compare node ids via the documented convention
(
problem:linear:NB-N,module:<path>,session:<id>) — seereferences/graph-schema.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

