story-orchestrator

story-orchestrator is a skill for Claude Code, Codex from guyroyse/chiastic-coding-plugin. It costs 32 tokens per session (841 once invoked), scanned A, original, MIT.

A workflow coordinator that implements behaviors from a Gherkin feature file using TDD pair programming. Gherkin is a plain-language format for describing software behavior, while TDD means writing a failing test, making it pass, and then improving the code.

In plain words
What is it for?
Use it when you have a .feature file describing behavior to build. It creates tasks, runs red/green/refactor cycles, and reports the completed work.
Why use it?
It breaks a feature into ordered behaviors and guides each one through repeated test-and-code cycles. This provides a consistent path from scenarios to implementation.

Skill for Claude CodeCodex

Part of the chiastic plugin — 5 skills shipped together

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/guyroyse/chiastic-coding-plugin/story-orchestrator
Any agent
npx skills add guyroyse/chiastic-coding-plugin --skill story-orchestrator
Clone the repo
git clone --depth 1 https://github.com/guyroyse/chiastic-coding-plugin

Made for: Claude Code, Codex.

Or install chiastic, the plugin that ships this one along with the rest of its 5 skills.

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 story-orchestrator

README.md
[![agentmods](https://agentmods.dev/badge/skills/guyroyse/chiastic-coding-plugin/story-orchestrator.svg)](https://agentmods.dev/skills/guyroyse/chiastic-coding-plugin/story-orchestrator)
Your own site
<a href="https://agentmods.dev/skills/guyroyse/chiastic-coding-plugin/story-orchestrator"><img src="https://agentmods.dev/badge/skills/guyroyse/chiastic-coding-plugin/story-orchestrator.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 841 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.00032 $0.00841
Opus 5 $0.00016 $0.00420
Sonnet 5 $0.00006 $0.00168
Haiku 4.5 $0.00003 $0.00084

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

Security

Grade A, and why

story-orchestrator 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/pair.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/story-orchestrator/SKILL.md · 69 lines

How it starts

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

Story Orchestrator

You orchestrate a TDD pair programming workflow. You receive a Gherkin feature file, decompose it into behaviors, and drive a pair of agents through red/green/refactor cycles for each one.

Process

  1. Parse $ARGUMENTS to extract the feature file path and any optional flags (--max-cycles <n>, --no-squash). Flags not provided should use defaults.
  2. Decompose the scenarios into discrete behaviors to implement — a scenario may yield one or more tasks.
  3. Create a task for each behavior using TaskCreate, with dependencies so they are worked in order.
  4. For each behavior, in sequence: a. Update the task to in_progress. b. Run pair.js with the behavior description. c. Parse the JSON result from the last line of output. Handle based on the status field (see Handling results below).
  5. When all tasks are complete, report a summary of what was built.

Running the pair

Invoke the pair script from the skill directory:

${CLAUDE_SKILL_DIR}/scripts/pair.js --behavior "<behavior description>" [--maxCycles <n>] [--noSquash]

Pass through --maxCycles and --noSquash if they were provided in $ARGUMENTS. Otherwise, omit them and let pair.js use its defaults.

The script manages two agents (Alice and Bob) through red/green/refactor cycles. It returns when the test writer signals there are no more tests to write for the behavior, or when max cycles is reached.

The script logs progress to stdout as it runs (cycle numbers, agent turns, commit messages). You don't need to parse this — it's useful context if something goes wrong and you need to report to the user.

The script outputs a JSON result as its last line:

{ "behavior": "...", "status": "complete", "commits": 3, "error": null }

The status field will be one of:

  • complete — the behavior was fully implemented.
  • max-cycles — the pair ran out of cycles without completing.
  • error — the pair encountered a failure (see error field for details).

Read the full file on GitHub · 69 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 · 69 lines · 32 tokens per session scan A c1605e075825

Subscribe to this mod's changes

story-orchestrator is a skill published in the GitHub repository guyroyse/chiastic-coding-plugin (11 stars, last pushed 5mo ago), licensed MIT. It adds 32 tokens to every session and 841 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.