graph-engineering

Installation
SKILL.md

Graph engineering

Four steps, in order. Each one needs the one before it.

Step Skill Done when
1. Make it a state machine loop-to-machine (existing code), build-machine (from scratch, TypeScript), or generate-machine (from scratch, when the spec fits JSON) Rules are guards and the sentinel is unreachable (canReach). From existing code: the parity report has no unreviewed regressions. From scratch: every invariant is proved complete or listed as not proved, or every verifyAgentConfig gate passes
2. Add traces add-traces Every run leaves a stamped log thread that replays to its final state
3. Add evals add-evals Evals per state at the cheapest level, an objective, baseline numbers per split
4. Self-improve (experimental) improve-machine A pull request with one policy change and its held-out scorecard, or a report that none helped

Find where the project is

Check in this order and start at the first step that is not done:

  1. Does the code path production actually runs go through a machine (setupAgent, createMachine, an AgentWorkflowConfig)? Follow the route or entry point to the model call; a machine that nothing calls does not count. If the path is a loop or ad-hoc code, step 1.
  2. Do runs persist to an event log store with a declared machine version and a metadata stamp? If not, step 2.
  3. Is there an objective over ground truth, and evals that name the states they cover? If not, step 3.
  4. Otherwise, step 4, which is experimental: say so when you route there. A machine with no decision point (a tool loop, a scheduler: the model picks tools inside one text request) still goes to step 4: improve-machine's "No decision points" branch, which turns traces into approval-rule, cap, and request-wording proposals.
Installs
2
Repository
statelyai/agent
GitHub Stars
501
First Seen
Nov 5, 2026