diagnose
БесплатноЗапускает вложенные скриптыНе проверенUse when the user reports a hard bug, unexpected failure, or performance regression that needs root-cause analysis.
от afonsoft637 установок в других каталогахОб этом скилле
Diagnose
A discipline for hard bugs and regressions. Skip phases only when explicitly justified. All questions and findings reported to the user must be in Portuguese (pt-BR).
When exploring the codebase, use the project's domain glossary from .claude/CONTEXT.md (if it exists) to get a clear mental model of the relevant modules, and check docs/architecture/ for decisions and ADRs in the area you are touching.
Re-validation loop: after every hypothesis, fix, or change, re-run the reproduction and the regression checks before declaring the bug resolved.
Iron rule: NO FIXES WITHOUT A RED LOOP AND A CONFIRMED ROOT CAUSE. A change made before Phase 1 produced a red signal and Phase 4 confirmed a hypothesis is a guess — and guessing under pressure is how one bug becomes three. This holds ESPECIALLY under time pressure, when the bug "looks simple", and after a previous fix already failed: those are exactly the moments the process pays off. Violating the letter of this process is violating the spirit of debugging.
Pipeline
Phase 0 Frame the bug → symptom, expected vs actual, env, frequency, scope
Phase 1 Build a feedback loop → ONE tight, red-capable command (the core of this skill)
Phase 2 Reproduce + minimise → smallest scenario that still goes red
Phase 3 Hypothesise → 3–5 ranked, falsifiable predictions
Phase 4 Instrument → one probe per prediction, one variable at a time
Phase 5 Fix + regression test → test at a correct seam, watch red → green
Phase 6 Cleanup + re-validate → remove probes, re-run the original repro
↺ If the bug survives or mutates, return to Phase 3.
↺ If every hypothesis dies, see "Stuck — when hypotheses run out".
Entry points for non-code failures:
- The bug is the agent session itself → Agent Self-Debug
- The misbehaving system is an agent/AI workflow → AI Workflow Diagnostic
- The code "works" but quietly produces wrong/absent effects → Silent-Failure Hunt
Redact
This skill has you show commands, outputs, and captured artifacts. Redact every secret first: write <REDACTED> in its place. Build loops against env vars so credentials stay in the environment, not in what you show. Captured artifacts carry auth headers — quote only the lines that carry the signal.
If the redacted output is not enough to diagnose the bug, say so and ask the user (in Portuguese).
When to Use
- User asks or mentions this skill in English (e.g., "use /diagnose", "run diagnose").
- O usuário pede ou menciona esta skill em português (ex.: "use /diagnose", "execute diagnose").
- The failure is the agent session itself (loops, context drift, repeated tool calls) → jump to Agent Self-Debug.
- The misbehaving system is an agent or AI workflow → run the AI Workflow Diagnostic.
Stack playbooks
When the target codebase matches one of these stacks, load the matching playbook from references/ before building the loop — they contain ready-made reproduction commands, debugger/profiler workflows, instrumentation snippets, and log-query cheat sheets:
references/dotnet-debugging.md— .NET / ASP.NET Core / EF Core (dotnet-counters, dotnet-stack, dotnet-dump, dotnet-trace, EFLogTo/TagWith, journalctl/jq queries)references/angular-debugging.md— Angular (Angular DevTools profiler,ng.*console APIs, RxJStap, change-detection profiling)references/python-debugging.md— Python (breakpoint()/pdb, pytest--pdb, py-spy, faulthandler, tracemalloc, asyncio debug)references/react-debugging.md— React (React DevTools profiler, why-did-you-render, re-render/effect bug patterns)
Phase 0 — Frame the bug
Before building anything, pin down what "broken" means. A fuzzy symptom produces a fuzzy loop, and a fuzzy loop wastes every phase after it.
Capture — from the user, the bug report, or the evidence:
- Symptom, verbatim — the exact error message, wrong value, or timing. Quote it; do not paraphrase.
- Expected vs actual — what should happen vs what does happen.
- Environment — local / CI / staging / prod; OS, runtime, versions, config profile.
- Since when — first sighting; the deploy, commit, or data change it correlates with; or "always".
- Frequency — every run, flaky (roughly how often?), or once.
- Scope — one user / input / environment, or everything.
- Recent changes — code, dependencies, config, data, infrastructure.
If the report is thin, interview the reporter before touching code (in Portuguese):
Antes de investigar, preciso enquadrar o bug:
1. O que deveria acontecer vs o que aconteceu? (mensagem de erro exata, se houver)
2. Onde acontece — local, CI, staging, produção?
3. Desde quando? Re
Установить diagnose в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл diagnose?
Use when the user reports a hard bug, unexpected failure, or performance regression that needs root-cause analysis.
Как установить скилл diagnose?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл diagnose запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic