story-workflow

story-workflow is a skill for Claude Code from MostAshraf/ai-sdlc-harness. It costs 99 tokens per session (930 once invoked), scanned A, original, MIT.

A skill for improving user stories and other work items through analysis, discussion, restructuring, and technical grooming. A user story is a short description of a feature from the user's point of view.

In plain words
What is it for?
It is for analyzing, refining, improving, or grooming stories in systems such as Jira, GitHub, GitLab, Azure DevOps, or local files.
Why use it?
It helps turn incomplete or unclear requests into work items that developers and product owners can understand and verify.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions subagents.

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 ai-sdlc-harness plugin — 8 skills, 4 commands, 3 agents, 4 hooks shipped together

Good fit It is for analyzing, refining, improving, or grooming stories in systems such as Jira, GitHub, GitLab, Azure DevOps, or local files.

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 MostAshraf/ai-sdlc-harness
Claude Code
/plugin install ai-sdlc-harness

Made for: Claude Code.

Or install ai-sdlc-harness, the plugin that ships this one along with the rest of its 8 skills, 4 commands, 3 agents, 4 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/mostashraf/ai-sdlc-harness/story-workflow/github.svg)](https://agentmods.dev/skills/mostashraf/ai-sdlc-harness/story-workflow)
Your own site
<a href="https://agentmods.dev/skills/mostashraf/ai-sdlc-harness/story-workflow"><img src="https://agentmods.dev/badge/skills/mostashraf/ai-sdlc-harness/story-workflow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for story-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/mostashraf/ai-sdlc-harness/story-workflow"><img src="https://agentmods.dev/badge/skills/mostashraf/ai-sdlc-harness/story-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 930 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.
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.00099 $0.00930
Opus 5 $0.00049 $0.00465
Sonnet 5 $0.00020 $0.00186
Haiku 4.5 $0.00010 $0.00093

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

Security

Grade A, and why

story-workflow 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 10d 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/story-workflow/SKILL.md · 77 lines

How it starts

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

story-workflow — story-quality refinement (PO-facing)

Improves work-item quality through four commands. Read-mostly: it fetches a work item, helps shape it, and — only with the user's consent — posts the result back as a comment. It never starts a dev run and never touches ai/<run>/ run state.

Every harness call is ${CLAUDE_PLUGIN_ROOT}/bin/harness <verb> … — the full path, run by you via Bash (a bare harness is not on PATH, and shell variables set in one Bash call do not persist to the next). Non-zero exit = refused; read the JSON error and act on it.

Usage

/story-workflow <command> <work-item-id> [session-notes…]

<command> is one of analyze, refine, improve, groom. <work-item-id> is whatever the configured provider uses — a number (ADO / GitHub / GitLab), a key (PROJ-123, Jira), or, for local-markdown, the story's id (the file stem inside provider.stories_dir, e.g. WORK-7 for WORK-7.md — not a path). Any trailing tokens are session notes, passed through to improve and refine.

Routing

command file one-line
improve commands/improve.md adaptive single-pass: assess → gap-fill → draft (the recommended default)
analyze commands/analyze.md standalone readiness report with flags
refine commands/refine.md slow, section-by-section interactive restructure
groom commands/groom.md codebase-aware per-repo technical notes

Parse $ARGUMENTS: the first token is the command, the second is the work-item id, the rest are notes. If the command is missing or unknown, print the usage line plus the table above and stop — do not guess. If the id is missing, ask for it — never proceed without one. Then read the one matching command file and follow it (context economy: load a single command file, not all four).

Before routing

  1. Confirm the workspace is bootstrapped: .claude/context/provider.yaml must exist. If it doesn't, /init-workspace never ran — send the user there and stop. The active provider is resolved from config by the harness; you never hand-pick it.
  2. The recipe for fetching a work item and posting a result back — for every provider and both transports — lives once in shared/provider-io.md. Read it; the commands cite it instead of repeating it.
  3. Domain and convention context (for improve and groom) lives once in shared/context.md.

Read the full file on GitHub · 77 lines

Files

What ships with it

9 files 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. 10d ago First seen · 77 lines · 99 tokens per session scan A c645fdc9cb2d

Subscribe to this mod's changes

story-workflow is a skill published in the GitHub repository MostAshraf/ai-sdlc-harness (19 stars, last pushed 14d ago), licensed MIT. It adds 99 tokens to every session and 930 once invoked, about $0.0005 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.