bmad-github-story-init

bmad-github-story-init is a skill for Claude Code, Codex from choucrifahed/agent-plugins. It costs 78 tokens per session (859 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 CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

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-init
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, 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-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/choucrifahed/agent-plugins/bmad-github-story-init.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.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 859 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.1 $0.00078 $0.00859
Opus 5 $0.00039 $0.00430
Sonnet 5 $0.00016 $0.00172
Haiku 4.5 $0.00008 $0.00086

Measured 5d ago against content hash aea32fec5145, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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-init/SKILL.md · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 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).


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:

    • <output_folder>/planning-artifacts/epics.mdrequired — the source of truth for epics and stories
    • <output_folder>/implementation-artifacts/sprint-status.yamloptional — if present, stories already at status done get their GitHub issues pre-closed during sync

    If epics.md is missing, STOP and tell the user to run the BMAD planning workflow first. If sprint-status.yaml is missing, continue — the sync script handles its absence by skipping done-story detection.

  4. Verify you are on the main branch:

    git branch --show-current
    

    If not on main, warn the user and ask if they want to proceed.

  5. Pull latest from remote:

    git pull --rebase
    

Phase 1: Run the Sync Script

Run the batch sync script, passing through any arguments the user provided (e.g., --dry-run):

node ${CLAUDE_PLUGIN_ROOT}/scripts/sync-stories-to-github.mjs $ARGUMENTS

The script will:

  • Parse epics.md to extract all epics and stories
  • Create GitHub Milestones for each epic (if they don't exist)
  • Create GitHub Labels (type labels per story + status:* status labels)
  • Create GitHub Issues for each story (if they don't exist)
  • Save the issue map to <output_folder>/implementation-artifacts/github-issue-map.json

Read the full file on GitHub · 109 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. 5d 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 (7 stars, last pushed 1mo ago), licensed MIT. It adds 78 tokens to every session and 859 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.