bmad-github-story-setup-ci

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

A setup tool for a GitHub Actions workflow, which is an automated job that runs in a GitHub repository. The workflow marks BMAD stories complete when linked GitHub issues close and a merged pull request is confirmed.

In plain words
What is it for?
It is for installing the BMAD story-sync workflow and connecting closed GitHub issues with story and sprint-status files.
Why use it?
It keeps the project's local story files and GitHub issue status aligned without manually updating both places.

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 is for installing the BMAD story-sync workflow and connecting closed GitHub issues with story and sprint-status files.

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-setup-ci

README.md
[![agentmods](https://agentmods.dev/badge/skills/choucrifahed/agent-plugins/bmad-github-story-setup-ci.svg)](https://agentmods.dev/skills/choucrifahed/agent-plugins/bmad-github-story-setup-ci)
Your own site
<a href="https://agentmods.dev/skills/choucrifahed/agent-plugins/bmad-github-story-setup-ci"><img src="https://agentmods.dev/badge/skills/choucrifahed/agent-plugins/bmad-github-story-setup-ci.svg" alt="Measured on agentmods" 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 535 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.00535
Opus 5 $0.00037 $0.00267
Sonnet 5 $0.00015 $0.00107
Haiku 4.5 $0.00007 $0.00053

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

Security

Grade A, and why

bmad-github-story-setup-ci 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 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.

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-setup-ci/SKILL.md · 61 lines

What it actually says

Story Setup CI: Install BMAD Story Sync Workflow

You are installing a GitHub Actions workflow that automatically syncs GitHub issue closures back to BMAD files.

What the Workflow Does

  • Trigger: Runs when a GitHub issue is closed
  • Behavior: Looks up the closed issue in github-issue-map.json, verifies a merged PR exists, then marks the corresponding story as done in sprint-status.yaml and the story .md file. Also updates GitHub labels and checks for epic completion.
  • Config: Dynamically resolves the BMAD output folder at runtime by checking _bmad/bmm/config.yaml, then _bmad/bmb/config.yaml, falling back to _bmad-output

Steps

1. Read the workflow template

Read the template file:

${CLAUDE_PLUGIN_ROOT}/references/bmad-story-sync.yml

Store its full contents — it will be written verbatim with no modifications.

2. Check if workflow already exists

Check whether .github/workflows/bmad-story-sync.yml already exists in the user's project.

If it exists, warn the user:

The file .github/workflows/bmad-story-sync.yml already exists.
Do you want to overwrite it with the latest template?

If the user declines, stop here.

3. Install the workflow

  1. Ensure the .github/workflows/ directory exists (create it if needed)
  2. Write the template contents verbatim to .github/workflows/bmad-story-sync.yml

4. Report

Tell the user:

Installed .github/workflows/bmad-story-sync.yml

This workflow triggers when a GitHub issue is closed and:
  - Looks up the issue in github-issue-map.json
  - Verifies a merged PR exists for the issue
  - Marks the story as done in sprint-status.yaml and the story .md file
  - Updates GitHub issue labels (adds status:done)
  - Checks if all stories in the epic are done and updates epic status
  - Commits and pushes the changes

No configuration needed — the workflow reads your BMAD config at runtime.
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 · 61 lines · 75 tokens per session scan A 4a46ac171c7f

Subscribe to this mod's changes

bmad-github-story-setup-ci 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 535 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.