workflow-chain

workflow-chain is a skill for Claude Code, Codex from fuyuxiang/echo-agent. It costs 18 tokens per session (857 once invoked), scanned A, original, MIT.

A tool for connecting several skills or commands into named workflows. A workflow is a sequence of steps where later steps can use earlier results and conditions can control what happens next.

In plain words
What is it for?
Use it to automate multi-step routines such as gathering information, combining results into a brief, and delivering the final output through a channel.
Why use it?
It reduces repeated manual coordination between separate tasks while providing error handling and a defined execution order.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fuyuxiang/echo-agent/workflow-chain
Any agent
npx skills add fuyuxiang/echo-agent --skill workflow-chain
Clone the repo
git clone --depth 1 https://github.com/fuyuxiang/echo-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for workflow-chain

README.md
[![agentmods](https://agentmods.dev/badge/skills/fuyuxiang/echo-agent/workflow-chain.svg)](https://agentmods.dev/skills/fuyuxiang/echo-agent/workflow-chain)
Your own site
<a href="https://agentmods.dev/skills/fuyuxiang/echo-agent/workflow-chain"><img src="https://agentmods.dev/badge/skills/fuyuxiang/echo-agent/workflow-chain.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 857 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00018 $0.00857
Opus 5 $0.00009 $0.00428
Sonnet 5 $0.00004 $0.00171
Haiku 4.5 $0.00002 $0.00086

Measured 4d ago against content hash a52eb983a837, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

workflow-chain scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/workflow_engine.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/development/workflow-chain/SKILL.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Workflow Chain

Orchestrate multi-step workflows by chaining skills and actions.

Workflow Definition

Workflows are YAML files in ~/.echo-agent/workflows/:

name: morning-routine
trigger: cron "0 8 * * *"
steps:
  - id: get_weather
    skill: weather
    input: {location: "Beijing"}

  - id: get_todos
    skill: reminder
    action: due

  - id: compose
    skill: daily-briefing
    input:
      weather: "{{get_weather.output}}"
      todos: "{{get_todos.output}}"

  - id: deliver
    action: send
    channel: telegram
    content: "{{compose.output}}"

Security

Only run trusted workflow files. The engine runs the commands listed in the JSON workflow definition. Never run workflow files from untrusted sources (downloads, user uploads, model-generated content) without manual review.

Each command is parsed with shlex and executed as a single program with a fixed argument list — shell syntax is not interpreted. ;, &&, |, > and $(...) are passed through as literal arguments, so one step cannot chain into another command. A step that genuinely needs a pipeline or redirection has to ask for a shell explicitly:

{"command": "sh -c 'grep ERROR app.log | wc -l > count.txt'"}

Writing it that way keeps the intent visible in the workflow file instead of every step carrying implicit shell power.

Features

  • Variable interpolation: {{step_id.output}} references previous step results
  • Conditional steps: when: "{{get_weather.temp}} < 5"
  • Error handling: on_error: skip | abort | retry(3)
  • Parallel steps: parallel: [step_a, step_b]

Built-in Templates

Research Pipeline

name: research-pipeline
steps:
  - {id: search, skill: web-search, input: {query: "{{topic}}"}}
  - {id: extract, skill: web-extract, input: {urls: "{{search.top_urls}}"}}
  - {id: report, skill: deep-research, input: {content: "{{extract.output}}"}}

Morning Routine

name: morning-routine
trigger: cron "0 8 * * *"
steps:
  - {id: weather, skill: weather, input: {location: "Beijing"}}
  - {id: briefing, skill: daily-briefing}
  - {id: send, action: send, channel: auto, content: "{{briefing.output}}"}

Read the full file on GitHub · 116 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 116 lines · 18 tokens per session scan A a52eb983a837

Subscribe to this mod's changes

workflow-chain is a skill published in the GitHub repository fuyuxiang/echo-agent (988 stars, last pushed 4d ago), licensed MIT. It adds 18 tokens to every session and 857 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.