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.
npx skills add YuDefine/nuxt-supabase-starter --skill diagnosegit clone --depth 1 https://github.com/YuDefine/nuxt-supabase-starterWrote 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.
[](https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/diagnose)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
What it actually says
diagnose
先建一條會在這個 bug 上變紅的回饋迴圈,再推理原因。改編自 mattpocock/skills 的 diagnosing-bugs,授權見 references/UPSTREAM.md。
SOP
Phase 1 -- 建立會在此 bug 變紅的回饋迴圈
- READ 讀取使用者描述的症狀、錯誤訊息、重現條件與 log,再讀取
rules/遮蔽秘密判準.md;之後展示的每段命令、輸出與 artifact 都先照它遮蔽。 - DELEGATE 若症狀帶 runtime error 訊息且本 runtime 有
/oops,呼叫/oopsMode A 以錯誤訊息與相關套件查經驗庫;命中的 fix recipe 仍要由本 SOP 的迴圈證明修好。 - THINK 先讀取
rules/回饋迴圈建構與完成判準.md,依其建構順序選出並建立一條回饋迴圈,再依同一規則收緊。 - WRITE 若已載入規則判定只能由人操作才能重現,先讀取
templates/hitl-loop.sh與templates/hitl-loop.example.sh,再依骨架複製 helper 與結構、參考範例改寫步驟與擷取欄位,在 scratchpad 產出這個 bug 專用的 HITL 重現腳本,作為本 Phase 的迴圈命令;這支腳本請使用者在自己的終端機執行,agent 只解析它印出的KEY=VALUE。 - DELEGATE 實跑該迴圈命令(HITL 腳本由使用者執行,agent 貼出它解析到的
KEY=VALUE),貼出遮蔽後的 invocation 與輸出;未達已載入規則的完成條件就回到第 3 步;建不出時依同一規則停下回報,不進 Phase 2。
Phase 2 -- 重現並縮到最小
- DELEGATE 重跑迴圈,確認紅燈對應的是使用者描述的症狀而不是附近另一個失敗,且可重複出現或重現率高到可以除錯。
- THINK 逐一刪減輸入、呼叫端、設定、資料與步驟,每刪一項重跑迴圈,刪掉會轉綠的才留下,直到每個剩餘元素都是 load-bearing。
Phase 3 -- 列出可證偽假設
- THINK 先讀取
rules/假設與觀測判準.md,列出 3–5 個排序過的假設,每個寫出它的預測。 - WRITE 把排序後的假設清單給使用者看,使用者在場就照使用者的重排或排除調整;不在場就派一個 fresh-context subagent 只讀清單與迴圈輸出,回報漏掉或排序不合理的假設,依它的意見調整後往下,不等待使用者。
Phase 4 -- 一次驗一個假設
- DELEGATE 依已載入規則,對排序最前、尚未排除的假設加一個觀測或改一個變數,重跑迴圈並記下結果是否符合預測;推翻就換下一個,全數推翻就回到 Phase 3 重列。
Phase 5 -- 先鎖住迴歸再修
- THINK 先讀取
rules/迴歸落點與修復判準.md,判斷迴歸測試的落點與是否存在正確的 seam。 - WRITE 依已載入規則把最小重現寫成迴歸測試並看它紅,套用修正後看它綠,再對未縮小的原始情境重跑 Phase 1 的迴圈。
Phase 6 -- 清理並交付
- READ 依已載入規則的收尾清單逐項確認,每項附上證據。
- DELEGATE 若根因是其他專案也會踩到的技術坑且本 runtime 有
/oops,呼叫/oopsMode B 沉澱。 - WRITE 回報成立的假設、修正內容、迴歸測試位置(或沒有正確 seam 這項發現)與各項證據。
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.
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.
- 1mo ago First seen · 45 lines · 67 tokens per session scan A 1dec5f5e91e7
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.
diagnose compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| diagnoseYuDefine/nuxt-supabase-starter | Skill | 45 | 2d ago | MIT | A | 67 | Claude Code |
| resolve-author-fixomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 24 | Claude Code, Codex |
| debugRune-kit/rune | Skill | 96 | today | MIT | A | 76 | Claude Code |
| triage-issuesoftspark/ai-toolkit | Skill | 180 | 12d ago | Apache-2.0 | A | 39 | Claude Code |
| performance-optimizationloiane/specs-driven-development-spring-angular | Skill | 66 | 23d ago | MIT | A | 89 | Claude Code |
| tdd-test-engineerDominikTobureto/awesome-grok-build | Skill | 70 | 3mo ago | MIT | A | 37 | Claude Code, Codex |
| investigatevictusfate/scaffold | Skill | 7 | 3d ago | MIT | A | 85 | Claude Code, Codex |