agentsclimarketplace

Acp bug fix

Skill bravekingzhang/agent-coding-playbook/skills/acp-bug-fix

Use when the user asks to fix a bug, investigate an error, debug a crash, explain a stack trace, or make a failing test pass. Enforces reproduce → isolate → smallest fix → verify, instead of guessing a cause and patching code.From its SKILL.md

Install
npx -y skills add bravekingzhang/agent-coding-playbook --skill acp-bug-fix

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

2.7 KB, as published. Nobody here has run it

Bug Fix Skill

Use this skill when the user asks you to fix a bug, investigate an error, or explain why something is failing.

The goal is not to guess the cause quickly.

The goal is to reproduce, isolate, fix, and verify.


Workflow

1. Understand the Bug

Before changing code, identify:

  • What is the observed behavior?
  • What is the expected behavior?
  • When did it start happening?
  • Is there an error message, log, stack trace, screenshot, or failing test?
  • Which users, environments, platforms, or versions are affected?

If the bug report is vague, ask for the missing reproduction details.


2. Reproduce First

Do not fix a bug that has not been reproduced or clearly reasoned about.

Prefer one of these reproduction forms:

  • A failing unit test.
  • A failing integration test.
  • A minimal manual reproduction.
  • A log or stack trace that points to the failing path.

If reproduction is impossible in the current environment, state that clearly.


3. Isolate the Root Cause

Before editing, explain the likely root cause.

For non-trivial bugs that span multiple files, use the Explore subagent to locate suspect call sites without polluting the main session, then read only the files actually implicated.

Good root cause statements look like:

The crash happens because `user.profile` can be null, but `renderAvatar` reads `user.profile.avatarUrl` without a null check.

Bad root cause statements look like:

This is probably a state issue.

Be specific.


4. Make the Smallest Fix

Fix the bug with the smallest safe change.

Do not:

  • Rewrite the whole module.
  • Rename unrelated variables.
  • Reformat unrelated files.
  • Add new abstractions unless necessary.
  • Fix nearby issues unless they are part of the same bug.

Every changed line must be related to the bug.


5. Verify the Fix

Run the most relevant checks available:

  • The failing test.
  • Related unit tests.
  • Type check.
  • Lint.
  • Build.
  • Manual reproduction steps.

If checks cannot be run, explain why.


Output Format

At the end, summarize:

Root cause:
- ...

Changed:
- ...

Verified:
- ...

Not verified:
- ...

Risk:
- ...

Guardrails

Stop and ask for human confirmation if the bug fix touches:

  • Auth or permission logic.
  • Payment logic.
  • Data migration.
  • Security-sensitive code.
  • Public API behavior.
  • Large-scale refactoring.

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.