Skip to content
Agentmart
Submit a tool

diagnose

Diagnose a reproducible failure, a live runtime symptom, or a supplied trace or profile; fix and verify the cause when requested.

Skill by Yeshwanthyk

IndexedMIT★ 6
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/yeshwanthyk-diagnose

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Diagnose a reproducible failure, a live runtime symptom, or a supplied trace or profile; fix and verify the cause when requested.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/diagnose

What's inside

Skill name
diagnose
Description
Diagnose a reproducible failure, a live runtime symptom, or a supplied trace or profile; fix and verify the cause when requested.
License
MIT
Instructions
39 lines in SKILL.md · view on GitHub

Files (3)

  • SKILL.md
  • runtime-forensics.md · references/
  • trace-forensics.md · references/

SKILL.md (first lines)

# Debug

Build a tight red-to-green loop. Reproduce the symptom on the matching surface, follow evidence to the first divergence, make the smallest coherent correction, and prove it there.

## Reproduce

Pick the starting point first:

- A supplied trace, profile, or dump: follow [trace forensics](references/trace-forensics.md); the artifact replaces a live reproduction.
- A live runtime symptom to diagnose without a fix: follow [runtime forensics](references/runtime-forensics.md).
- Otherwise, reproduce here. When the failure reproduces, read [fix-root-causes](../yesh-router/references/principles/fix-root-causes.md) before tracing it.

State the observed symptom and expected contract. Drive the relevant browser, UI, CLI, API, test, or runtime surface yourself. Capture a repeatable red signal. If the surface is inaccessible, record the limitation and the strongest substitute; do not call it a reproduction.

## Find the divergence

Trace the failing path through callers, contracts, transformations, state owners, persistence, external effects, and failure propagation. Treat caches, configuration, locks, serialized data, restart behavior, and concurrent writers as suspects when they can change the result. When the correction adds or changes a cache, cleanup, or a concurrent writer, read [state-ownership](../yesh-router/references/principles/state-ownership.md). Form competing hypotheses and choose probes that remove uncertainty. Use focused logging or instrumentation when needed, then remove probes that did not support the surviving explanation.

Compare expected and observed values at meaningful boundaries. Find the first divergence rather than the last visible symptom. Check sibling callers or equivalent state paths only when evidence suggests the mechanism is shared. [`how`](../how/SKILL.md) for current mechanics and how's [History](../how/SKILL.md#history) view for regression history are optional aids.

One mechanism must explain how the symptom occurs. A plausible story without a confirming probe remains inconclusive.

## Correct

A diagnosis-only request ends with the cause and evidence. When a fix is requested, change the first evidenced divergence. Consult [`architect`](../architect/SKILL.md) when the target shape is unsettled. When a cheap local test can pin the red signal, write it before the fix and run it: it must fail for the intended reason, not a setup or unrelated error. Prefer no new test over a bad one: a test of mocks, implementation details, timing, or expensive infrastructure for a small fix. Then use the closest executable check instead (a script, reproduction command, or browser drive). Never edit or weaken a test to match a wrong implementation. Keep validation at boundaries and migrate evidenced sibling callers within scope. Do not add speculative guards, retries, or compatibility branches. When a second fix built on the same assumption fails the same check, stop patching and follow the repeated-fix branch of [fix-root-causes](../yesh-router/references/principles/fix-root-causes.md).

Delegation is optional. If useful, follow the [shared delegation contract](../yesh-router/references/delegation.md), assign a precise read-only diagnosis or disjoint edit, then inspect the actual diff and proof yourself.

## Prove and hand off

Before calling the fix done, read [prove-it-works](../yesh-router/references/principles/prove-it-works.md). Rerun the original red signal on the same boundary. Add focused sibling, edge, retry/replay, restart, or failure checks when they are part of the mechanism. Inspect the changed diff and remove temporary probes. If the original surface cannot be exercised, report the result as inconclusive.

Report the root cause first: red signal, first divergence, causal chain, correction, failing-then-passing evidence, checks run, and remaining uncertainty. Do not imply broader coverage or publication than occurred.

## Completion

Diagnosis is complete when the cause and evidence limits are clear. A requested fix also needs a correction at the first divergence and proof on the original boundary plus relevant mechanism-specific checks.

From Yeshwanthyk/agent-skills, MIT.

More from Yeshwanthyk/agent-skills

Signals

Stars
6
Forks
0
Open issues
0
Last commit (this folder)
Oct 13, 2026 (17 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Yeshwanthyk

Cite this page

diagnose skill. Agent Mart. https://agentmart.dev/skills/yeshwanthyk-diagnose (last updated 2026-10-24)