pact-bug

pact-bug is a skill for Claude Code from jonathanmr22/pact. It costs 11 tokens per session (301 once invoked), scanned A, original, MIT.

A structured bug-investigation procedure that records symptoms, attempted fixes, causes, and solutions in project files.

In plain words
What is it for?
Use it to open or update bug records, document investigation steps, close fixed bugs, and save reusable solutions for future searches.
Why use it?
It prevents repeated investigations by checking whether an earlier session already solved the same kind of bug and preserves failed attempts for later developers.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the pact plugin — 5 skills, 3 agents shipped together

Good fit Use it to open or update bug records, document investigation steps, close fixed bugs, and save reusable solutions for future searches.

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

Made for: Claude Code.

Or install pact, the plugin that ships this one along with the rest of its 5 skills, 3 agents.

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 pact-bug

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jonathanmr22/pact/pact-bug"><img src="https://agentmods.dev/badge/skills/jonathanmr22/pact/pact-bug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 301 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.00011 $0.00301
Opus 5.5 $0.00004 $0.00120
Sonnet 5.5 $0.00002 $0.00060
Haiku 4.5 $0.00001 $0.00030

Measured 1mo ago against content hash 9749aaef9f71, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pact-bug 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 1mo 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.

plugins/pact/skills/pact-bug/SKILL.md · 26 lines

What it actually says

Create or update a PACT bug tracking file. Follow this protocol:

Step 1: Check existing solutions first. Read bugs/_SOLUTIONS.yaml and search for matching tags. If a previous session already solved this class of bug, report the existing solution instead of re-investigating.

Step 2: Create the bug file. If no existing solution matches, create bugs/{system}/{system}-NNN.yaml with:

  • id, title, status: investigating, severity, system, tags
  • symptom — what was observed
  • expected — what should happen
  • investigation — log every attempt in real time (attempt number, what was tried, result)

Step 3: Update as you investigate. Add each attempt to the investigation log as you try things. Failed attempts are as valuable as successes — they prevent the next session from wasting hours on dead ends.

Step 4: When fixed, complete the record. Update status: fixed, add root_cause, fix, files_changed, and prevention.

Step 5: Graduate reusable solutions. If the fix applies to a class of bugs (not just this specific instance), add an entry to bugs/_SOLUTIONS.yaml with tags for future matching.

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. 1mo ago First seen · 26 lines · 11 tokens per session scan A 9749aaef9f71

Subscribe to this mod's changes

pact-bug is a skill published in the GitHub repository jonathanmr22/pact (15 stars, last pushed 4mo ago), licensed MIT. It adds 11 tokens to every session and 301 once invoked, about $0.0000 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-30.

Related

Other skills, from other repositories

issue-debugging

Systematic methodology for issue debugging including root cause analysis, impact mapping, tiered validation plans, and confidence assessment. Use when analyzing bugs, fixing issues, or validating fixes.

QBall-Inc/the-bulwark · 39 tokens

fix-bug

Run the Fix Validation pipeline to investigate, fix, and validate a bug. Ensures deterministic pipeline execution with IssueAnalyzer, FixWriter, TestWriter (conditional), TestAudit (conditional), and FixValidator stages.

QBall-Inc/the-bulwark · 46 tokens

concurrency-and-async

Use when a ticket involves work happening at the same time — async/await flows, promises and futures, goroutines and channels, threads and locks, parallel requests, races, deadlocks, "sometimes it double-processes" — and the change must be correct under interleaving, not just on the happy sequence. Invoke for any…

tmj-90/gaffer · 108 tokens

concurrency-review

Use as a REVIEW LENS when judging another agent's diff for concurrency and data-integrity defects under failure — concurrent writers, unsynchronised read-modify-write and lost updates, temp-file name collisions, non-atomic file writes, cross-process locking and stale-lock leases, crash/pause/retry schedules…

tmj-90/gaffer · 131 tokens

incident-response

Use when a production incident has been declared and needs classification, triage, escalation, and post-mortem. Covers SEV1-SEV4 severity, false-positive filtering, NIST SP 800-61 lifecycle, and blameless post-mortem facilitation. For proactive threat hunting before an incident fires, use threat-detection. For cloud…

tmj-90/gaffer · 85 tokens

error-handling

Use when a ticket touches how failures are represented, propagated, or reported — a new error type, a retry, a fallback, "handle the case where X fails", swallowed exceptions, or unclear error messages — and the result must fail loudly where it should and recover only where it can. Invoke for "handle errors properly"…

tmj-90/gaffer · 84 tokens