create-next-story

create-next-story is a command for Claude Code from gonewx/TaskSentinel. It costs 0 tokens per session (1,572 once invoked), scanned A, original, MIT.

A command that identifies the next logical development story from project progress and epic definitions, then prepares a detailed story file for implementation. It requires the BMad core-config.yaml file.

In plain words
What is it for?
Use it to choose the next project story and create a self-contained task file for a developer to implement.
Why use it?
It gathers the technical context, requirements, and acceptance criteria in one place so a developer agent needs less additional research.

Command for Claude Code

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.

agentmods
npx agentmods add commands/gonewx/tasksentinel/create-next-story
Clone the repo
git clone --depth 1 https://github.com/gonewx/TaskSentinel

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 create-next-story

README.md
[![agentmods](https://agentmods.dev/badge/commands/gonewx/tasksentinel/create-next-story.svg)](https://agentmods.dev/commands/gonewx/tasksentinel/create-next-story)
Your own site
<a href="https://agentmods.dev/commands/gonewx/tasksentinel/create-next-story"><img src="https://agentmods.dev/badge/commands/gonewx/tasksentinel/create-next-story.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,572 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01572
Opus 5 $0.00000 $0.00786
Sonnet 5 $0.00000 $0.00314
Haiku 4.5 $0.00000 $0.00157

Measured 5d ago against content hash 28462f52b431, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-next-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 5d 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.

Origin

Copies of this mod

3 near-identical copies found in the catalogue:

.claude/commands/BMad/tasks/create-next-story.md · 117 lines

How it starts

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

/create-next-story Task

When this command is used, execute the following task:

Create Next Story Task

Purpose

To identify the next logical story based on project progress and epic definitions, and then to prepare a comprehensive, self-contained, and actionable story file using the Story Template. This task ensures the story is enriched with all necessary technical context, requirements, and acceptance criteria, making it ready for efficient implementation by a Developer Agent with minimal need for additional research or finding its own context.

SEQUENTIAL Task Execution (Do not proceed until current Task is complete)

0. Load Core Configuration and Check Workflow

  • Load .bmad-core/core-config.yaml from the project root
  • If the file does not exist, HALT and inform the user: "core-config.yaml not found. This file is required for story creation. You can either: 1) Copy it from GITHUB bmad-core/core-config.yaml and configure it for your project OR 2) Run the BMad installer against your project to upgrade and add the file automatically. Please add and configure core-config.yaml before proceeding."
  • Extract key configurations: devStoryLocation, prd.*, architecture.*, workflow.*

1. Identify Next Story for Preparation

1.1 Locate Epic Files and Review Existing Stories
  • Based on prdSharded from config, locate epic files (sharded location/pattern or monolithic PRD sections)
  • If devStoryLocation has story files, load the highest {epicNum}.{storyNum}.story.md file
  • If highest story exists:
    • Verify status is 'Done'. If not, alert user: "ALERT: Found incomplete story! File: {lastEpicNum}.{lastStoryNum}.story.md Status: [current status] You should fix this story first, but would you like to accept risk & override to create the next story in draft?"
    • If proceeding, select next sequential story in the current epic
    • If epic is complete, prompt user: "Epic {epicNum} Complete: All stories in Epic {epicNum} have been completed. Would you like to: 1) Begin Epic {epicNum + 1} with story 1 2) Select a specific story to work on 3) Cancel story creation"
    • CRITICAL: NEVER automatically skip to another epic. User MUST explicitly instruct which story to create.
  • If no story files exist: The next story is ALWAYS 1.1 (first story of first epic)
  • Announce the identified story to the user: "Identified next story for preparation: {epicNum}.{storyNum} - {Story Title}"

Read the full file on GitHub · 117 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. 5d ago First seen · 117 lines · 0 tokens per session scan A 28462f52b431

Subscribe to this mod's changes

create-next-story is a command published in the GitHub repository gonewx/TaskSentinel (18 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,572 tokens. 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.