diagnose

diagnose is a skill for Claude Code from morodomi/dev-crew. It costs 42 tokens per session (853 once invoked), scanned A, a copy of tdd-diagnose, MIT.

A structured troubleshooting workflow for complex software bugs. TDD here means test-driven development; this skill defines the diagnosis phase, including gathering bug details, forming several possible causes, and checking them.

In plain words
What is it for?
Use it to collect error information, generate at least three hypotheses, investigate them in parallel or as a team, and document the results in a debugging cycle.
Why use it?
It prevents debugging from jumping to one guess and helps record whether the cause was found, narrowed down, or remains unknown.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool.

Part of the dev-crew plugin — 28 skills, 41 agents, 3 hooks shipped together

Good fit Use it to collect error information, generate at least three hypotheses, investigate them in parallel or as a team, and document the results in a debugging cycle.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morodomi/dev-crew/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 morodomi/dev-crew --skill diagnose
Clone the repo
git clone --depth 1 https://github.com/morodomi/dev-crew

Made for: Claude Code.

Or install dev-crew, the plugin that ships this one along with the rest of its 28 skills, 41 agents, 3 hooks.

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/morodomi/dev-crew/diagnose/github.svg)](https://agentmods.dev/skills/morodomi/dev-crew/diagnose)
Your own site
<a href="https://agentmods.dev/skills/morodomi/dev-crew/diagnose"><img src="https://agentmods.dev/badge/skills/morodomi/dev-crew/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/morodomi/dev-crew/diagnose"><img src="https://agentmods.dev/badge/skills/morodomi/dev-crew/diagnose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 853 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 92% copy Near-identical to another mod 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.00042 $0.00853
Opus 5.5 $0.00017 $0.00341
Sonnet 5.5 $0.00008 $0.00171
Haiku 4.5 $0.00004 $0.00085

Measured 1mo ago against content hash ac2aadf76824, 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.

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.

Origin

This is a copy

92% identical to tdd-diagnose — 21 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/diagnose/SKILL.md · 95 lines

What it actually says

TDD Diagnose Phase

複雑なバグに対し、複数の仮説を並行調査し根本原因を特定する。

Progress Checklist

DIAGNOSE Progress:
- [ ] バグ情報収集(カテゴリ・重要度・症状)
- [ ] 仮説生成(3つ以上)
- [ ] 調査実行(モード自動選択)
- [ ] 結果統合・分岐判定
- [ ] Cycle doc更新 → 完了メッセージ表示

Workflow

Step 1: バグ情報収集

1a. AskUserQuestion で構造化入力:

  • バグカテゴリ: regression / new behavior / intermittent / performance degradation
  • 重要度: blocking development / blocking users / workaround exists

1b. 続けて自然言語で質問:

  • 「エラーメッセージやログを貼り付けてください」
  • 「関連するファイルパスがあれば教えてください」

詳細: reference.md

Step 2: 仮説生成

収集した情報から原因候補を 3つ以上 リスト:

# 仮説 調査方針
H1 [原因候補1] [検証方法]
H2 [原因候補2] [検証方法]
H3 [原因候補3] [検証方法]

仮説テンプレート: reference.md

Step 3: 調査実行

CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS 環境変数でモードを選択:

環境変数 モード 手順
有効 (1) 討論型 (Agent Teams) steps-teams.md
無効 / 未設定 並行型 (Subagent) steps-subagent.md

Step 4: 調査結果統合

各仮説の検証結果を集約し、分岐判定:

根本原因が特定された場合 (Identified)

→ Cycle doc に根本原因を記録、Step 5 へ

2-3候補に絞込まれた場合 (Narrowed)

→ AskUserQuestion で候補からユーザーが選択、Step 5 へ

不明・全仮説否定の場合 (Inconclusive)
調査結果が不明確です。
1. 仮説を追加して再調査(最大2回まで)
2. 手動調査へエスカレート(現時点の発見事項を記録)

再調査2回で未解決の場合、選択肢2へ強制遷移。

Step 5: Cycle doc 更新 → 完了

調査結果を Cycle doc に記録。

================================================================================
DIAGNOSE完了
================================================================================
根本原因を特定し、Cycle docに記録しました。

次のステップ:
- Orchestrate使用時: 自動的にsync-planが実行されます
- 手動実行時: /spec でTDDコンテキスト設定を開始してください
================================================================================

Reference

Files

What ships with it

3 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 · 95 lines · 42 tokens per session scan A ac2aadf76824

Subscribe to this mod's changes

diagnose is a skill published in the GitHub repository morodomi/dev-crew (1 stars, last pushed yesterday), licensed MIT. It adds 42 tokens to every session and 853 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to tdd-diagnose, differing in 21 lines, and is treated as a copy.

Related

Other skills, from other repositories

tdd

This skill should be used when the user asks to "add a feature using TDD", "fix a bug with TDD", "do TDD", "red-green-refactor", "write a failing test first", "use test-driven development", "start TDD", "test first approach", "TDD loop", "TDD cycle", or mentions TDD workflow, baby steps, guessing game, or…

t1/tdder · 102 tokens

testing-principles

Language-agnostic testing principles for choosing which tests a change needs, test quality, and proof ownership, with frontend and browser E2E implementation references. Use when writing tests, deciding test scope, or reviewing test quality.

shinpr/claude-code-workflows · 50 tokens

pair-programming

AI-assisted pair programming with multiple modes (driver/navigator/switch), real-time verification, quality monitoring, and comprehensive testing. Supports TDD, debugging, refactoring, and learning sessions. Features automatic role switching, continuous code review, security scanning, and performance optimization with…

frankxai/claude-skills-library · 85 tokens

implement

For a build brief, implementing a spec or tracked item, or mid-build discoveries tempting scope expansion, build thin verified slices with test-first checks at named boundaries, proportional validation elsewhere, and respect for scope and commit instructions.

timharris707/skills · 46 tokens

bug-fix

Regression-first workflow for fixing a defect whose cause is known. Reproduce the confirmed defect, fix the root cause minimally, protect it with a regression test, and verify. If the root cause is still unknown, use the debugging skill first.

thixpin/pitway · 52 tokens

wave-execution-framework-v2

Use when executing multi-wave engineering work needing strict TDD, bug-capture/fix split, quality gates, and orchestrated teams with per-agent Opus-advisor / Sonnet-executor model routing.

Harshvardhan86/claude-wave-plugin · 48 tokens