user-story-new

user-story-new is a command for Claude Code from matteocervelli/llms. It costs 10 tokens per session (601 once invoked), scanned A, original, MIT.

A user-story generator that turns a feature description into several small descriptions of what users need and why. INVEST is a checklist for making stories independent, negotiable, valuable, estimable, small, and testable.

In plain words
What is it for?
It helps ask clarifying questions, create 2–8 validated user stories, add technical notes, save YAML and Markdown files, and optionally create GitHub issues.
Why use it?
It removes the manual work of breaking a broad feature into clear development tasks and checking their quality.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

Good fit It helps ask clarifying questions, create 2–8 validated user stories, add technical notes, save YAML and Markdown files, and optionally create GitHub issues.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/matteocervelli/llms/user-story-new
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.

Clone the repo
git clone --depth 1 https://github.com/matteocervelli/llms

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 user-story-new

README.md
[![agentmods](https://agentmods.dev/badge/commands/matteocervelli/llms/user-story-new/github.svg)](https://agentmods.dev/commands/matteocervelli/llms/user-story-new)
Your own site
<a href="https://agentmods.dev/commands/matteocervelli/llms/user-story-new"><img src="https://agentmods.dev/badge/commands/matteocervelli/llms/user-story-new/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 user-story-new

Your own site · 80×15
<a href="https://agentmods.dev/commands/matteocervelli/llms/user-story-new"><img src="https://agentmods.dev/badge/commands/matteocervelli/llms/user-story-new.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 601 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.00010 $0.00601
Opus 5.5 $0.00004 $0.00240
Sonnet 5.5 $0.00002 $0.00120
Haiku 4.5 $0.00001 $0.00060

Measured 1mo ago against content hash 33c723256d69, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

user-story-new 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 1mo 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.

.archive/user-story-system/.claude/commands/user-story-new.md · 78 lines

How it starts

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

Create New User Stories from Feature

Create user stories from a feature description following INVEST criteria.

Usage

/user-story-new [feature-description]

Examples

/user-story-new "Dashboard analytics for CEO"
/user-story-new "User authentication with OAuth"
/user-story-new

What it does

  1. Feature Extraction - Asks questions to extract feature details
  2. Story Generation - Decomposes feature into 2-8 user stories
  3. Validation - Validates stories against INVEST criteria
  4. Technical Annotation - Adds tech context and implementation hints
  5. File Creation - Creates YAML files and Markdown documentation
  6. GitHub Sync - Creates GitHub issues (if enabled)

Result

  • YAML story files in stories/yaml-source/
  • Markdown documentation in stories/generated-docs/
  • GitHub issues (if enabled)
  • Validation scores and technical annotations

Activate the user-story-generator skill to create user stories from the provided feature description.

Use the user-story-generator skill located in .claude/skills/user-story-generator/SKILL.md.

Parameters

  • feature-description (optional): Brief description of the feature. If omitted, the skill will ask for it interactively.

Workflow

The skill will:

  1. Accept or ask for feature description
  2. Extract feature details through Q&A (persona, requirements, priority)
  3. Show extracted JSON and ask for confirmation
  4. Generate 2-8 user stories following INVEST criteria
  5. Validate each story (silent qa-validator-agent)
  6. Add technical annotations (silent technical-annotator-agent)
  7. Create YAML source files
  8. Generate Markdown documentation
  9. Create GitHub issues if enabled
  10. Present comprehensive summary

File References

  • Skill: .claude/skills/user-story-generator/SKILL.md
  • Scripts: .claude/skills/story-validator/scripts/validate_story_invest.py, .claude/skills/user-story-generator/scripts/generate_story_from_yaml.py, .claude/skills/user-story-generator/scripts/github_sync.py
  • Templates: .claude/skills/user-story-generator/templates/story-template.yaml, .claude/skills/user-story-generator/templates/story-template.md
  • Config: .claude/skills/user-story-generator/config/automation-config.yaml, .claude/skills/user-story-generator/config/personas.yaml

Read the full file on GitHub · 78 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. 1mo ago First seen · 78 lines · 10 tokens per session scan A 33c723256d69

Subscribe to this mod's changes

user-story-new is a command published in the GitHub repository matteocervelli/llms (25 stars, last pushed 5mo ago), licensed MIT. It adds 10 tokens to every session and 601 once invoked, about $0.0000 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-03.