Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Writes Relayflows v2 flows in TypeScript or YAML/JSON, covering run/llm/agent steps, verification gates, and flows check/run/resume.
14% 100%+86 ptsof test cases passed
Passed 21 of 21 test cases with the skill, and 3 of 21 without it.
3 of 3 safety checks passed
Not used yet
Relayflows turns a coding-agent task into steps a journal can inspect, verify, and resume. A flow is data (YAML/JSON) or code (TypeScript) that compiles to the same journal-backed kernel spec. Every effect is journaled before it's treated as real — a journal write that fails fails the step, with no silent fallback.
Name collision warning. This repo also has skills for an older, unrelated engine that is also casually called "Relayflow" (singular) — @relayflows/core's WorkflowBuilder, a chained builder (workflow('name').pattern('dag').agent(...).step(...).run()). That's writing-agent-relay-workflows and migrating-persona-to-relayflow's territory. This skill is the v2 engine: @relayflows/surface's flow() function and the YAML/JSON dialect compiled by @relayflows/sdk. If you see .pattern(, .agent( as a chained builder call, or ctx.workflow.run(), you're in the other engine — stop and use one of those skills instead.
.flow.ts or .flow.yaml/.flow.json for the flows CLI (package @relayflows/sdk, binary name flows).run (shell), llm (bare model call), or agent (harnessed coding agent in a workspace).cli/model for an agent or llm step, in either language.REFUSED [...] message from flows check or flows run.Three step verbs, one per rung — never more (packages/sdk/src/spec.ts, export type StepType = 'deterministic' | 'llm' | 'agent';):
run / deterministic — a shell command. No model. Implicit gate is exit_code == 0.llm / llm — a bare model call. Prompt in, verified output out. No workspace, no tool use.agent / agent — a harnessed coding agent in a workspace. Returns { summary, artifacts }, not raw text.Plus four resident verbs that aren't ladder rungs: human (durable approval), dispatch (hand off to a child flow), done (typed finish), and in YAML, on/triggers (event entry points — out of scope for this skill).
Most flows only need run and llm. Climb to agent once a step needs hands on a real workspace.
import { flow } from '@relayflows/surface';
export default flow('hello', async (f) => {
const greeting = await f.run('echo "Hello from Relayflows"');
console.log(greeting.trim());
const answer = await f.agent('greeter', {
task: 'Reply with one short hello sentence. Do not use tools or modify files.',
cli: 'claude',
Next to this one in the catalogue, plus more from the same author.