workflow-authoring

workflow-authoring is a skill for Claude Code from AxGord/claude-workflow. It costs 31 tokens per session (2,864 once invoked), scanned A, original, MIT.

A reference for writing workflow files in YAML, a text format used to describe structured settings and steps.

In plain words
What is it for?
Use it when creating or debugging workflows that prompt an agent, run shell commands, fetch data, run tests, or route between steps.
Why use it?
It explains how workflow states, reloads, routing, and errors behave so definitions work as expected.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: reads .claude/ paths.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the workflow plugin — 28 skills, 2 hooks, 1 MCP server shipped together

Good fit Use it when creating or debugging workflows that prompt an agent, run…

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add AxGord/claude-workflow
Claude Code
/plugin install workflow

Made for: Claude Code.

Or install workflow, the plugin that ships this one along with the rest of its 28 skills, 2 hooks, 1 MCP server.

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-authoring

README.md
[![agentmods](https://agentmods.dev/badge/skills/axgord/claude-workflow/workflow-authoring.svg)](https://agentmods.dev/skills/axgord/claude-workflow/workflow-authoring)
Your own site
<a href="https://agentmods.dev/skills/axgord/claude-workflow/workflow-authoring"><img src="https://agentmods.dev/badge/skills/axgord/claude-workflow/workflow-authoring.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,864 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00031 $0.02864
Opus 5 $0.00015 $0.01432
Sonnet 5 $0.00006 $0.00573
Haiku 4.5 $0.00003 $0.00286

Measured 7d ago against content hash 74241f3700b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

workflow-authoring scanned grade A with 1 finding 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 7d ago.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

**Health check polling**: `fetch(url, retry: 60x500ms)` → success → interact
templates/skills/workflow-authoring/SKILL.md · 213 lines

How it starts

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

Workflow Authoring Reference

Deployment & reload

  • Bundled templates load from templates/ next to the server's build/ (i.e. ${CLAUDE_PLUGIN_ROOT}/templates) — once, at server boot. Editing them does NOT hot-reload a running server.
  • Load order (later overrides earlier by workflow name): bundled templates/~/.claude/workflows/ → project .claude/workflows/.
  • ~/.claude/workflows/ and the project dir ARE fs.watch'ed; ANY .yaml change there triggers a FULL reload that also re-reads bundled templates. Hot-reload trick after editing bundled templates (no server restart): echo "# t" > ~/.claude/workflows/_trigger.yaml && sleep 1 && rm ~/.claude/workflows/_trigger.yaml, then verify via list (state counts change).
  • Active sessions keep their definition snapshot; only NEW start() sessions see reloaded workflows.

State Types

prompt (default) — Agent reads the prompt and acts. Standard behavior.

exec — Engine runs a shell command automatically. Agent doesn't participate.

run_tests:
  type: exec
  command: "npm test"
  cwd: "{{context.cwd}}"
  timeout: 30000
  env:
    CI: "true"
  on_success: analyze
  on_error: fix
  success_prompt: "Tests passed:\n{{stdout}}"
  error_prompt: "Tests failed (exit {{exit_code}}):\n{{stderr}}"
  context_set:
    last_test_output: "{{stdout}}"
  • env: — extra environment variables (map; values are templates), merged over the server's env
  • context_set: — after the action succeeds, render each value with the action result vars and store it in session context (e.g. last_test_output above becomes {{context.last_test_output}} in later prompts). Skipped entirely on failure.

fetch — Engine makes an HTTP request automatically.

check_api:
  type: fetch
  url: "http://localhost:8888/ping"
  method: GET
  timeout: 5000
  headers:
    Authorization: "Bearer {{context.token}}"
  body: '{"q": "{{context.query}}"}'
  retry:
    max: 60
    interval: 500
  on_success: ready
  on_error: wait
  success_prompt: "API ready: {{body}}"
  error_prompt: "Not responding: {{error}}"

Read the full file on GitHub · 213 lines

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. 7d ago First seen · 213 lines · 31 tokens per session scan A 74241f3700b8

Subscribe to this mod's changes

workflow-authoring is a skill published in the GitHub repository AxGord/claude-workflow (5 stars, last pushed 1mo ago), licensed MIT. It adds 31 tokens to every session and 2,864 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens