bmad-github-story-open-pr

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

A workflow action that pushes a story branch to GitHub and opens or updates its pull request. A pull request is a proposed code change for review; the action also links it to the story issue and moves that issue to review status.

In plain words
What is it for?
Use it after completing a story in a Git worktree to publish the branch, open or update the pull request, close the related issue when merged, copy labels, and mark the issue as ready for review.
Why use it?
It removes the repetitive release steps after a story is implemented, including pushing the branch, connecting the issue and pull request, and updating the issue state.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the bmad-github plugin — 8 skills shipped together

Good fit Use it after completing a story in a Git worktree to publish the branch, open or update the pull request, close the related issue when merged, copy labels, and mark the issue as ready for review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/choucrifahed/agent-plugins/bmad-github-story-open-pr
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.

Any agent
npx skills add choucrifahed/agent-plugins --skill bmad-github-story-open-pr
Clone the repo
git clone --depth 1 https://github.com/choucrifahed/agent-plugins

Made for: Claude Code.

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

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-open-pr

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/choucrifahed/agent-plugins/bmad-github-story-open-pr"><img src="https://agentmods.dev/badge/skills/choucrifahed/agent-plugins/bmad-github-story-open-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,472 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.00073 $0.01472
Opus 5.5 $0.00029 $0.00589
Sonnet 5.5 $0.00015 $0.00294
Haiku 4.5 $0.00007 $0.00147

Measured 20d ago against content hash eb6337bff4b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bmad-github-story-open-pr 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 20d 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-open-pr/SKILL.md · 154 lines

How it starts

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

Story Open PR: Push + PR + status:review

Opens the pull request for one story branch. Story Build (SB) and the deprecated Story Dev invoke this skill once the story is built. It also runs on its own from a story/<key> worktree, for example after finishing a story by hand.

Inputs

A calling skill passes:

  • {story_id} — e.g. 1-2
  • {story_key} — the branch suffix, e.g. 1-2-bridge-interface
  • {story_title}
  • {issue_number}
  • {record_file} — the story's bmad-build spec, or its legacy story file

When invoked directly, resolve whatever was not passed, in Phase 1.


On Activation

Load Config

  1. Set {project-root} to the output of git rev-parse --show-toplevel.
  2. Run:
    uv run {project-root}/_bmad/scripts/resolve_config.py --project-root {project-root} --key modules.bmm.planning_artifacts --key modules.bmm.implementation_artifacts
    
    If {project-root}/_bmad/scripts/resolve_config.py does not exist in this checkout (for example a worktree of a repository that does not commit _bmad/), run the same command with --project-root set to the main checkout: the parent directory of git rev-parse --path-format=absolute --git-common-dir.
  3. Resolve {planning_artifacts} and {implementation_artifacts} from the JSON output. They are {project-root}-prefixed paths; resolve them against the current checkout.
  4. If the command fails (including uv being unavailable), report its output and HALT:
    bmad-github needs BMad v6.12+ and uv. Install uv (https://docs.astral.sh/uv/), then run `npx bmad-method install`.
    
    If either key is missing, HALT and tell the user to install the BMad Method module (bmm).

Phase 1: Resolve Missing Inputs

Skip this phase when the calling skill passed every input.

  1. Run git branch --show-current. If the branch is not story/<key>, HALT:
    Story Open PR runs from a story worktree (branch story/<key>). Current branch: <branch>.
    
  2. {story_key} = the branch name without story/. {story_id} = its leading <N>-<M> segments.
  3. {issue_number} = the number for {story_id} in {implementation_artifacts}/github-issue-map.json.
  4. {story_title} = the issue title after Story <N>.<M>: (gh issue view {issue_number} --json title).
  5. {record_file} = {implementation_artifacts}/spec-{story_id}-*.md (the most recent one, if several), or else the legacy story file {implementation_artifacts}/{story_id}-*.md.

Read the full file on GitHub · 154 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. 20d ago First seen · 154 lines · 73 tokens per session scan A eb6337bff4b9

Subscribe to this mod's changes

bmad-github-story-open-pr is a skill published in the GitHub repository choucrifahed/agent-plugins (6 stars, last pushed 20d ago), licensed MIT. It adds 73 tokens to every session and 1,472 once invoked, about $0.0003 per session on Opus 5.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-11-10.

Related

bmad-github-story-open-pr compared with skills from other repositories

bmad-github-story-open-pr next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bmad-github-story-open-prchoucrifahed/agent-pluginsSkill620d agoMITA73Claude Code
github-pr-workflowpaperclipai/paperclipSkill118kyesterdayMITA39Claude Code, Codex
commit-messagedanielvm-git/bigpowersSkill2974d agoMITA71Claude Code, Codex
git-workflowTheBeardedBearSAS/claude-craftSkill10813d agoMITA31Claude Code
openclaw-github-repo-commandertmolavi/mcp-agent-skills-hubSkill113d agoMITA29Claude Code, Codex
next-issueliatrio-labs/claude-code-gauntletSkill137d agoApache-2.0A12Claude Code
review_rebaseAnantys-oss/koanSkill51yesterdayGPL-3.0A32Claude Code, Codex