Agent skill

Fix Bug

by JamieMason in JamieMason/syncpack

Debug and fix bugs in Syncpack using scientific debugging methodology.

MITAuto-check passedDevelopment

Install Fix Bug

skills CLI
$ npx skills add JamieMason/syncpack --skill fix-bug -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install JamieMason/syncpack fix-bug --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/JamieMason/syncpack.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/fix-bug .claude/skills/fix-bug && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
fix-bug
GitHub stars
2.1k
Token cost
~1.2k tokens
SKILL.md length
364 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

Debug and fix bugs in Syncpack using scientific debugging methodology.

  • Works in 5 steps: Observe → Hypothesise → Experiment → …
  • A test is failing
  • SKILL.md covers Scientific Debugging Workflow, Step 1: Observe, Step 2: Hypothesise and Step 3: Experiment, plus 6 more sections
  • Calls cargo and just

What it does

Fix Bug is an agent skill from JamieMason/syncpack. Debug and fix bugs in Syncpack using scientific debugging methodology. Use when a test is failing, unexpected behaviour occurs, or investigating issues. Covers hypothesis-driven debugging and TDD-based fixes.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Debugging. It works with npm. The repository describes itself as: Consistent dependency versions in large JavaScript Monorepos. The licence is MIT.

When your agent uses it

  • A test is failing
  • Unexpected behaviour occurs
  • Investigating issues

Example prompts

  • “/fix-bug”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Observe
  2. Hypothesise
  3. Experiment
  4. Validate
  5. Verify

What it can do on your machine

Read from SKILL.md and the folder at commit 958d306. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • cargo
    • just

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Fix Bug loads about 1.2k tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 364 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~54
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from JamieMason/syncpack at commit 958d306, republished under its MIT licence (© JamieMason). 364 words, ~1,151 tokens.

Download SKILL.mdSave it as .claude/skills/fix-bug/SKILL.md (or your agent's skills folder).
name
fix-bug
description
Debug and fix bugs in Syncpack using scientific debugging methodology. Use when a test is failing, unexpected behaviour occurs, or investigating issues. Covers hypothesis-driven debugging and TDD-based fixes.

Fix Bug

Guide for debugging and fixing bugs in Syncpack.

Scientific Debugging Workflow

  1. Observe — Understand the symptom precisely
  2. Hypothesise — Form a theory about the root cause
  3. Experiment — Test the hypothesis with targeted changes
  4. Validate — Confirm the fix with tests
  5. Verify — Run full test suite

Step 1: Observe

Gather information before changing code:

bash
# Run the failing test with output
cargo test test_name -- --nocapture

# Run with backtrace
RUST_BACKTRACE=1 cargo test test_name

# Test against fixture
cd fixtures/fluid-framework
cargo run -- lint

Questions to answer:

  • What is the exact error message?
  • What input triggers it?
  • What is the expected vs actual behaviour?

Step 2: Hypothesise

Common root causes by symptom:

SymptomLikely Cause
State is Unknownvisit_packages not called or instance skipped
Wrong state assignedValidation logic order, earlier check overriding
Instance not foundPackage/dependency name mismatch, location format
Command not runningMissing registration in cli.rs, main.rs, or commands.rs
Panic/unwrap failureUnexpected None or Err value

Step 3: Experiment

Add targeted debug output:

rust
use log::debug;

debug!("Instance: {:#?}", instance);
debug!("State before: {:?}", instance.state.borrow());

Search for related code:

bash
# Find where state is assigned
ast-grep -p 'InstanceState::fixable' src/visit_packages/

# Find similar patterns
ast-grep -p 'PATTERN' src/

Step 4: Validate

Write a failing test FIRST (TDD):

rust
#[test]
fn reproduces_the_bug() {
    let ctx = TestBuilder::new()
        .with_packages(vec![/* minimal reproduction */])
        .build_and_visit_packages();

    // Assert expected behaviour (will fail initially)
}

Then fix the code until the test passes.

Step 5: Verify

bash
just test        # All tests pass
cargo clippy     # No warnings

Where to Look

By component
Issue with...Check...
CLI parsingsrc/cli.rs
Config loadingsrc/config.rs, src/rcfile.rs
Package readingsrc/packages.rs, src/package_json.rs
State assignmentsrc/visit_packages/*.rs
Command outputsrc/commands/*.rs, src/commands/ui/
Version parsingsrc/specifier/*.rs
By phase
PhaseWhat happensFiles
CreateRead config, packages, collect instancescontext.rs, packages.rs
InspectAssign InstanceStatevisit_packages.rs, visit_packages/*.rs
RunProcess instances, output/writecommands/*.rs

Common Fixes

Show full SKILL.md (147 more words)Show less
Instance state not being assigned

Check:

  1. Is the instance's version group variant handled in visit_packages.rs?
  2. Is there an early return skipping this instance?
  3. Is another validation assigning a state first?
Test assertion failing

Check:

  1. Is build_and_visit_packages() called (not just build())?
  2. Is the location string format correct? ("{dep} in {location} of {package}")
  3. Are there multiple instances of the same dependency?
Command not found

Verify registration in all three places:

  1. src/cli.rs — Subcommand enum
  2. src/main.rs — match arm
  3. src/commands.rs — module declaration

Debugging Tips

  • Isolate — Create minimal reproduction
  • Binary search — Comment out code to narrow down
  • Print early — Add debug output before suspected area
  • Check order — Validation order matters (first match wins)
  • Read tests — Existing tests show expected behaviour

Anti-Patterns

❌ Changing code without understanding the cause ❌ Removing code just to make tests pass ❌ Fixing symptoms instead of root cause ❌ Skipping the test-first step

© JamieMason, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/fix-bug of JamieMason/syncpack.

Open the folder on GitHubat commit 958d306

Compare with similar skills

Fix Bug next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Fix Bug compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Fix Bug this skillJamieMason/syncpack2.1k—~1.2kAutomated safety check: PassMIT
AO Desktop App LauncherOrchestratorInc/agent-orchestrator13k—~2.4kAutomated safety check: PassApache-2.0
Debugging and Error Recoveryaddyosmani/agent-skills102k1 repos~2.6kAutomated safety check: PassMIT
EasyEDA Pro API Bridgeeasyeda/easyeda-api-skill855—~7.8kAutomated safety check: PassMIT
Qwen Code Memory Leak DebuggerQwenLM/qwen-code28k—~1.3kAutomated safety check: PassApache-2.0
Plugin BuilderAIDotNet/NextCoWork638—~2.4kAutomated safety check: PassApache-2.0

Similar skills

  • AO Desktop App Launcher

    OrchestratorInc/agent-orchestrator

    Launches, restarts and troubleshoots the real AO Electron desktop app from a checkout, with isolated or real local data and checks for stale processes.

    13k GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Debugging and Error Recovery

    addyosmani/agent-skills

    Applies a stop-the-line rule and a step-by-step triage when tests fail, builds break or something stops working, aiming at the root cause instead of guesses.

    102k GitHub starsUsed in 1 repo~2.6k tokens
    DevelopmentAuto-check passed
  • EasyEDA Pro API Bridge

    easyeda/easyeda-api-skill

    Gives an agent the EasyEDA Pro API reference and a WebSocket bridge to run code in a live EasyEDA client, for PCB, schematic and library work and extension development.

    855 GitHub stars~7.8k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Walks through capturing and comparing V8 heap snapshots to find memory leaks in the Qwen Code Node.js CLI, using tmux and the chrome-devtools CLI.

    28k GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Plugin Builder

    AIDotNet/NextCoWork

    Author, package, and debug NextCoWork plugins — the single entry point.

    638 GitHub stars~2.4k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Octocode Code Research

    bgauryy/octocode

    Researches code with evidence: traces callers, imports and cross-repo links, diagnoses failures and reports findings with exact file and line references and a confidence label.

    946 GitHub stars~1.5k tokensUpdated 4 days ago
    DevelopmentAuto-check passed

More from JamieMason/syncpack

All 11 skills in this repo
  • Document Code

    JamieMason/syncpack

    Add and update the documentation website for Syncpack. An agent skill from JamieMason/syncpack.

    2.1k GitHub stars~1.3k tokensUpdated 11 days ago
    Auto-check passed
  • Front Loading

    JamieMason/syncpack

    Put the answer first, then context and details follow. An agent skill from JamieMason/syncpack.

    2.1k GitHub stars~1.9k tokensUpdated 11 days ago
    Auto-check passed
  • Search Code

    JamieMason/syncpack

    Search for code patterns in Syncpack. An agent skill from JamieMason/syncpack.

    2.1k GitHub stars~581 tokensUpdated 11 days ago
    Auto-check passed
  • Signal Over Noise

    JamieMason/syncpack

    Maximize useful information per word by removing filler, obvious explanations, and hedging language.

    2.1k GitHub stars~1.5k tokensUpdated 11 days ago
    Auto-check passed
  • Testing Gaps

    JamieMason/syncpack

    Run coverage, inspect results, and identify missing test scenarios for a given source file.

    2.1k GitHub stars~766 tokensUpdated 11 days ago
    Auto-check passed
  • Write Code

    JamieMason/syncpack

    Rust code style and conventions for Syncpack. An agent skill from JamieMason/syncpack.

    2.1k GitHub stars~944 tokensUpdated 11 days ago
    Auto-check passed

Works with

Categories

Questions about Fix Bug

What does Fix Bug do?

Debug and fix bugs in Syncpack using scientific debugging methodology. Fix Bug is an agent skill from JamieMason/syncpack. Debug and fix bugs in Syncpack using scientific debugging methodology.

When should I use Fix Bug?

Fix Bug fits situations like: A test is failing; unexpected behaviour occurs; investigating issues.

How do I install Fix Bug in Claude Code?

Run `npx skills add JamieMason/syncpack --skill fix-bug -a claude-code`. Or copy the skill folder (.claude/skills/fix-bug in JamieMason/syncpack) into .claude/skills/fix-bug in your project. Claude Code loads it when a task matches its description.

How do I install Fix Bug in Codex?

Run `npx skills add JamieMason/syncpack --skill fix-bug -a codex`. Or copy the skill folder (.claude/skills/fix-bug in JamieMason/syncpack) into .agents/skills/fix-bug in your project. Codex loads it when a task matches its description.

Can I use Fix Bug in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add JamieMason/syncpack --skill fix-bug -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fix-bug, .gemini/skills/fix-bug, .github/skills/fix-bug and .opencode/skills/fix-bug in your project.

What does Fix Bug need to run?

Going by SKILL.md and its folder, Fix Bug needs the command-line tools its instructions call (cargo and just).

Does Fix Bug access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Fix Bug safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Fix Bug use?

Fix Bug is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Fix Bug use?

About 1.2k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Fix Bug?

Skills that share tags, products or a category with Fix Bug: AO Desktop App Launcher (OrchestratorInc/agent-orchestrator, 13k stars), Debugging and Error Recovery (addyosmani/agent-skills, 102k stars), EasyEDA Pro API Bridge (easyeda/easyeda-api-skill, 855 stars) and Qwen Code Memory Leak Debugger (QwenLM/qwen-code, 28k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Fix Bug?

JamieMason (a GitHub user) maintains it in JamieMason/syncpack, which has 2,099 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on September 26, 2026.

Source: JamieMason/syncpack on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.