Home / pedrohcgs / claude-code-my-workflow · .claude/skills/diagnose/SKILL.md · GitHub

diagnose skillA

diagnose is agent-read markdown (skill) from pedrohcgs/claude-code-my-workflow: Root-cause a failing or wrong empirical result with a disciplined reproduce → minimise → hypothesise → instrument → fix loop, instead of guessing-and-poking. Use when the user says "why is my regression wrong", "this number changed", "my script errors out", "the result won't reproduce", "debug this", "this estimate looks wrong", or "it worked yesterday". Tuned for research code (R/Stata/Python): type coercion, NA/merge blow-ups, factor levels, clustering/SE choices, weighting, collinearity/conve.

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified before it reaches your agent: the main file against the SHA-256 recorded here, the others against the git hashes of its source commit. The deterministic audit below grades the latest version, and the same checks always give the same file the same grade.

What the file says

# /diagnose — Root-Cause a Wrong or Failing Result

Find *why* an analysis errors, returns the wrong number, or won't reconcile — with a structured debugging loop rather than scattershot edits. Adapted from the `diagnose` pattern in [mattpocock/skills](https://github.com/mattpocock/skills), reshaped for empirical research code where the bug is usually a *silent* wrong number, not a crash.

The discipline: **never edit before you can reproduce, and never fix before you can explain.** A guessed fix that makes the symptom disappear without a named root cause is how a wrong number gets *laundered* into a published table.

## When to use

- A regression / estimate returns a value you can't explain, or one that changed when nothing should have.
- A script errors out and the stack trace doesn't point at the real cause.
- A result "won't reproduce" — different number on re-run, on another machine, or after a package update.
- A replication claim fails `/audit-reproducibility` and you need to localize *which* step drifted.

**Diagnose is symptom-driven and single-target: ONE wrong number / ONE failing run.** Use a sibling instead when the job is different:
…

Read the whole file at its exact version.

How to install

Latest version
mdr add pedrohcgs/claude-code-my-workflow/diagnose@git:20260927.6535de7
Exact content
mdr add pedrohcgs/claude-code-my-workflow/diagnose@sha256:c0a33e097a3c2cd9

Pin to a label to follow the author's releases, or to a sha256 for exact bytes. Either way the resolved hash is written to mdr.lock, and mdr install fetches those bytes again and checks them, so it installs them exactly or fails.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_n4zlteb5clw4pyqd.svg)](https://markdownregistry.com/a/art_n4zlteb5clw4pyqd)

2 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260927.6535de7 latest2026-09-27 6535de7 16,940 BA view · diff
git:20260823.6b8fa142026-08-23 6b8fa14 16,932 BA view · diff
git:20260822.d67758f2026-08-22 d67758f 16,924 BA view · diff
git:20260821.df055c22026-08-21 df055c2 16,918 BA view · diff
git:20260821.8a2f8942026-08-21 8a2f894 15,263 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (16940 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

pedrohcgs/claude-code-my-workflow · 1,598 stars · license MIT · pushed 2026-09-27 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_n4zlteb5clw4pyqd
GET https://markdownregistry.com/api/v1/resolve?ref=pedrohcgs/claude-code-my-workflow/diagnose
GET https://markdownregistry.com/api/v1/blob/c0a33e097a3c2cd9c1be6ab1f8a08052c74606786f4cd2254770022d2ca41f36

Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

More from pedrohcgs/claude-code-my-workflow

adjudicate-review skill
pedrohcgs/claude-code-my-workflow · .claude/skills/adjudicate-review/SKILL.md · Turn an incoming set of findings — from an AI reviewer, a referee report, a code review, a linter, or a second model —…
git:20260927.6535de7 · audit A · 1,598 stars
audit-reproducibility skill
pedrohcgs/claude-code-my-workflow · .claude/skills/audit-reproducibility/SKILL.md · Enforce the replication-protocol.md rule by cross-checking numeric claims in a manuscript against the actual R / Stata…
git:20260927.6535de7 · audit A · 1,598 stars
blast-radius skill
pedrohcgs/claude-code-my-workflow · .claude/skills/blast-radius/SKILL.md · Before and after changing anything shared — a function's return value, a signature, a schema, a label set, a config…
git:20260823.6b8fa14 · audit A · 1,598 stars
capture-environment skill
pedrohcgs/claude-code-my-workflow · .claude/skills/capture-environment/SKILL.md · Snapshot the computational environment for a replication package — detects the analysis stack (R / Stata / Python) and…
git:20260927.6535de7 · audit A · 1,598 stars
challenge skill
pedrohcgs/claude-code-my-workflow · .claude/skills/challenge/SKILL.md · Stress-test a finding against the choices you did not make. Enumerates the discrete forks a competent analyst could…
git:20260823.6b8fa14 · audit A · 1,598 stars
checkpoint skill
pedrohcgs/claude-code-my-workflow · .claude/skills/checkpoint/SKILL.md · Save a structured state snapshot before stopping or handing off. Captures the active plan, recent decisions, file…
v1.0.0 · audit A · 1,598 stars
coauthor-brief skill
pedrohcgs/claude-code-my-workflow · .claude/skills/coauthor-brief/SKILL.md · Generate a co-author / collaborator handoff brief for a multi-author, multi-machine project — summarizing what changed…
v1.0.0 · audit A · 1,598 stars
commit skill
pedrohcgs/claude-code-my-workflow · .claude/skills/commit/SKILL.md · Stage, commit, push, open a PR, and merge to main. Use ONLY on explicit commit intent — user says "commit", "ship it"…
git:20260927.6535de7 · audit A · 1,598 stars
compile-latex skill
pedrohcgs/claude-code-my-workflow · .claude/skills/compile-latex/SKILL.md · Compile a Beamer LaTeX slide deck with XeLaTeX (3 passes + bibtex). Use when user says "compile", "build the slides"…
git:20260415.3ef908f · audit A · 1,598 stars
compress-session skill
pedrohcgs/claude-code-my-workflow · .claude/skills/compress-session/SKILL.md · Distill the current conversation into a structured note (decisions made, open questions, file pointers with line…
v1.0.0 · audit A · 1,598 stars
context-status skill
pedrohcgs/claude-code-my-workflow · .claude/skills/context-status/SKILL.md · Show current context status and session health. Use to check how much context has been used, whether auto-compact…
v1.0.0 · audit A · 1,598 stars
create-lecture skill
pedrohcgs/claude-code-my-workflow · .claude/skills/create-lecture/SKILL.md · Create a new Beamer lecture `.tex` from source papers and materials, with notation consistency checks and the project's…
git:20260927.6535de7 · audit A · 1,598 stars

Every file in pedrohcgs/claude-code-my-workflow

Other files named diagnose

diagnose skill
github/awesome-copilot · skills/diagnose/SKILL.md · Perform a systematic diagnostic scan of an AI workflow across 5 quality dimensions — prompt quality, context…
git:20260506.7f59e01 · audit A · 39,429 stars
diagnose skill
terrylica/cc-skills · plugins/floating-clock/skills/diagnose/SKILL.md · Print a compact health report for FloatingClock. Covers binary info, code-sign status, running process, and test-suite…
git:20260807.b89e550 · audit A · 75 stars
diagnose skill
tserentserenov/fmt-exocortex-template · .claude/skills/diagnose/SKILL.md · Диагностика ступени мастерства (Диагност R28, FORM.089 §6.1 v5.0) прямо в VS Code / claude.ai. До 6 вопросов, ~3 мин…
v5.0.0 · audit A · 61 stars
diagnose skill
rustyrazorblade/skills · plugins/cassandra-expert/skills/diagnose/SKILL.md · Systematic troubleshooting for Apache Cassandra clusters. Use when diagnosing performance issues, latency problems…
git:20260407.324e497 · audit A · 43 stars
diagnose skill
xopcai/xopc · skills/engineering/diagnose/SKILL.md · Disciplined reproduce → minimise → hypothesise → instrument → fix loop for hard bugs and performance regressions.
git:20260916.b7327d9 · audit A · 37 stars
diagnose skill
mycelium-hq/ai-brain-starter · skills/diagnose/SKILL.md · Use when an AI Brain vault needs a health check or something feels off: Claude ignores CLAUDE.md, journal entries…
git:20260816.6ac8364 · audit A · 37 stars
diagnose skill
vodailocz/kilo-kit-mcp · skills/engineering/diagnose/SKILL.md · Disciplined diagnosis loop for hard bugs and performance regressions. Reproduce → minimise → hypothesise → instrument →…
git:20260502.38d5305 · audit A · 26 stars
diagnose skill
toongri/oh-my-toong-playground · skills/diagnose/SKILL.md · Use when asked to analyze architecture, debug issues, identify root cause, or provide technical recommendations…
git:20260811.2f92de1 · audit A · 25 stars

Browse by kind, by grade A, or by owner.