Install any skill in seconds. Free to start, no credit card required.
Get Started Free →avizmarlon/debug-protocol
Systematic debugging protocol for AI agents — pivot evidence-collection strategy after two failed reproduction rounds; treat available evidence (screenshots, console output, error messages) as ground truth from round one.
Passed 20 of 22 test cases with the skill, and 16 of 22 without it.
and 9 more in the full report
5 fixed15 passed either way1 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
An e-commerce checkout microservice returns HTTP 500 errors during load tests. Should we pause testing for a day to set up a Distributed Tracing server and APM agents across all nodes, or proceed immediately with the existing stack traces and HTTP response bodies?
| Checked | Without skill | With skill |
|---|---|---|
| Recommends using existing stack traces and HTTP response bodies immediately in Round 1. | Missed | Passed |
| Advises against delaying reproduction to deploy new telemetry infrastructure. | Missed | Passed |
The instructions your model reads when the skill loads.
A systematic approach to debugging when the expected instrumentation (logs, telemetry, debug servers) fails or is unavailable. This protocol prioritizes using directly observable evidence early and pivoting quickly when a collection strategy stalls.
Available evidence is ground truth from round one. Do not delay with parallel collection mechanisms (e.g., trying to set up a debug server, waiting for telemetry) when you already have direct evidence (screenshots, console output, error messages, stack traces). The direct evidence has higher signal-to-noise than speculative instrumentation.
Pivot after two failed collection rounds. If a logging mechanism, telemetry pipeline, or debug-server strategy fails to produce output twice in a row, stop and switch to an alternative evidence source immediately. Do not attempt the same collection mechanism a third time. The cost of a third failed round (time spent, additional system state changes) outweighs the benefit of "one more attempt."
Each reproduction round is a scarce resource. Running the system again to trigger the bug consumes real time and may change system state. Minimize reproduction rounds by extracting maximum information per run. Plan observation points before each round; don't go in blind hoping to see something useful.
Name the failure mode. When a collection strategy fails, don't use vague language ("the logs aren't working"). Name the specific failure: "telemetry batching delay blocking runtime output," "log file permissions preventing write," "debug server timeout on initialization." Naming makes clear what the next alternative should address.
Round 1: Establish baseline with available evidence
Round 2: Targeted instrumentation if needed
Pivot decision (critical gate)
Round 3+: Alternative evidence source
test cases passed, vs 16 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.