AGENT SKILL

ironflow

Entry point for building on the Ironflow workflow engine. Use for setting up an Ironflow project (server + worker), writing a WorkflowHandler, writing a custom Operation, testing a workflow end to end, reviewing a handler, upgrading the ironflow crates and migrating the code, or auditing existing code against the current Ironflow idioms. Trigger on "ironflow", "workflow handler", "ironflow setup", "ctx.shell", "ctx.agent", "approval gate", "upgrade ironflow", "bump ironflow", "créer un workflow ironflow", "mettre en place ironflow", "mettre à jour ironflow", "migrer ironflow".

License 许可
MIT
最近更新
2026-11-04
Stars
★ 2
Forks
1

01 前言 Front Matter

name
ironflow
description
Entry point for building on the Ironflow workflow engine. Use for setting up an Ironflow project (server + worker), writing a WorkflowHandler, writing a custom Operation, testing a workflow end to end, reviewing a handler, upgrading the ironflow crates and migrating the code, or auditing existing code against the current Ironflow idioms. Trigger on "ironflow", "workflow handler", "ironflow setup", "ctx.shell", "ctx.agent", "approval gate", "upgrade ironflow", "bump ironflow", "créer un workflow ironflow", "mettre en place ironflow", "mettre à jour ironflow", "migrer ironflow".
argument-hint
[setup|workflow|operation|test|review|upgrade|audit] [name|version]

03 SKILL.md 正文

Ironflow

Routes to one sub-skill per verb. Arguments: $ARGUMENTS.

Route

Verb Load Purpose
setup skill ironflow:setup Scaffold a workspace (workflows lib, server, worker, hello workflow, e2e test)
workflow <name> skill ironflow:workflow Write a WorkflowHandler and register it
operation <name> skill ironflow:operation Write a custom Operation (API call tracked as a step)
test <workflow> skill ironflow:test Write an end-to-end test for a handler
review [file] agent ironflow:workflow-reviewer Review a handler for replay, naming and secret pitfalls
upgrade [version] skill ironflow:upgrade Bump every ironflow crate (latest by default), then migrate the code to that release
audit skill ironflow:upgrade Check existing code against the current idioms, without bumping

Invoke the sub-skill with the Skill tool, passing the remaining arguments (audit included, it selects the mode). For review, spawn the agent with the file path (or the handler name to locate).

No verb given

Detect the project state before asking anything:

# Is this an ironflow project?
grep -rl "ironflow-engine" --include=Cargo.toml . 2>/dev/null | head -3
# Which handlers exist?
grep -rn "impl WorkflowHandler for" --include=*.rs . 2>/dev/null | head -20
  • No ironflow-engine dependency anywhere: propose setup. Say what it creates in one line.
  • Dependency present: list the handlers found and propose workflow, operation, test or review. One question, not a menu of everything.
  • ironflow-engine in Cargo.lock older than cargo search ironflow-engine --limit 1: say so, and add upgrade to the proposal.

Conventions shared by every sub-skill

  • Never write a crate version by hand. Add dependencies with cargo add so the project picks the latest release.
  • Imports at the top of the file with use. No inline some::path::Type in bodies.
  • Every handler has a typed input struct deriving serde::Deserialize and schemars::JsonSchema, exposed through input_schema(), read with ctx.input::<T>().
  • Every handler is added to handlers() in the workflows crate. That one list feeds the server and the worker.
  • After workflow finishes, offer the review: "Run the workflow reviewer on this handler?" Do not run it without asking.

04 同仓库更多 Skills

ThomasTartrau
ThomasTartrau/ironflow

workflow

Write an Ironflow WorkflowHandler - typed input schema, steps (shell, http, agent, approval, human input, signal, decision, sub-workflow, parallel), registration in handlers(). Loaded by the ironflow hub for the workflow verb.

★ 2
ThomasTartrau
ThomasTartrau/ironflow

upgrade

Upgrade the Ironflow crates of a project and migrate its code, or audit existing code against the current Ironflow idioms. Reads the changelog between the installed and the target release, maps every change to the project's code, then proposes or applies the migrations. Loaded by the ironflow hub for the upgrade and audit verbs.

★ 2
ThomasTartrau
ThomasTartrau/ironflow

test

Write an end-to-end test for an Ironflow workflow handler - real Engine, InMemoryStore, RecordReplayProvider fixtures, assertions on run status and step names. Loaded by the ironflow hub for the test verb.

★ 2
ThomasTartrau
ThomasTartrau/ironflow

setup

Scaffold a new Ironflow project - a Cargo workspace with a workflows lib, an API server binary, a worker binary, a hello workflow and its end-to-end test. Loaded by the ironflow hub for the setup verb.

★ 2
ThomasTartrau
ThomasTartrau/ironflow

operation

Write a custom Ironflow Operation - an integration (GitLab, Slack, any HTTP API) executed as a tracked step through ctx.operation(). Loaded by the ironflow hub for the operation verb.

★ 2
ThomasTartrau
ThomasTartrau/ironflow

ops-crate

Generate a new ops/xxx crate for an external service integration. Identifies the right pattern (A=wrapper, B=HTTP direct, C=macro), scaffolds the full structure, and runs the quality checklist. Trigger on "ops crate", "new ops", "creer un crate ops", "add ops/xxx", "nouveau crate ops", "ironflow ops".

★ 2