bmad-github-story-init

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

A batch synchronizer that turns BMAD epics and stories from an epics.md file into GitHub milestones, labels, and issues. BMAD is a structured method for planning and developing software.

In plain words
What is it for?
Bootstrapping or re-syncing GitHub project tracking from BMAD planning files.
Why use it?
It avoids creating duplicate GitHub records when the planning file is synchronized again and can mark already completed stories as closed.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

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

Good fit Bootstrapping or re-syncing GitHub project tracking from BMAD planning files.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/choucrifahed/agent-plugins/bmad-github-story-init"><img src="https://agentmods.dev/badge/skills/choucrifahed/agent-plugins/bmad-github-story-init.svg" alt="Reviewed on agentmods" width="80" 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 1,170 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.00078 $0.01170
Opus 5.5 $0.00031 $0.00468
Sonnet 5.5 $0.00016 $0.00234
Haiku 4.5 $0.00008 $0.00117

Measured 21d ago against content hash ed79dd9b9cdc, 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-init 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 21d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/sync-stories-to-github.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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-init/SKILL.md · 134 lines

How it starts

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

Story Init: Batch Sync BMAD Epics → GitHub

You are running the initial (or re-sync) batch operation that creates GitHub Milestones, Labels, and Issues from the BMAD epics.md file.

This is idempotent — safe to re-run. It checks for existing milestones/issues before creating new ones.

IMPORTANT: This skill MUST be run from the main repo directory (not a worktree).


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
    
  3. Resolve {planning_artifacts} and {implementation_artifacts} from the JSON output. They are {project-root}-prefixed paths; resolve them against {project-root}.
  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).

Pre-flight Checks

  1. Verify gh CLI is authenticated:

    gh auth status
    

    If not authenticated, STOP and tell the user to run gh auth login first.

  2. Verify you are in the main repo (not a worktree):

    git rev-parse --show-toplevel
    

    Confirm the path matches the main repo root.

  3. Verify BMAD files exist:

    • {planning_artifacts}/epics.md — required — the source of truth for epics and stories
    • {implementation_artifacts}/sprint-status.yaml — recommended — written by bmad-sprint-planning; stories already at status done get their GitHub issues pre-closed during sync

    If epics.md is missing, HALT and tell the user to invoke the bmad-create-epics-and-stories skill first. If its frontmatter has status: draft, BMad has not finished validating it: warn the user and ask whether to continue. HALT and wait for the answer. If sprint-status.yaml is missing, warn that BMad expects the bmad-sprint-planning skill to run before implementation (Story Build requires it), then continue: the sync script skips done-story detection.

Read the full file on GitHub · 134 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 21d ago Changed · +25 lines ed79dd9b9cdc
  2. 3mo ago First seen · 109 lines · 78 tokens per session scan A aea32fec5145

Subscribe to this mod's changes

bmad-github-story-init is a skill published in the GitHub repository choucrifahed/agent-plugins (6 stars, last pushed 21d ago), licensed MIT. It adds 78 tokens to every session and 1,170 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-08-31.

Related

bmad-github-story-init compared with skills from other repositories

bmad-github-story-init next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bmad-github-story-initchoucrifahed/agent-pluginsSkill621d agoMITA78Claude Code
qa/e2e-playwrightechoVic/boss-skillSkill630yesterdayMITA50Claude Code
ui-designer/design-systemechoVic/boss-skillSkill630yesterdayMITA53Claude Code
qa/unit-testingechoVic/boss-skillSkill630yesterdayMITA50Claude Code
backend/testing-guideechoVic/boss-skillSkill630yesterdayMITA30Claude Code
ui-designer/component-specificationechoVic/boss-skillSkill630yesterdayMITA53Claude Code
ui-designer/interaction-specificationechoVic/boss-skillSkill630yesterdayMITA53Claude Code