speckit-bug-pr

speckit-bug-pr is a skill for Claude Code from arrrrny/zuraffa. It costs 21 tokens per session (1,482 once invoked), scanned A, original, MIT.

A workflow for opening a GitHub pull request for a recorded bug fix. A pull request is a proposal to merge changes into a repository branch.

In plain words
What is it for?
Use it after a bug fix to create a pull request from the current branch and link it to the related issue.
Why use it?
It connects the proposed code change to the tracked bug and preserves a draft when GitHub tools are unavailable.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it after a bug fix to create a pull request from the current branch and link it to the related issue.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arrrrny/zuraffa/speckit-bug-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 arrrrny/zuraffa --skill speckit-bug-pr
Clone the repo
git clone --depth 1 https://github.com/arrrrny/zuraffa

Made for: Claude Code.

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 speckit-bug-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/arrrrny/zuraffa/speckit-bug-pr/github.svg)](https://agentmods.dev/skills/arrrrny/zuraffa/speckit-bug-pr)
Your own site
<a href="https://agentmods.dev/skills/arrrrny/zuraffa/speckit-bug-pr"><img src="https://agentmods.dev/badge/skills/arrrrny/zuraffa/speckit-bug-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 speckit-bug-pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/arrrrny/zuraffa/speckit-bug-pr"><img src="https://agentmods.dev/badge/skills/arrrrny/zuraffa/speckit-bug-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,482 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.00021 $0.01482
Opus 5 $0.00010 $0.00741
Sonnet 5 $0.00004 $0.00296
Haiku 4.5 $0.00002 $0.00148

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

Security

Grade A, and why

speckit-bug-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 4d 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.

.agents/skills/speckit-bug-pr/SKILL.md · 99 lines

How it starts

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

Open Fix Pull Request

Open a GitHub pull request for the fix recorded by /speckit-bug-fix. This command reads .specify/bugs/<slug>/fix.md (and issue.md if the bug was reported) and creates a PR via the gh CLI from the current branch, linking the issue. If gh or a GitHub remote is unavailable, it writes a ready-to-paste PR draft instead.

This command is the natural follow-up when bug.fix was run with --branch / --worktree: the current branch is the fix branch (e.g. fix/<slug>) and the PR opens from it.

User Input

$ARGUMENTS

Accept any of:

  • slug=<bug-slug> or --slug <bug-slug> or a bare slug-like token.
  • A path that contains the slug (e.g. .specify/bugs/login-timeout/).
  • Nothing — fall back to context (see Slug Resolution).

Slug Resolution

Resolve BUG_SLUG in this order, stopping at the first match:

  1. Explicit user input — a slug passed in $ARGUMENTS (any of the forms above).
  2. Conversation context — if the current session has just run /speckit-bug-fix (or bug.issue), the slug it reported is the working slug. Reuse it without re-prompting.
  3. Single candidate on disk — list .specify/bugs/*/fix.md. If exactly one bug has a fix.md, use it.
  4. Disambiguate:
    • Interactive mode: ask the user which bug to open a PR for and list the candidates.
    • Automated mode: stop with an error listing the candidates. Do not guess.

Once resolved, set BUG_SLUG and BUG_DIR = .specify/bugs/<BUG_SLUG>.

Prerequisites

  • BUG_DIR/fix.md MUST exist. If it does not, stop and instruct the user to run /speckit-bug-fix first.
  • Confirm the current branch is the fix branch (created by bug.fix --branch, or whatever branch holds the change). If the working tree is on main/master with uncommitted changes, warn the user and ask which branch to open the PR from before continuing.
  • Detect GitHub context (same as bug.issue):
    • git rev-parse --is-inside-work-tree and git config --get remote.origin.url to parse owner/repo; only proceed live when the remote is github.com.
    • command -v gh and gh auth status to confirm the CLI and auth.
    • If gh/GitHub remote/auth is unavailable, write a draft (see Graceful Degradation).

Read the full file on GitHub · 99 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 Changed · -98 lines · -21 tokens per session 716476ac48d1
  2. 9d ago First seen · 99 lines · 21 tokens per session scan A 96b10cbbefda

Subscribe to this mod's changes

speckit-bug-pr is a skill published in the GitHub repository arrrrny/zuraffa (5 stars, last pushed today), licensed MIT. It adds 21 tokens to every session and 1,482 once invoked, about $0.0001 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.