Derive workflows
SkillAI & modelsBuild, explain, preview, repair, or run Derive graphs and bounded loops. Use when someone wants an agent workflow, graph, loop, human-decision path, multi-context plan, or a clear account of what will happen before work runs. Skip ordinary one-step artifact creation.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Derive workflows skill
What this skill tells your AI
The instructions your AI receives, as published by derive-to/derive in packages/cli/skills/derive-workflows/SKILL.md and read by ahel’s review.
Turn an outcome into a graph people can understand and an authorized local harness can run. Derive is the persistent working layer; Codex, Claude, or another harness does the work.
One user-facing gate
Preview includes structural validation and scenario checks. Never create separate Explain, Validate, and Preview steps. Present one result: Ready to run or Needs changes. Only explicit run intent starts context sessions. Authored human gates inside the workflow still pause sensitive actions later.
Author or repair
- Start from the outcome, evidence of completion, actors, external effects, loop limits, and decisions that genuinely need a person. Ask only questions whose answers materially change safety or behavior.
- Reuse the smallest shape that fits: linear handoff, fan-out/join, human decision, router, or bounded evaluator–optimizer loop. Do not add a graph to a one-step task.
- Start cold with
derive init <dir> --template workflow --title "<outcome>", or repair the existing artifact in place. Author the runnable topology inworkflow-definition: context bindings, routes, bounds, effects, gates, forbidden actions, and scenarios. The companionbundle-manifestholds #799's human-readable labels and live working state. A graph may start withmembers:[]; add real result artifacts to members as context sessions answer. Never invent placeholder artifact ids. Generate one concise, editablenotefor every visible node from its job, instruction, and result. The note should stand alone in plain language; do not make the reader assemble it from workflow metadata. - Read references/protocol.md for the exact contract. Run
derive workflow sync <file>after topology edits. It projects definition nodes/routes into the visible graph while preserving labels, state, confidence, and review metadata, then runs the one Preview gate. Do not manually duplicate topology edits. - Repair every blocker and rerun sync until it says
Ready to run. Usederive workflow preview <file>when you only need a read-only check. Preview is validation. - Publish the artifact. Keep #799's Now view legible; precise bindings and policies belong in Advanced/source, not in the cold-start briefing. Publishing the workflow, its result artifacts, and honest run-state updates to Derive is the default—not a reason to ask for another decision.
Run
Read references/runtime.md. The harness resolves ready nodes and uses
Derive's existing context use calls. Do not invent a graph-run MCP family, queue, lease model,
progress protocol, or artifact store.
One context session is one node attempt. A follow-up continues that attempt. A retry or quality iteration starts a new attempt with a new dedupe key and a preserved causal link. Project session truth into the authored graph; never infer urgency, confidence, or a need for human help from silence or elapsed time.
Quality bar
- Stable IDs survive layout and wording changes.
- Every visible node has one short, plain-language note generated by the authoring agent and editable by a person.
- Every diagram has one explicit entry and reachable terminal outcome; every context node names its context, instruction, and expected result.
- Every cycle has a measurable goal, evaluator, maximum attempts, stagnation behavior, and human stop.
- Derive artifact publication and run-state updates use an idempotency contract and proceed by default. A consequential write/message/spend/access effect outside Derive reuses a named human decision unless the person has explicitly authorized autonomous execution.
- Scenarios cover the expected route, a context failure, and every human interrupt.
- Preview distinguishes guaranteed policy from illustrative paths; it never promises exact model or tool behavior.
Boundary
The workflow definition is portable descriptive input to a harness, not server-side compute. Derive persists topology, state, artifacts, review, and receipts. The harness chooses concrete models, performs tool calls, and reports results through context sessions.
Signals
- GitHub stars
- 28
- Forks
- 3
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
derive-workflows- Source
- github.com/derive-to/derive