TaskSentinel: Command for Claude Code

.claude/commands/BMad/tasks/create-brownfield-story.md

create-brownfield-story is a command for Claude Code from gonewx/TaskSentinel. It costs 0 tokens per session (2,002 once invoked), scanned C, original, MIT.

A command for creating implementation-ready work stories in an existing, partly documented project. A brownfield project is software that is already built and may have uneven or non-standard documentation.

In plain words
What is it for?
Creating stories from existing project documentation, brownfield requirements, epics, or user guides when a standard product and architecture document set is unavailable.
Why use it?
It turns scattered project documents or user information into clear tasks for a developer, while gathering missing context when needed.

Command for Claude Code

Written for Claude Code: installed under .claude/.

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

Reuse

Borrowing it

Nothing to install: this file belongs to gonewx/TaskSentinel. 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/gonewx/TaskSentinel/main/.claude/commands/BMad/tasks/create-brownfield-story.md
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-brownfield-story

README.md
[![agentmods](https://agentmods.dev/badge/commands/gonewx/tasksentinel/create-brownfield-story.svg)](https://agentmods.dev/commands/gonewx/tasksentinel/create-brownfield-story)
Your own site
<a href="https://agentmods.dev/commands/gonewx/tasksentinel/create-brownfield-story"><img src="https://agentmods.dev/badge/commands/gonewx/tasksentinel/create-brownfield-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 2,002 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00000 $0.02002
Opus 5 $0.00000 $0.01001
Sonnet 5 $0.00000 $0.00400
Haiku 4.5 $0.00000 $0.00200

Measured 7d ago against content hash 9ca7bf53e112, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade C, and why

create-brownfield-story scanned grade C with 1 finding 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 7d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- Context: Brownfield enhancement to {{existing system}} -->
Origin

Copies of this mod

3 near-identical copies found in the catalogue:

.claude/commands/BMad/tasks/create-brownfield-story.md · 317 lines

How it starts

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

/create-brownfield-story Task

When this command is used, execute the following task:

Create Brownfield Story Task

Purpose

Create detailed, implementation-ready stories for brownfield projects where traditional sharded PRD/architecture documents may not exist. This task bridges the gap between various documentation formats (document-project output, brownfield PRDs, epics, or user documentation) and executable stories for the Dev agent.

When to Use This Task

Use this task when:

  • Working on brownfield projects with non-standard documentation
  • Stories need to be created from document-project output
  • Working from brownfield epics without full PRD/architecture
  • Existing project documentation doesn't follow BMad v4+ structure
  • Need to gather additional context from user during story creation

Use create-next-story when:

  • Working with properly sharded PRD and v4 architecture documents
  • Following standard greenfield or well-documented brownfield workflow
  • All technical context is available in structured format

Task Execution Instructions

0. Documentation Context

Check for available documentation in this order:

  1. Sharded PRD/Architecture (docs/prd/, docs/architecture/)

    • If found, recommend using create-next-story task instead
  2. Brownfield Architecture Document (docs/brownfield-architecture.md or similar)

    • Created by document-project task
    • Contains actual system state, technical debt, workarounds
  3. Brownfield PRD (docs/prd.md)

    • May contain embedded technical details
  4. Epic Files (docs/epics/ or similar)

    • Created by brownfield-create-epic task
  5. User-Provided Documentation

    • Ask user to specify location and format

1. Story Identification and Context Gathering

1.1 Identify Story Source

Based on available documentation:

  • From Brownfield PRD: Extract stories from epic sections
  • From Epic Files: Read epic definition and story list
  • From User Direction: Ask user which specific enhancement to implement
  • No Clear Source: Work with user to define the story scope

Read the full file on GitHub · 317 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. 7d ago First seen · 317 lines · 0 tokens per session scan C 9ca7bf53e112

Subscribe to this mod's changes

create-brownfield-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 2,002 tokens. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.