doughnut: Skill for Claude Code

.agents/skills/dough-story-refinement/SKILL.md

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

A story-refinement workflow for agreeing on a selected product story's goal, scope, and key examples. A product story is a small description of a user or business need; the details are recorded in its designated source file.

In plain words
What is it for?
Use it to clarify one selected story or several related stories before planning work. It can hand an understood story to the project's planning workflow when the user explicitly asks for that.
Why use it?
It prevents coding or detailed planning from starting while the requested outcome or boundaries are still unclear. It also separates clarification from execution planning.

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/dough-story-refinement/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 dough-story-refinement

README.md
[![agentmods](https://agentmods.dev/badge/skills/nerds-odd-e/doughnut/dough-story-refinement/github.svg)](https://agentmods.dev/skills/nerds-odd-e/doughnut/dough-story-refinement)
Your own site
<a href="https://agentmods.dev/skills/nerds-odd-e/doughnut/dough-story-refinement"><img src="https://agentmods.dev/badge/skills/nerds-odd-e/doughnut/dough-story-refinement/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 dough-story-refinement

Your own site · 80×15
<a href="https://agentmods.dev/skills/nerds-odd-e/doughnut/dough-story-refinement"><img src="https://agentmods.dev/badge/skills/nerds-odd-e/doughnut/dough-story-refinement.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,592 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.00116 $0.01592
Opus 5.5 $0.00046 $0.00637
Sonnet 5.5 $0.00023 $0.00318
Haiku 4.5 $0.00012 $0.00159

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

Security

Grade A, and why

dough-story-refinement 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 9d ago.

The scan reads SKILL.md. This mod also ships 13 executable files (scripts/established-preparation.mjs, scripts/preparation-announcement.mjs, scripts/preparation-assignment-abandon.mjs, …), 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.

.agents/skills/dough-story-refinement/SKILL.md · 136 lines

How it starts

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

Story refinement

Build shared understanding of one selected story, or several related stories whose boundaries need discussion. Record Goal, Scope, and Key examples in each story's seed.

Choose the workflow

If the parent problem, candidate selection, or story ordering needs reconsideration, use dough-story-decomposition. For smaller or clearer slices, use the project's execution-plan refinement workflow on the existing plan.

A refinement invocation authorizes slice planning of its story and landing the completed preparation under preparation journey; it authorizes no execution. Continue into planning without repeating answered questions.

Resolve required context

Identify this project's root, selected story links and seeds, and relevant prior decisions. When a seed is missing, resolve the canonical seed directory, ID and filename conventions, required metadata, and stable story-anchor convention. Resolve project paths from that repository, not this skill's location.

Resolve the project's slice-planning workflow for the continuation, and ADR context only when the architectural concern requires it under the reference below. If required context or a linked dependency is unavailable, name what is missing and stop the affected activity. Do not invent project paths or decisions.

Refine and continue

Read and follow planning scope and lifecycle for the conversation, scope decisions, optional UI and architecture detail, seed updates, and cleanup after implementation. When your instruction carries an established preparation, follow established preparation instead of the workspace and announcement steps below. When the request explicitly selects one-shot (--one-shot) for a queued story, follow one-shot refinement instead of the announcement step and the default disposition. Before writing to a story's seed, establish or reuse the required workspace under preparation workspace, then, for a queued story, announce the preparation assignment; refinement discussion and clarifying questions need neither on their own. After the seed or correction-home write records goal, scope, and key examples for a work item with a known identity, apply record preparation facts.

Read the full file on GitHub · 136 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. 9d ago Changed · +1 lines a4aa8fea7def
  2. 18d ago Changed · +15 lines · +25 tokens per session 617d224f8266
  3. 26d ago Changed · +46 lines 292914f56b5d
  4. 28d ago Changed · +6 lines · +30 tokens per session a75bfdea6b64
  5. 29d ago Changed · +10 lines 502bb354baa5
  6. 1mo ago Changed · +1 lines 1759964980ee
  7. 1mo ago Changed · +3 lines 2bfc732eaab1
  8. 1mo ago Changed · +4 lines 4948c9d6405c
  9. 1mo ago Changed · +2 lines · +6 tokens per session cb90572f878c
  10. 1mo ago First seen · 48 lines · 55 tokens per session scan A fc700c10fe5e

Subscribe to this mod's changes

dough-story-refinement is a skill published in the GitHub repository nerds-odd-e/doughnut (50 stars, last pushed today), licensed MIT. It adds 116 tokens to every session and 1,592 once invoked, about $0.0005 per session on Opus 5.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-08.