bmad-github-story-dev

bmad-github-story-dev is a skill for Claude Code, Codex from choucrifahed/agent-plugins. It costs 78 tokens per session (3,102 once invoked), scanned A, original, MIT.

A guided workflow for implementing a BMAD story from GitHub through a pull request. A Git worktree is a separate working folder for a branch, and a pull request is a proposed change for review.

In plain words
What is it for?
Starting the next ready story, working in or creating its branch and worktree, committing tasks, updating GitHub labels, and opening a pull request.
Why use it?
It coordinates story selection, status locking, branch setup, commits, and review steps so development work follows one repeatable path.

Skill for Claude CodeCodex

Part of the bmad-github plugin — 6 skills, 1 hook shipped together

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 skills/choucrifahed/agent-plugins/bmad-github-story-dev
Any agent
npx skills add choucrifahed/agent-plugins --skill bmad-github-story-dev
Clone the repo
git clone --depth 1 https://github.com/choucrifahed/agent-plugins

Made for: Claude Code, Codex.

Or install bmad-github, the plugin that ships this one along with the rest of its 6 skills, 1 hook.

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 bmad-github-story-dev

README.md
[![agentmods](https://agentmods.dev/badge/skills/choucrifahed/agent-plugins/bmad-github-story-dev.svg)](https://agentmods.dev/skills/choucrifahed/agent-plugins/bmad-github-story-dev)
Your own site
<a href="https://agentmods.dev/skills/choucrifahed/agent-plugins/bmad-github-story-dev"><img src="https://agentmods.dev/badge/skills/choucrifahed/agent-plugins/bmad-github-story-dev.svg" alt="Measured on agentmods" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,102 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.00078 $0.03102
Opus 5 $0.00039 $0.01551
Sonnet 5 $0.00016 $0.00620
Haiku 4.5 $0.00008 $0.00310

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

Security

Grade A, and why

bmad-github-story-dev 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 3d 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.

bmad-github/skills/bmad-github-story-dev/SKILL.md · 344 lines

How it starts

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

Story Dev: Detect Context + Sync + Verify + Git Setup + BMAD Dev-Story + PR

You are developing a story. This skill handles the full lifecycle:

  1. Detect the current working context (main checkout vs. existing story worktree)
  2. Sync local state (light refresh)
  3. Pick the target story (from branch name, user argument, or next status:ready GitHub issue)
  4. Verify the story file is committed
  5. Flip the GitHub issue status label atomically (acts as the cross-agent "lock")
  6. Set up a git worktree/branch — or reuse the current one
  7. Run the BMAD dev-story operation with auto-commits per task
  8. Create a PR when development is complete

This skill is safe to run from main or from inside a story/<key> worktree. It does not require any commits on main before branching, so it composes cleanly with orchestrators like Conductor that spawn agents in pre-created worktrees.


Phase 0: Detect Worktree Context

Run these together and record the results:

git rev-parse --is-inside-work-tree
git rev-parse --show-toplevel
git branch --show-current

Classify the context using the branch name as the primary signal:

Branch name Context Worktree creation in Phase 5
main (or the repo's main branch) main checkout Create a new worktree
story/<key> matching the plugin's convention existing story worktree Reuse — skip creation
any other branch unrecognized STOP and ask the user

If the branch is unrecognized (not main and not story/<key>), print:

Current branch is `<branch>`. This skill expects either `main` or a `story/<key>` branch.
Switch to `main` (or to the story worktree you want to continue) and re-run.

Save the classification as {{context}} = main | worktree | unrecognized and the current branch as {{branch}}.


Phase 1: Sync First

Read and follow ${CLAUDE_PLUGIN_ROOT}/references/sync-first.md.

On main this runs the full /story-sync reconciliation so BMAD's dev-story (Phase 6) sees a current sprint-status.yaml. In a worktree, it does a git fetch and warns that sprint-status.yaml may lag main.

Read the full file on GitHub · 344 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. 3d ago First seen · 344 lines · 78 tokens per session scan A c68c54616c9f

Subscribe to this mod's changes

bmad-github-story-dev is a skill published in the GitHub repository choucrifahed/agent-plugins (7 stars, last pushed 1mo ago), licensed MIT. It adds 78 tokens to every session and 3,102 once invoked, about $0.0004 per session on Opus 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-08-31.