Index of every page on this site: llms.txt
All skills
adityaarakeri avatar

/debug-protocol

@468f6a1
Run it yourself

Diagnose bugs, failing tests, crashes, regressions, flaky behavior, and performance failures when the cause is unknown. Use for stack traces, wrong output, intermittent failures, environment mismatches, or repeated unsuccessful fixes. Do not use when the root cause is already established and the task is to implement the known fix; hand that work to tdd-loop.

Use this Skill: https://skilld.dev/gh/adityaarakeri/senior-agent-skills/debug-protocol

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈94 tokens for metadata: the name and description. ≈482 when used: this file.

Description uses 4.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈377 characters, or 4.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Debug Protocol

Turn each debugging step into evidence that confirms or rejects one explanation.

Select the Mode

  • Diagnosis only: Reproduce, identify the supported root cause, and report evidence. Do not modify production code or implement a fix.
  • Diagnose and fix: Complete diagnosis first, then hand the confirmed behavior to tdd-loop for the regression test and implementation.

Protocol

  1. Reproduce with the smallest safe deterministic test, script, trace, or command. Do not experiment against production or private data without explicit authority.
  2. Read the complete first error and capture exact inputs, outputs, versions, configuration, environment, timestamps, and correlation identifiers that matter.
  3. Reduce flaky cases with repeated runs, a fixed seed, controlled clocks, resource limits, or an isolated environment. Consider races, timeouts, retries, partial failure, and environment parity.
  4. State one falsifiable hypothesis: "X happens because Y."
  5. Run the cheapest experiment that can disprove it. Change one variable and inspect actual values rather than inferred values.
  6. Keep instrumentation temporary, scoped, and free of secrets. Remove it and confirm repository state before handoff.
  7. For regressions, use binary search or git bisect only in a clean disposable worktree or after explicit approval. Record the starting state and always run git bisect reset before leaving it.
  8. Trace the invalid state to its source. Distinguish the root cause from the location where the failure surfaced.
  9. After three rejected hypotheses, stop editing, rebuild the system model from evidence, summarize attempts, and request missing human or environmental input when necessary.

Evidence Report

Report the reproduction, supported cause, rejected hypotheses, affected scope, confidence, and the next safe boundary. Do not round a plausible theory into a confirmed diagnosis.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides a structured debugging protocol for diagnosing software issues. It includes safety-conscious instructions, such as avoiding production or private data experimentation without explicit authority and ensuring secrets are not captured in instrumentation. No security risks were identified.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 468f6a1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 3 months ago

README badge

README badge for adityaarakeri/senior-agent-skills/debug-protocol