speckit.bug.fetch

speckit.bug.fetch is a command for coding agents from arrrrny/zuraffa. It costs 23 tokens per session (2,137 once invoked), scanned A, original, MIT.

A command that loads an existing GitHub issue—a tracked report or task—from a repository into a local bug workflow. It records the issue and creates an initial assessment without changing the GitHub issue.

In plain words
What is it for?
Use it with an issue number, URL, or repository reference to prepare a bug for assessment, fixing, and testing.
Why use it?
It brings an already reported bug into the project’s triage and fix process without requiring someone to copy the issue by hand.

Command

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.fetch
Clone the repo
git clone --depth 1 https://github.com/arrrrny/zuraffa

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.fetch

README.md
[![agentmods](https://agentmods.dev/badge/commands/arrrrny/zuraffa/speckit.bug.fetch.svg)](https://agentmods.dev/commands/arrrrny/zuraffa/speckit.bug.fetch)
Your own site
<a href="https://agentmods.dev/commands/arrrrny/zuraffa/speckit.bug.fetch"><img src="https://agentmods.dev/badge/commands/arrrrny/zuraffa/speckit.bug.fetch.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,137 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 $0.00023 $0.02137
Opus 5 $0.00012 $0.01069
Sonnet 5 $0.00005 $0.00427
Haiku 4.5 $0.00002 $0.00214

Measured 4d ago against content hash 02117428f85e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

speckit.bug.fetch 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.

.specify/extensions/bug/commands/speckit.bug.fetch.md · 148 lines

How it starts

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

Fetch Bug (Load Existing Issue)

Load an existing GitHub issue into the local bug workflow. This is the complement of __SPECKIT_COMMAND_BUG_ISSUE__, which creates an issue — fetch loads one that already exists. It pulls the issue via the gh CLI, records it at .specify/bugs/<slug>/issue.md, and seeds .specify/bugs/<slug>/assessment.md so the rest of the pipeline (__SPECKIT_COMMAND_BUG_FIX__, __SPECKIT_COMMAND_BUG_TEST__) can proceed.

Use fetch when a bug is already tracked on GitHub (reported by someone else, or from another session) and you want to triage and fix it here. fetch never creates, edits, or closes the issue — it only reads it.

User Input

$ARGUMENTS

Accept any of:

  • An issue number (e.g. 1234) — resolved against the current repository.
  • A URL (e.g. https://github.com/<owner>/<repo>/issues/1234).
  • An owner/repo#number reference (e.g. github/spec-kit#1234).
  • An explicit slug via slug=<bug-slug> / --slug <bug-slug> (optional; otherwise derived from the issue title).

Slug Resolution

Each bug gets its own directory under .specify/bugs/<slug>/. If the user passed a slug, use it verbatim after normalization (lowercase, hyphen-separated, no spaces, no special characters other than - and digits). Otherwise derive a 2–4 word kebab-case slug from the issue title. Ensure the directory is unique — if .specify/bugs/<slug>/ already exists, append the shortest disambiguating suffix (-2, -3, …) or -<issue-number>. Never overwrite an existing bug directory.

After resolution, set BUG_SLUG and BUG_DIR = .specify/bugs/<BUG_SLUG>.

Prerequisites

  • Ensure .specify/bugs/<BUG_SLUG>/ exists (create it, including any missing parents, if necessary).
  • If BUG_DIR/issue.md already exists, do not re-fetch silently: report the existing link and stop (unless the user explicitly asks to refresh). If they ask to refresh, overwrite issue.md; never clobber assessment.md/fix.md/test.md — only regenerate assessment.md if it is missing or with explicit confirmation.
  • Detect GitHub context (same as __SPECKIT_COMMAND_BUG_ISSUE__):
    • git rev-parse --is-inside-work-tree 2>/dev/null to confirm a repository.
    • git config --get remote.origin.url to read the remote; parse owner/repo (HTTPS https://github.com/<owner>/<repo>.git or SSH [email protected]:<owner>/<repo>.git). Only proceed with a live fetch when the remote points to github.com.
    • command -v gh >/dev/null 2>&1 and gh auth status to confirm the CLI and auth. If gh/GitHub remote/auth is unavailable, skip the live fetch and write a draft (see Graceful Degradation).

Read the full file on GitHub · 148 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. 4d ago First seen · 148 lines · 23 tokens per session scan A 02117428f85e

Subscribe to this mod's changes

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