Skip to content

Skills / debug-trace

debug-trace

Debug a bug with hypotheses instead of guesses. Reproduce it, isolate it, verify the root cause, make the smallest fix and add a regression test. Use when the user reports a bug, an error, a crash or unexpected behavior and the cause is unknown. Do not use for planned features or refactors.

OfficialRuns scriptsAuditB
Latest
v0.1.0
Aisle
debugging
Works with
Claude Code, Codex, Cursor
Stars
2

Install

Install debug-trace

npx @agentsaisle/cli add debug-trace

Installs into your project's skills folder. Add --global to install it for every project.

Runs scriptsThis skill includes scripts

Your agent may run these scripts on your machine. A maintainer has read every one in full, and the CLI lists the files when you install. You can read them on GitHub first.

Read the files on GitHub

Audit

B
Critical
0
High
0
Medium
1
Low
0

4 files · audited 2026-10-29 · rules 1.0.0

MediumAA-P02Can write files and run interpreters without disable-model-invocation

SKILL.md:6

Read Write Edit Glob Grep Bash(node *) Bash(git *) Bash(npm *) Bash(pnpm *) Bash(npx *) Bash(python *)

Why The agent may load this skill on its own and then write files and run code in one go.

Fix Set disable-model-invocation: true so the user starts it, or narrow the Bash patterns.

What this skill can use

Tools

  • Read
  • Write
  • Edit
  • Glob
  • Grep
  • Bash(node *)
  • Bash(git *)
  • Bash(npm *)
  • Bash(pnpm *)
  • Bash(npx *)
  • Bash(python *)

Scripts

  • scripts/trim-log.mjs

Domains mentioned

None

Automated checks found the patterns listed here. An audit reduces risk; it is not a guarantee of safety. How audits work · Read the rules

Show this grade in a README

The badge updates when the registry is rebuilt. Paste this Markdown into the README:

[![aisle audit](https://img.shields.io/endpoint?url=https%3A%2F%2Fagentsaisle-vercel.vercel.app%2Fbadges%2Fdebug-trace.json)](https://agentsaisle-vercel.vercel.app/skills/debug-trace)

SKILL.md

Rendered from commit 276ea59

Debug trace

Use when

  • An error, crash, wrong output or flaky behavior with an unknown cause.

Don't use when

  • The work is a new feature or a refactor.
  • The cause is already known and the fix is mechanical.

Steps

  1. Reproduce first. Get the exact command, input and error. If you cannot reproduce it, say so and ask for what is missing; do not guess a fix.
  2. Shrink the output: pipe logs and traces through node <skill>/scripts/trim-log.mjs. Read the first error and the first project frame.
  3. Write down two or three hypotheses, most likely first. For each, name the one check that would prove or kill it (a log line, a test, a smaller input, git bisect).
  4. Run the checks one at a time. Cross out hypotheses that fail. Do not change code to "see what happens".
  5. State the root cause with the evidence. Distinguish the cause from the symptom.
  6. Make the smallest fix that removes the cause. Add a regression test that fails before the fix and passes after.
  7. Re-run the original reproduction and the related tests.

Budget

  • Search first (grep, glob, symbol search). Read line ranges, not whole files.
  • Read at most 8 files per step. If you need more, write down what you learned and narrow the question.
  • Do not re-read a file you just wrote or edited.
  • Prefer the smallest command output that answers the question: head, tail, quiet flags, filtered lists.
  • Trim logs before reading; open only the files on the failing path.

Output

  • Reproduction, root cause with evidence, the fix, the regression test, and the verification result.

Done when

  • The original reproduction no longer fails.
  • A regression test covers the cause and fails without the fix.
  • Related tests still pass.

Version history

VersionCommitInstall
0.1.0latest276ea59add debug-trace

Report this skillAgent Aisle on GitHub