workflow-authoring

workflow-authoring is a skill for Claude Code, Codex from QuintinShaw/pi-dynamic-workflows. It costs 43 tokens per session (583 once invoked), scanned A, original, MIT.

A guide for writing, editing, reviewing, and debugging JavaScript workflows for pi-dynamic-workflows. It explains how to structure workflow metadata, phases, runtime behavior, model selection, retries, checks, and checkpoints.

In plain words
What is it for?
Use it when creating or changing workflow scripts, reviewing them, debugging them, or adding retries, gates, verification, loops, or checkpoints.
Why use it?
It helps keep workflow scripts compatible with the runtime and makes common lifecycle and quality concerns easier to handle.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating or changing workflow scripts, reviewing them, debugging them, or adding retries, gates, verification, loops, or checkpoints.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/quintinshaw/pi-dynamic-workflows/workflow-authoring
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.

Any agent
npx skills add QuintinShaw/pi-dynamic-workflows --skill workflow-authoring
Clone the repo
git clone --depth 1 https://github.com/QuintinShaw/pi-dynamic-workflows

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/quintinshaw/pi-dynamic-workflows/workflow-authoring.svg)](https://agentmods.dev/skills/quintinshaw/pi-dynamic-workflows/workflow-authoring)
Your own site
<a href="https://agentmods.dev/skills/quintinshaw/pi-dynamic-workflows/workflow-authoring"><img src="https://agentmods.dev/badge/skills/quintinshaw/pi-dynamic-workflows/workflow-authoring.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 583 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00043 $0.00583
Opus 5 $0.00022 $0.00292
Sonnet 5 $0.00009 $0.00117
Haiku 4.5 $0.00004 $0.00058

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

Security

Grade A, and why

workflow-authoring 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 12 executable files (examples/adversarial-verification.js, examples/bounded-semantic-retry.js, examples/classify-and-act.js, …), 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/workflow-authoring/SKILL.md · 31 lines

How it starts

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

Workflow authoring

Load this skill when workflow JavaScript changes. Running an existing workflow needs no authoring reference.

Choose a branch

Read only what the task needs:

Invariants

  • Start with literal export const meta = { name, description }; declare phases as an array of used { title } objects and enter each named phase.
  • Call agent() at least once, give every call a short unique label, and return plain JSON data explicitly.
  • Pair ordered results with stable work IDs before filtering. When one agent consumes another's selected result, include both its stable ID and actual data in the downstream prompt. Treat recoverable null as missing coverage and report it.
  • Bound fan-out, loops, retries, agents, and concurrency to the task. Treat invocation-level token and time caps as opt-in user constraints, not defaults.
  • Use log() for new code; console is compatibility-only.
  • Write plain JavaScript without imports or filesystem modules. Pass nondeterminism through args; Date.now(), Math.random(), and no-argument new Date() are unavailable.

Read the full file on GitHub · 31 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. 4d ago Changed da49f4c2e4ce
  2. 8d ago First seen · 31 lines · 43 tokens per session scan A 26d0eb7480de

Subscribe to this mod's changes

workflow-authoring is a skill published in the GitHub repository QuintinShaw/pi-dynamic-workflows (493 stars, last pushed 4d ago), licensed MIT. It adds 43 tokens to every session and 583 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

mcp-scripting

Write mcpScript JavaScript for discovering, inspecting, and calling MCP tools.

nicobailon/pi-mcp-adapter · 21 tokens

tmux-manual-qa

Run a single manual tmux-based QA scenario for the todo continuation feature against the real CLI (./pi-test.sh) in an interactive TUI. Captures scrollback, asserts deterministic pass/fail count markers, and cleans up test fixtures. Use only for the manual-qa milestone features.

code-yeongyu/senpi · 66 tokens

gpt-image-gen

MUST read before generating images. Detailed prompt-crafting guide for gpt-image models, covering tool routing (native imagegeneration server tool vs the generateimage tool), prompt structure from subject to background, verbatim text rendering, anti-patterns, and the revisedprompt feedback loop for iteration.

code-yeongyu/senpi · 63 tokens

openclaw-github-dedupe

Investigate a cluster of GitHub issues and PRs, determine canonical candidates, post duplicate/related status, preserve contributor credit, and execute cleanup actions. Supports autonomous mode for provided-link-only closeout, merge/fix follow-through, changelog, and post-merge issue/PR cleanup.

vincentkoc/dotskills · 68 tokens

tmux-lane-orchestrator

Manage one tmux agent lane from its matching ops pane, inspect live pane state and Codex logs on cold start, and produce concise manager summaries for OpenClaw and adjacent project work.

vincentkoc/dotskills · 46 tokens

pi-package-sandbox-test

Use when verifying that published Pi packages install and load for normal users, including pi.dev package compatibility checks, release validation, Daytona sandbox tests, and package installability audits.

spences10/my-pi · 40 tokens