speckit.bug.pr

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

A command that opens a GitHub pull request for a recorded bug fix. A pull request is a proposed code change that others can review before it is merged.

In plain words
What is it for?
Use it after fixing a bug on a separate branch or worktree. It reads the bug records, finds the relevant fix, and prepares the pull request.
Why use it?
It turns a completed bug fix into a reviewable GitHub change and links it to the tracked issue. If GitHub's command-line tool is unavailable, it creates text you can paste into a pull request.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

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 commands/arrrrny/zuraffa/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/commands/arrrrny/zuraffa/speckit.bug.pr.svg)](https://agentmods.dev/commands/arrrrny/zuraffa/speckit.bug.pr)
Your own site
<a href="https://agentmods.dev/commands/arrrrny/zuraffa/speckit.bug.pr"><img src="https://agentmods.dev/badge/commands/arrrrny/zuraffa/speckit.bug.pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,448 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.00014 $0.01448
Opus 5 $0.00007 $0.00724
Sonnet 5 $0.00003 $0.00290
Haiku 4.5 $0.00001 $0.00145

Measured 5d ago against content hash 7536a6ca1d35, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.specify/extensions/bug/commands/speckit.bug.pr.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 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_COMMAND_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_COMMAND_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_COMMAND_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 · 95 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 · 95 lines · 14 tokens per session scan A 7536a6ca1d35

Subscribe to this mod's changes

speckit.bug.pr is a command published in the GitHub repository arrrrny/zuraffa (5 stars, last pushed today), licensed MIT. It adds 14 tokens to every session and 1,448 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.