bmad-github-story-review

bmad-github-story-review is a skill for Claude Code from choucrifahed/agent-plugins. It costs 75 tokens per session (1,136 once invoked), scanned A, original, MIT.

An adversarial review workflow for the code in the current BMAD story branch, where BMAD is a structured software-development process.

In plain words
What is it for?
It helps verify the correct story worktree and pull request, run the review, push necessary fixes, and keep the story in review status.
Why use it?
It looks for defects and overlooked requirements before the user merges the branch, while leaving the story open for that decision.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

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

Good fit It helps verify the correct story worktree and pull request, run the review, push necessary fixes, and keep the story in review status.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add choucrifahed/agent-plugins
Claude Code
/plugin install bmad-github

Made for: Claude Code.

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-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/choucrifahed/agent-plugins/bmad-github-story-review/github.svg)](https://agentmods.dev/skills/choucrifahed/agent-plugins/bmad-github-story-review)
Your own site
<a href="https://agentmods.dev/skills/choucrifahed/agent-plugins/bmad-github-story-review"><img src="https://agentmods.dev/badge/skills/choucrifahed/agent-plugins/bmad-github-story-review/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 bmad-github-story-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/choucrifahed/agent-plugins/bmad-github-story-review"><img src="https://agentmods.dev/badge/skills/choucrifahed/agent-plugins/bmad-github-story-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,136 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.00075 $0.01136
Opus 5 $0.00037 $0.00568
Sonnet 5 $0.00015 $0.00227
Haiku 4.5 $0.00007 $0.00114

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

Security

Grade A, and why

bmad-github-story-review 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 9d 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-review/SKILL.md · 148 lines

How it starts

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

Story Review: BMAD Code Review + Push (NO "done")

You are performing an adversarial code review on a story. This skill runs the BMAD code-review operation but overrides the final status transition: the story stays at review, NOT done.

The "done" transition only happens via Story Sync (SS) after the user merges the PR on GitHub. The user is the sole reviewer and merger of PRs — this is the quality gate.

IMPORTANT: This skill MUST be run from the story's worktree directory (created by Story Dev), NOT from the main repo.


Pre-flight Checks

  1. Detect the story context from the current worktree:

    git branch --show-current
    

    The branch name should be story/<story_key>. Extract the story key and story ID from the branch name.

    If the branch doesn't match the story/ pattern, STOP and tell the user this skill must be run from a story worktree.

  2. Find the story file in <output_folder>/implementation-artifacts/ matching the story key.

  3. Verify a PR exists for this branch:

    gh pr view --json number,url,state
    

    If no PR exists, tell the user to run Story Dev (SD) first.


Phase 1: Run BMAD code-review

Read and follow ${CLAUDE_PLUGIN_ROOT}/references/bmad-workflow-loader.md with <operation> = code-review.

CRITICAL OVERRIDE: Do NOT Set Status to "done"

When the BMAD code-review operation reaches its final step where it would normally set the story status to done:

DO NOT change the story status to done. Keep it at review.

The reason: The "done" transition is controlled by the GitHub PR merge flow:

  1. User reviews the PR on GitHub
  2. User merges the PR (which auto-closes the GitHub issue via Closes #N)
  3. User runs Story Sync (SS) which detects the closed issue and marks BMAD as done

This ensures the user is the quality gate — no story is marked done without human review and approval.


Phase 2: Git Automation

If Code Changes Were Made (Fixes Applied)

Read the full file on GitHub · 148 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. 9d ago First seen · 148 lines · 75 tokens per session scan A 075d24bc8d8a

Subscribe to this mod's changes

bmad-github-story-review is a skill published in the GitHub repository choucrifahed/agent-plugins (7 stars, last pushed 1mo ago), licensed MIT. It adds 75 tokens to every session and 1,136 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.