computing-dependency-graph
Skill4 starsChanged 3 months agoMITView on GitHub
Build interactive causal/evolution dependency graphs with vanilla SVG — data model, validation rules, layout, multicolor edges, drag, and hover. Use when the user asks for a dependency graph, influence map, milestone DAG, technology lineage, or computing evolution graph like ComputeHistory.
In this repository4 other files it gives its agents.
- docs/AGENTS.mdAGENTS.md
- speech-to-speech/AGENTS.mdAGENTS.md
- .cursor/rules/verify-after-fix.mdcCursor rule
- docs/llms.txtllms.txt
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
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 19
Use this skill when the user wants:
- Very specific: line 26
Do not use for code-repo dependency graphs → use Arka graphify instead.
- Very specific: line 82
id: must exist in the entity catalog - Distinctive: line 102
Run these before committing edge data.
- Distinctive: line 106
Every edge from earlier year → later year.
- Distinctive: line 128
Do not use interchangeably.
- Very specific: line 192
Merge overrides: after drag (depNodePositionOverrides)
- Distinctive: line 248
Validate: all four rules; write justifications table
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Computing Dependency Graph
Build interactive influence / dependency graphs for milestones, inventions, or systems — left-to-right by era, branching paths, labeled causal edges, drag-to-rearrange, and hover highlighting.
Reference implementation: /Users/sumitmishra/dev/computer_history (data.js, app.js, styles.css, index.html).
When to use
Use this skill when the user wants:
- A dependency graph, influence map, causal graph, or evolution graph
- A milestone DAG showing how breakthroughs enabled later ones
- A technology lineage or computing history graph section in a static site
- To audit or fix edges in an existing graph (chronology, causality, labels)
Do not use for code-repo dependency graphs → use Arka graphify instead.
Invoke via Arka
arka_skill({ skill: "computing_dependency_graph" })
arka_skill({ skill: "computing_dependency_graph", args: "computing history" })CLI / fish (after arka skills refresh):
arka computing_dependency_graph
arka skills run computing_dependency_graphInstall to any path Arka scans (then arka skills refresh):
| Path | When |
~/.config/arka/skills/computing_dependency_graph/ | Default user config |
~/.local/share/arka/skills/computing_dependency_graph/ | Shared install (always scanned) |
$CONFIG_DIR/skills/computing_dependency_graph/ | Dev trees where CONFIG_DIR is the Arka repo |
Cursor agents also load: ~/.agents/skills/computing-dependency-graph/SKILL.md
Data model
Entity catalog (nodes source of truth)
Each milestone/system in a shared catalog with at least:
{ id: "intel-4004", name: "Intel 4004", year: 1971, era: "microprocessors", category: "Hardware", ... }Optional era metadata for colors/icons:
{ id: "microprocessors", name: "Microprocessor Age", color: "#6c5ce7", icon: "🖲️", ... }Graph nodes
Subset of catalog ids plus optional row for vertical branching:
const DEPENDENCY_NODES = [
{ id: "transistor", row: 0 }, // main hardware spine
{ id: "apollo-guidance", row: 1 }, // side branch
{ id: "www", row: 2 }, // networking branch
];id: must exist in the entity catalogrow: integer lane (0 = main path); same depth column can stack multiple rows
Graph edges
Directional, labeled causal links:
const DEPENDENCIES = [
{ from: "transistor", to: "intel-4004", label: "built on" },
];from→to: influence flows left to right (earlier → later)label: one of the four approved verbs (see validation)
Validation rules (mandatory)
Run these before committing edge data. Every edge needs a one-sentence mechanism.
1. CHRONOLOGY
Every edge from earlier year → later year. Flag or remove any backwards edge.
2. CAUSAL REALITY
Real documented technical/design lineage only — not "next in chronological list." One-sentence mechanism required per edge. Remove edges without real mechanism.
- BAD: Apollo AGC → WWW (no link)
- GOOD: Transistor → Intel 4004 (transistors are building blocks of microprocessors)
3. NO ORPHAN/DEAD-END
Significant nodes with obvious downstream effects must connect (e.g. WWW → GPT-4 via data/training infrastructure if justifiable, or WWW → iPhone for mobile web — audit all nodes aren't dead ends without reason).
Side branches (e.g. Apollo AGC) may end without merging if the milestone is intentionally peripheral.
4. LABEL ACCURACY
- evolved from = direct successor, same lineage (target evolved from source)
- built on = foundational component or conceptual/technical basis
- enabled = necessary technical precondition (often indirect, multi-hop)
- succeeded by = replacement in same category
Do not use interchangeably. Never use "evolved to" — use evolved from with correct direction.
Validation checklist
- [ ] All from-years ≤ to-years
- [ ] Each edge has a one-sentence justification
- [ ] No chronology-only edges
- [ ] No significant dead-end nodes without reason
- [ ] Labels match mechanism type
- [ ] Every DEPENDENCY_NODES id appears in ≥1 edge (or document why isolated)Example edge list (computing history)
| Source | Target | Label | Justification |
| abacus | difference-engine | evolved from | Mechanical calculation lineage from bead tools to Babbage's engine |
| difference-engine | eniac | built on | Programmable/automated calculation concepts realized electronically |
| eniac | transistor | succeeded by | Transistors replaced vacuum tubes in electronic switching |
| eniac | www | enabled | General-purpose computers made packet networking and the Web feasible |
| transistor | apollo-guidance | built on | AGC integrated circuits used transistor semiconductor fabrication |
| transistor | intel-4004 | built on | Microprocessors are CPUs built from transistors on one chip |
| intel-4004 | apple-ii | enabled | Single-chip CPU made mass-market personal computers viable |
| www | iphone | enabled | Mobile web required HTTP/HTML and internet infrastructure |
| www | gpt-4 | enabled | Web-scale text corpora supply LLM training data |
| iphone | gpt-4 | enabled | Smartphones made AI assistants accessible to mainstream users |
Common removed weak edges: www → apple-ii (backwards in time — use intel-4004 → apple-ii), apple-ii → iphone (not a direct product lineage — use www → iphone for mobile web), transistor → www (too indirect), apollo-guidance → intel-4004 (different lineage), iphone → gpt-4 as built on (use enabled).
Implementation checklist
Vanilla HTML/CSS/JS — no graph library required.
HTML section
<section class="section dependency-section" id="dependency-graph">
<div class="dependency-graph-wrap" id="dependency-graph-wrap">
<svg class="dependency-graph-svg" id="dependency-graph-svg" role="img"
aria-label="Dependency graph"></svg>
<div class="dependency-tooltip" id="dependency-tooltip" hidden></div>
</div>
<div class="dependency-legend">
<span class="dependency-legend-hint">Drag nodes · Hover paths · Click details · Double-click node to reset</span>
<button type="button" class="dependency-reset-btn" id="dependency-reset-layout" hidden>Reset layout</button>
</div>
</section>Data (data.js)
DEPENDENCY_NODES,DEPENDENCIES- Entity catalog with
yearfor chronology checks
Layout (computeDependencyLayout)
- Depth: longest path from sources (
depth[to] = max(depth[from]+1)) - Columns:
x = paddingX + depth * colGap - Rows:
y = paddingY + row * rowGap; enforce min vertical gap for label clearance - Merge overrides after drag (
depNodePositionOverrides)
SVG render (renderDependencyGraph)
<defs>arrow marker (dep-arrow)- Edges: invisible hit path (wide stroke) + visible path + label group
- Multicolor edges: assign unique
--edge-colorper edge (era colors + tint variants) - Color-coded labels: label fill/stroke derived from
--edge-color - Nodes: glow, ring, hit circle, era icon, name, year
- Draw edges under nodes; label groups above nodes
Interactions
- Single-edge hover: dim all except hovered edge + its endpoints (
is-edge-focus) - Node hover: highlight directly connected edges and neighbor nodes (
is-dimmed) - Draggable nodes: pointer capture, 5px threshold, update connected edge paths live
- Reset layout: button clears all overrides; double-click single node resets that node
- Click node: open detail modal; suppress click after drag
- Tooltip: follows cursor on edge/node hover
CSS essentials
.dependency-graph-wrap— scroll container, dark gradient background.dep-edge—stroke: color-mix(... var(--edge-color)), arrow viamarker-end.dep-edge-label—fill: color-mix(... var(--edge-color) 80%, white)(not parent opacity).is-dimmed—opacity: 0.18on non-highlighted elements.is-edge-hovered/.is-highlighted— bright--edge-color-bright, thicker stroke.dep-node-hit—cursor: grab; disable edge pointer events while dragging
Full CSS/JS patterns: reference.md
Common mistakes
| Mistake | Fix |
| Backwards edges (later → earlier) | Reverse or remove; verify against year |
| Chronology-only edges | Require documented mechanism |
www → apple-ii or other backwards-time edges | Remove; verify against milestone year |
apple-ii → iphone as lineage | Not a real technical lineage; use www → iphone instead |
apple-ii → www or other cross-domain leaps | Only if real causal story exists |
evolved to label | Use evolved from (edge direction: predecessor → successor) |
built on for distribution/access | Use enabled |
opacity on parent group for dimming | Dim elements individually — parent opacity washes out label colors |
| Edge labels behind nodes | Append label group after nodes group |
| Duplicate edge colors | assignDependencyEdgeColors() with tint fallback |
| Orphan milestones in graph | Connect or remove from DEPENDENCY_NODES |
| Missing hit targets | Add .dep-edge-hit with stroke-width: 12 |
Workflow
- Define entity catalog with years and era colors
- Draft
DEPENDENCY_NODES+DEPENDENCIES - Validate all four rules; write justifications table
- Scaffold HTML section + CSS classes
- Implement layout + render + interactions (checklist above)
node --checkon JS files; manual hover/drag/reset test- Resize handler debounced re-layout (preserve drag overrides)
Additional resources
- reference.md — key functions, CSS selectors, file map from ComputeHistory
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.

