Graph
Turns any idea into a checked plan your AI must follow, from research to result.
It finds the best tools, asks you once, and proves every step.
Works in Claude Code, Codex, Cursor, OpenCode and OpenClaw (one Agent Skills SKILL.md).
claude plugin marketplace add gwaghmar/graph
claude plugin install graph@graph-skill
or npx graph-skill install
| What it does |
|---|
| 🧠 Reads you first | Your rule files and memory, old notes flagged |
| 🔎 Uses what people built | Finds popular, active skills and repos (Reddit, Hacker News, GitHub), safety-scans them, installs them project-only |
| ✅ One tap to approve | A keep/drop screen with one GO button. Nothing runs before it |
| 🛑 Rules in code | Task order, check gates, retry cap and finish gate are enforced by a script, not a prompt |
| 🪙 Tokens and cost | Real token counts from the host, API-price cost, usage left and refill time |
| 🌱 Growth mode | Weekly experiments; every post needs your tap |
| 🔬 Research mode | Dated sources checked against a freshness rule for the field |
| 📜 Logs everything | Every action and refusal, in a plain HTML report |
A plan gate and run recorder for coding agents. You write a plan as a dependency graph. A small Python script checks the plan and refuses rule breaks. It also records every run.

What the code enforces
These rules live in graph.py, not in a prompt. The model cannot skip them. A refused action exits with code 3 and prints one line saying why and what to do. Other codes: 2 is bad input, and 1 is a failed validate (bad plan) or failed quality run.
- A plan with unknown, self or cyclic dependencies is rejected.
- A node cannot start while a dependency is unfinished.
- A node cannot start after it used all its attempts. The default cap is 2 retries.
- A node with
--check cannot complete unless the check passes. The script runs the check itself. A failed check marks the node failed.
- A run cannot finish as complete while nodes are open or the last quality run failed.
What the code does not enforce: that the host runs ready nodes in parallel, or that the model does good work. The script only records and refuses. Parallel runs need a host with subagents.
Preflight scan
graph.py preflight --needs github,deploy scans your machine before planning. It checks which CLIs are installed (git, gh, vercel, supabase, node, docker and others), whether gh, vercel and supabase are logged in, and what you can use to verify work (headless browser, simulators). It picks the best tool for each job you name. The result is cached in .graph/preflight.json.
It records names and yes or no answers only. It parses MCP config files but keeps only server names, and never stores or prints env values or tokens. Account names are shown only with --with-accounts.
Install
On Claude Code, the plugin is the first choice. Two commands:
claude plugin marketplace add gwaghmar/graph
claude plugin install graph@graph-skill
For any other host, or as a fallback, use the installer. It needs Node 18 or newer. The runtime needs Python 3.9 or newer.
npx graph-skill install # this project
npx graph-skill install --global # your home folder
It copies one skill folder to .claude/skills/graph and .agents/skills/graph. It also cleans up files from 0.x installs. Other commands: update, uninstall, doctor. Each takes --global.
Quick example