agentsclimarketplace

Diagnose

Skill tyecode/skills/skills/engineering/diagnose

Personal AI agent skills for better coding. Fixes common agent failure modes: misaligned requirements, blind coding, debugging loops, and lost context between sessions.

Install
npx -y skills add tyecode/skills --skill diagnose

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

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Runs a disciplined diagnosis loop for hard bugs and performance regressions. Use when user says "diagnose this" / "debug this", reports a bug, or describes a performance regression.

SKILL.md

1.9 KB, as published. Nobody here has run it

Skill: diagnose

When to Use This Skill

Use this skill when:

  • User says "diagnose this" or "debug this"
  • Reports a bug, something is broken/throwing/failing
  • Describes a performance regression

The Diagnosis Loop (6 Phases)

Phase 1 — Build a feedback loop

Everything else is mechanical. If you have a fast, deterministic pass/fail signal for the bug, you will find the cause.

Ways to construct a loop (in order):

  1. Failing test at the bug seam
  2. Curl / HTTP script against dev server
  3. CLI invocation with fixture input
  4. Headless browser script (Playwright)
  5. Throwaway harness - minimal subset of the system

A 2-second deterministic loop is a debugging superpower.

Phase 2 — Reproduce

Run the loop. Watch the bug appear.

  • Confirm the failure matches what user described
  • Confirm it's reproducible

Phase 3 — Hypothesise

Generate 3-5 ranked hypotheses before testing any.

Format: "If X is the cause, then changing Y will make the bug disappear"

Show the ranked list to the user - they often have domain knowledge.

Phase 4 — Instrument

Each probe must map to a specific prediction. Change one variable at a time.

  • Use debugger if available
  • Add targeted logs at boundaries
  • Tag all debug logs with [DEBUG-xxx] for easy cleanup

Phase 5 — Fix + regression test

Write the regression test before the fix:

  1. Turn minimised repro into failing test
  2. Watch it fail
  3. Apply the fix
  4. Watch it pass

Phase 6 — Cleanup

  • Original repro no longer reproduces
  • Regression test passes
  • All [DEBUG-...] instrumentation removed
  • Document what caused it in the commit message

Then ask: What would have prevented this bug?

Keep looking

Skills are one crate of 328,083. 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.