doughnut: Skill for Claude Code

.agents/skills/story-decomposition/SKILL.md

story-decomposition is a skill for Claude Code, Codex from nerds-odd-e/doughnut. It costs 56 tokens per session (1,431 once invoked), scanned A, original, MIT.

A product-planning skill that breaks a broad problem into ordered user stories, with rough effort and learning assumptions. It first clarifies who benefits, the current problem, the desired result, and constraints.

In plain words
What is it for?
Use it to define a product problem, compare smaller or manual alternatives, identify the riskiest assumption, and choose an initial story to investigate.
Why use it?
It helps teams choose what to build first when the outcome or boundaries are unclear, instead of jumping straight to a proposed solution. It produces a planning seed rather than executable code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is nerds-odd-e/doughnut's own configuration. It tells Claude Code and Codex how to work on doughnut itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything doughnut configures →

Reuse

Borrowing it

Nothing to install: this file belongs to nerds-odd-e/doughnut. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/nerds-odd-e/doughnut/main/.agents/skills/story-decomposition/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/nerds-odd-e/doughnut

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/nerds-odd-e/doughnut/story-decomposition.svg)](https://agentmods.dev/skills/nerds-odd-e/doughnut/story-decomposition)
Your own site
<a href="https://agentmods.dev/skills/nerds-odd-e/doughnut/story-decomposition"><img src="https://agentmods.dev/badge/skills/nerds-odd-e/doughnut/story-decomposition.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,431 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.00056 $0.01431
Opus 5 $0.00028 $0.00715
Sonnet 5 $0.00011 $0.00286
Haiku 4.5 $0.00006 $0.00143

Measured yesterday against content hash e103114aee31, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

story-decomposition 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 yesterday.

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.

.agents/skills/story-decomposition/SKILL.md · 193 lines

How it starts

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

<input_gate> Use this skill when at least one is true:

  • the beneficiary, problem, desired effect, or value is unclear;
  • the request prescribes a solution without establishing why it is needed;
  • multiple product outcomes or story boundaries must be chosen;
  • the highest-value or highest-learning first increment is disputed.

For selected stories, use story-refinement to clarify goal, scope, and key examples; use slice-planning once one story is understood. </input_gate>

<required_human_decisions> Before writing the seed, use an explicit answer the human already gave or ask the human to accept/revise your proposed answer for:

Decision Required answer
Beneficiary Who experiences the problem or evaluates the outcome?
Current problem What happens now, including the workaround?
Desired effect What observable change would be worth having?
Value now Why act now rather than defer or do nothing?
Simpler alternative What is the strongest smaller, manual, or existing-tool option, and why is it insufficient?
Highest learning Which assumption should the first story test?
Constraints Which boundaries are problem facts rather than proposed design?
  • Do not repeat questions already answered.
  • Ask only questions whose answers can change story selection or order.
  • Ask at most three closely related questions per turn.
  • State the current hypothesis and recommended answer with each question.
  • If competing answers materially change the decomposition, stop and wait for the human instead of choosing silently. </required_human_decisions>
For <beneficiary>, <current problem> should change to <desired effect>, within
<genuine constraints>.

Evaluate these options explicitly:

  1. Do nothing or defer.
  2. Make a smaller behavior change.
  3. Use a manual or existing-tool workflow.
  4. Pursue the requested direction.

Recommend one. Record the evidence, assumptions, and why the strongest rejected alternative is insufficient.

  1. Name one user or stakeholder outcome.
  2. Apply the 3V gate in problem-decomposition.mdc; reject failures.
  3. State how the beneficiary evaluates the outcome.
  4. State its user value or the consequential assumption it tests.
  5. Name only genuine product prerequisites.
  6. State the value that remains if later stories are cancelled and any safety condition this story must satisfy on its own.

Do not add file-level tasks, technical layers, APIs, or implementation design. Acceptance examples are optional here; include one only when it changes the story boundary.

A seed is a story's home, not a feature boundary. Frame stories as user journeys that achieve a goal across related features when needed. Keep each story's requirements in one home seed and link from related seeds instead of duplicating them. Decompose only enough candidates for the current value or learning question; do not exhaust a feature for completeness.

  • Record band, confidence, and assumptions.
  • Split a likely larger-than-L candidate using an allowed splitting move.
  • Order by user value, then learning value, then genuine prerequisites.
  • Move a later story earlier when it delivers more value or tests a more consequential assumption sooner.
  • List stories in first-to-drop order for scope reduction.

Read the full file on GitHub · 193 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. yesterday Changed · +1 lines · -3 tokens per session e103114aee31
  2. 2d ago First seen · 192 lines · 59 tokens per session scan A 83f4a3b03dda

Subscribe to this mod's changes

story-decomposition is a skill published in the GitHub repository nerds-odd-e/doughnut (49 stars, last pushed yesterday), licensed MIT. It adds 56 tokens to every session and 1,431 once invoked, about $0.0003 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-09-05.

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

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens