mcpadvisor: Command for Claude Code

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

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

A command for writing detailed development stories in an existing, or brownfield, project whose documentation may not follow a standard format.

In plain words
What is it for?
Use it to create implementation-ready stories from existing project documentation, brownfield requirements, or project epics.
Why use it?
It bridges gaps between scattered project documents and the concrete technical information an implementation agent needs.

Command for Claude Code

Written for Claude Code: installed under .claude/.

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

Reuse

Borrowing it

Nothing to install: this file belongs to istarwyh/mcpadvisor. 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/istarwyh/mcpadvisor/main/.claude/commands/BMad/tasks/create-brownfield-story.md
Clone the repo
git clone --depth 1 https://github.com/istarwyh/mcpadvisor

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/istarwyh/mcpadvisor/create-brownfield-story/github.svg)](https://agentmods.dev/commands/istarwyh/mcpadvisor/create-brownfield-story)
Your own site
<a href="https://agentmods.dev/commands/istarwyh/mcpadvisor/create-brownfield-story"><img src="https://agentmods.dev/badge/commands/istarwyh/mcpadvisor/create-brownfield-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 create-brownfield-story

Your own site · 80×15
<a href="https://agentmods.dev/commands/istarwyh/mcpadvisor/create-brownfield-story"><img src="https://agentmods.dev/badge/commands/istarwyh/mcpadvisor/create-brownfield-story.svg" alt="Reviewed on agentmods" width="80" 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,038 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.02038
Opus 5.5 $0.00000 $0.00815
Sonnet 5.5 $0.00000 $0.00408
Haiku 4.5 $0.00000 $0.00204

Measured 19d ago against content hash f9a11cd4335a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 19d 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

4 near-identical copies found in the catalogue:

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

How it starts

The opening of the file, as written. The whole thing — 319 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.

For a tiny, isolated enhancement requiring only one focused session, use brownfield-create-story.md instead. Keep this task for detailed stories that need documentation discovery and additional context.

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

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

Subscribe to this mod's changes

create-brownfield-story is a command published in the GitHub repository istarwyh/mcpadvisor (89 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,038 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-10-12.