dynamic-workflow-patterns

dynamic-workflow-patterns is a skill for Claude Code, Codex from alex-feel/claude-code-artifacts-public. It costs 160 tokens per session (11,118 once invoked), scanned A, original, MIT.

A guide to designing dynamic workflows for Claude Code, where several agent roles can divide work, review results, and recover from failures. It covers choosing a workflow shape, assigning models, and deciding how much work each agent handles.

In plain words
What is it for?
Planning multi-agent coding workflows, combining implementers with independent verifiers, routing tasks to models, settling review findings, and keeping long-running workflows accountable.
Why use it?
It helps avoid incomplete work, self-review bias, oversized tasks, and workflows that stop after an error or interruption.

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/alex-feel/claude-code-artifacts-public/dynamic-workflow-patterns
Any agent
npx skills add alex-feel/claude-code-artifacts-public --skill dynamic-workflow-patterns
Clone the repo
git clone --depth 1 https://github.com/alex-feel/claude-code-artifacts-public

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 dynamic-workflow-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/alex-feel/claude-code-artifacts-public/dynamic-workflow-patterns.svg)](https://agentmods.dev/skills/alex-feel/claude-code-artifacts-public/dynamic-workflow-patterns)
Your own site
<a href="https://agentmods.dev/skills/alex-feel/claude-code-artifacts-public/dynamic-workflow-patterns"><img src="https://agentmods.dev/badge/skills/alex-feel/claude-code-artifacts-public/dynamic-workflow-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 160 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 11,118 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.00160 $0.11118
Opus 5 $0.00080 $0.05559
Sonnet 5 $0.00032 $0.02224
Haiku 4.5 $0.00016 $0.01112

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

Security

Grade A, and why

dynamic-workflow-patterns 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.

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/library/dynamic-workflow-patterns/SKILL.md · 273 lines

How it starts

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

Dynamic Workflow Patterns

The Workflow tool description already teaches the script API, the opt-in rules, and the execution mechanics; every mention of those below is a one-line anchor, never a re-teach.

This skill adds what that description lacks: which pattern to pick, which agent roles to combine for each task family, which model to give each role, how large to cut each agent's unit of work, how to behave between launch and completion, and how to keep a workflow alive through server errors, stalls, and interruptions.

Why Single Contexts Fail

Pattern choice and prompt design follow from knowing which failure mode the workflow defends against, so diagnose the threat before picking the shape.

Agentic laziness. The model declares done after partial progress, for example addressing 35 of 50 items in a review. Counter: the deterministic script, not the model, decides when work is done -- explicit item lists, loop-until-done stop conditions, and a logged record of every dropped item.

Self-preferential bias. The model favors its own output when asked to verify or judge it. Counter: assign verification to agents that did not produce the work -- verifiers, refuters, skeptics, and judges who never grade their own attempt.

Goal drift. Fidelity to the objective decays across many turns and lossy compactions, dropping edge-case requirements and don't-do-X constraints. Counter: each subagent lives in a short fresh context with the objective restated verbatim in its prompt, the script pins the original goal in args so no compaction ever touches it, and the deterministic script body holds the authoritative item list, bracket, or rule set, which survives compaction because it lives in the persisted script text and is re-read in full on every relaunch, whether or not a single call replays from cache.

When Not to Use a Workflow

Workflows multiply token cost by the number of agents, so apply the does-it-really-need-more-compute test first: most routine coding tasks show none of the three failure modes, and for them the default harness is cheaper, faster, and just as correct. A routine change does not need a panel of five reviewers.

Read the full file on GitHub · 273 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 · 273 lines · 160 tokens per session scan A 5915e3ae0acd

Subscribe to this mod's changes

dynamic-workflow-patterns is a skill published in the GitHub repository alex-feel/claude-code-artifacts-public (6 stars, last pushed 8d ago), licensed MIT. It adds 160 tokens to every session and 11,118 once invoked, about $0.0008 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-31.

Related

Other skills, from other repositories