diagnose

diagnose is a skill for Claude Code from YuDefine/nuxt-supabase-starter. It costs 67 tokens per session (1,134 once invoked), scanned A, original, MIT.

A debugging procedure that investigates a faulty or slow behaviour by first creating a repeatable check, then narrowing the case and testing possible causes. Debugging means finding why software behaves incorrectly rather than simply adding a feature.

In plain words
What is it for?
Use it for errors, intermittent failures, regressions, or performance problems: reproduce the symptom, reduce it to the smallest case, rank explanations, and test them one at a time.
Why use it?
It replaces guesswork with evidence from a repeatable failure and observations. It also handles cases that require a person to reproduce the problem manually.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents.

Good fit Use it for errors, intermittent failures, regressions, or performance problems: reproduce the symptom, reduce it to the smallest case, rank explanations, and test them one at a time.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yudefine/nuxt-supabase-starter/diagnose
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add YuDefine/nuxt-supabase-starter --skill diagnose
Clone the repo
git clone --depth 1 https://github.com/YuDefine/nuxt-supabase-starter

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for diagnose

README.md
[![agentmods](https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/diagnose/github.svg)](https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/diagnose)
Your own site
<a href="https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/diagnose"><img src="https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/diagnose/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for diagnose

Your own site · 80×15
<a href="https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/diagnose"><img src="https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/diagnose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,134 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00067 $0.01134
Opus 5.5 $0.00027 $0.00454
Sonnet 5.5 $0.00013 $0.00227
Haiku 4.5 $0.00007 $0.00113

Measured 1mo ago against content hash 1dec5f5e91e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

diagnose scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (templates/hitl-loop.example.sh, templates/hitl-loop.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

template/.claude/skills/diagnose/SKILL.md · 45 lines

What it actually says

diagnose

先建一條會在這個 bug 上變紅的回饋迴圈,再推理原因。改編自 mattpocock/skills 的 diagnosing-bugs,授權見 references/UPSTREAM.md。

SOP

Phase 1 -- 建立會在此 bug 變紅的回饋迴圈

  1. READ 讀取使用者描述的症狀、錯誤訊息、重現條件與 log,再讀取 rules/遮蔽秘密判準.md;之後展示的每段命令、輸出與 artifact 都先照它遮蔽。
  2. DELEGATE 若症狀帶 runtime error 訊息且本 runtime 有 /oops,呼叫 /oops Mode A 以錯誤訊息與相關套件查經驗庫;命中的 fix recipe 仍要由本 SOP 的迴圈證明修好。
  3. THINK 先讀取 rules/回饋迴圈建構與完成判準.md,依其建構順序選出並建立一條回饋迴圈,再依同一規則收緊。
  4. WRITE 若已載入規則判定只能由人操作才能重現,先讀取 templates/hitl-loop.sh 與 templates/hitl-loop.example.sh,再依骨架複製 helper 與結構、參考範例改寫步驟與擷取欄位,在 scratchpad 產出這個 bug 專用的 HITL 重現腳本,作為本 Phase 的迴圈命令;這支腳本請使用者在自己的終端機執行,agent 只解析它印出的 KEY=VALUE。
  5. DELEGATE 實跑該迴圈命令(HITL 腳本由使用者執行,agent 貼出它解析到的 KEY=VALUE),貼出遮蔽後的 invocation 與輸出;未達已載入規則的完成條件就回到第 3 步;建不出時依同一規則停下回報,不進 Phase 2。

Phase 2 -- 重現並縮到最小

  1. DELEGATE 重跑迴圈,確認紅燈對應的是使用者描述的症狀而不是附近另一個失敗,且可重複出現或重現率高到可以除錯。
  2. THINK 逐一刪減輸入、呼叫端、設定、資料與步驟,每刪一項重跑迴圈,刪掉會轉綠的才留下,直到每個剩餘元素都是 load-bearing。

Phase 3 -- 列出可證偽假設

  1. THINK 先讀取 rules/假設與觀測判準.md,列出 3–5 個排序過的假設,每個寫出它的預測。
  2. WRITE 把排序後的假設清單給使用者看,使用者在場就照使用者的重排或排除調整;不在場就派一個 fresh-context subagent 只讀清單與迴圈輸出,回報漏掉或排序不合理的假設,依它的意見調整後往下,不等待使用者。

Phase 4 -- 一次驗一個假設

  1. DELEGATE 依已載入規則,對排序最前、尚未排除的假設加一個觀測或改一個變數,重跑迴圈並記下結果是否符合預測;推翻就換下一個,全數推翻就回到 Phase 3 重列。

Phase 5 -- 先鎖住迴歸再修

  1. THINK 先讀取 rules/迴歸落點與修復判準.md,判斷迴歸測試的落點與是否存在正確的 seam。
  2. WRITE 依已載入規則把最小重現寫成迴歸測試並看它紅,套用修正後看它綠,再對未縮小的原始情境重跑 Phase 1 的迴圈。

Phase 6 -- 清理並交付

  1. READ 依已載入規則的收尾清單逐項確認,每項附上證據。
  2. DELEGATE 若根因是其他專案也會踩到的技術坑且本 runtime 有 /oops,呼叫 /oops Mode B 沉澱。
  3. WRITE 回報成立的假設、修正內容、迴歸測試位置(或沒有正確 seam 這項發現)與各項證據。
Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 45 lines · 67 tokens per session scan A 1dec5f5e91e7

Subscribe to this mod's changes

diagnose is a skill published in the GitHub repository YuDefine/nuxt-supabase-starter (45 stars, last pushed 2d ago), licensed MIT. It adds 67 tokens to every session and 1,134 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-26.

Related

diagnose compared with skills from other repositories

diagnose next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagnoseYuDefine/nuxt-supabase-starterSkill452d agoMITA67Claude Code
resolve-author-fixomnigent-ai/omnigentSkill12ktodayApache-2.0A24Claude Code, Codex
debugRune-kit/runeSkill96todayMITA76Claude Code
triage-issuesoftspark/ai-toolkitSkill18012d agoApache-2.0A39Claude Code
performance-optimizationloiane/specs-driven-development-spring-angularSkill6623d agoMITA89Claude Code
tdd-test-engineerDominikTobureto/awesome-grok-buildSkill703mo agoMITA37Claude Code, Codex
investigatevictusfate/scaffoldSkill73d agoMITA85Claude Code, Codex