aiagent: Skill for Claude Code

.claude/skills/refine-story/SKILL.md

refine-story is a skill for Claude Code from drujensen/aiagent. It costs 53 tokens per session (387 once invoked), scanned A, original, MIT.

An interactive story-clarification workflow that examines a codebase, asks focused questions, and produces a detailed user story. The result includes acceptance criteria, boundaries, constraints, and relevant code to read.

In plain words
What is it for?
Use it to turn a rough feature request into a testable plan for implementation. It helps define what is included, what is excluded, and how completion will be checked.
Why use it?
It removes guesswork before development by resolving missing requirements and showing how the request relates to existing code.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

This is drujensen/aiagent's own configuration. It tells Claude Code how to work on aiagent 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 aiagent configures →

Reuse

Borrowing it

Nothing to install: this file belongs to drujensen/aiagent. 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/drujensen/aiagent/main/.claude/skills/refine-story/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/drujensen/aiagent

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/drujensen/aiagent/refine-story/github.svg)](https://agentmods.dev/skills/drujensen/aiagent/refine-story)
Your own site
<a href="https://agentmods.dev/skills/drujensen/aiagent/refine-story"><img src="https://agentmods.dev/badge/skills/drujensen/aiagent/refine-story/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 refine-story

Your own site · 80×15
<a href="https://agentmods.dev/skills/drujensen/aiagent/refine-story"><img src="https://agentmods.dev/badge/skills/drujensen/aiagent/refine-story.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 387 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.00053 $0.00387
Opus 5.5 $0.00021 $0.00155
Sonnet 5.5 $0.00011 $0.00077
Haiku 4.5 $0.00005 $0.00039

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

Security

Grade A, and why

refine-story 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.

.claude/skills/refine-story/SKILL.md · 39 lines

What it actually says

Story Refinement

Refine the following story:

Instructions

You are running an interactive Story Refinement session using the story-refiner agent.

Step 1: Codebase Exploration Use the Agent tool with subagent_type: "story-refiner" and pass it the story description. Ask it to:

  1. Explore the relevant parts of the aiagent codebase
  2. Generate a focused batch of 3–6 clarifying questions — not open-ended brainstorming, specific questions with clear answers

Step 2: Present Questions Present the questions to the user and collect answers.

Step 3: Iterate Pass the answers back to the story-refiner agent. Ask it to:

  • Either generate a follow-up batch of questions (if unknowns remain)
  • Or produce the final Refined Story and Relevant Codebase Context output

Step 4: Output When the story-refiner declares the story complete, present the full output to the user:

  • Refined Story (Goal, Acceptance Criteria, Scope Boundaries, Known Constraints, Resolved Unknowns, Definition of Done)
  • Relevant Codebase Context (table of files/services/patterns the architect and developer need to read)

Important

  • The story-refiner does NOT write code — it only asks questions and synthesizes answers
  • This skill is interactive — loop with the user until the story is complete
  • The output of this skill is the input to /design-review
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 · 39 lines · 53 tokens per session scan A 7534fb42571e

Subscribe to this mod's changes

refine-story is a skill published in the GitHub repository drujensen/aiagent (5 stars, last pushed 2mo ago), licensed MIT. It adds 53 tokens to every session and 387 once invoked, about $0.0002 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-10-03.