Agent skill

Recipe Diagnose

by shinpr in shinpr/claude-code-workflows

Investigate problem, verify findings, and derive solutions. An agent skill from shinpr/claude-code-workflows.

MITAuto-check passed

Install Recipe Diagnose

skills CLI
$ npx skills add shinpr/claude-code-workflows --skill recipe-diagnose -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install shinpr/claude-code-workflows recipe-diagnose --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/shinpr/claude-code-workflows.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/recipe-diagnose .claude/skills/recipe-diagnose && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
recipe-diagnose
GitHub stars
694
Token cost
~2.7k tokens
SKILL.md length
974 words
Files
1
Skills in repo
30
Repo updated
First seen
Licence
MIT

At a glance

Investigate problem, verify findings, and derive solutions. An agent skill from shinpr/claude-code-workflows.

  • SKILL.md covers Orchestrator Definition, Step 0: Diagnosis Scope…, Diagnosis Flow Overview and Execution Steps, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Recipe Diagnose is an agent skill from shinpr/claude-code-workflows. Investigate problem, verify findings, and derive solutions

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Development workflows for Claude Code that keep broad exploration focused on the outcome you approved. The licence is MIT.

Example prompts

  • “/recipe-diagnose”

What it can do on your machine

Read from SKILL.md and the folder at commit a4ecd62. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Recipe Diagnose loads about 2.7k tokens when it runs. Until then it costs about 19 tokens; SKILL.md has 974 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~19
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from shinpr/claude-code-workflows at commit a4ecd62, republished under its MIT licence (© shinpr). 974 words, ~2,709 tokens.

Download SKILL.mdSave it as .claude/skills/recipe-diagnose/SKILL.md (or your agent's skills folder).
name
recipe-diagnose
description
Investigate problem, verify findings, and derive solutions
disable-model-invocation
true

Explicit User Instruction: The user explicitly instructs and authorizes every subagent call named in this recipe. Execute each applicable call when its prerequisites are met.

Execute Skill: llm-friendly-context before writing Agent prompts, handoffs, or generated artifacts. Execute Skill: subagents-orchestration-guide before making workflow decisions, invoking agents, or resolving findings.

Context: Diagnosis flow to identify root cause and present solutions

Target problem: $ARGUMENTS

Orchestrator Definition

Core Identity: "I am an orchestrator."

Local authority gate: Make this recipe's workflow decisions and validate each returned result directly; delegate semantic deliverable production to the named specialist.

Execution Method:

  • Investigation → performed by investigator
  • Verification → performed by verifier
  • Solution derivation → performed by solver

Orchestrator invokes sub-agents and passes structured JSON between them.

At each Agent invocation below, build the prompt as a mechanical extraction: copy the named source values into the exact fields, apply only the declared serialization, then invoke immediately.

Execution Gate: Each step below establishes evidence required by the next decision. Complete Steps 0-7 in order, including every required investigation and verification retry. Advance only through the current step's stated quality or coverage condition; invoke solver only after coverage is closed.

Step 0: Diagnosis Scope Envelope (Before investigator invocation)

Define a semantic scope envelope from the reported problem and repository evidence by recording:

  • phenomenon and occurrence conditions to explain
  • symptom-reachable execution paths and adjacent cases that share the same path, contract, persisted state, or external boundary
  • applicable evidence axes: code, history, dependencies, configuration, governing documents, and external specifications
  • explicit exclusions from the user or governing artifacts
  • newly discovered areas are inside the envelope only when they have one of the relationships above and evidence shows they can change the supported cause set, coverage judgment, or counter-evidence

The envelope bounds relevance. Keep every relationship above active throughout investigation, including after a plausible cause appears.

Diagnosis Flow Overview

Problem → scope envelope → investigator → verifier
                         ↑                 │
                         └── named gaps ───┘

coverage closed → design decision gate when applicable → solver → Report
material evidence unavailable → limitation/block report

Context Separation: Pass only structured JSON output to each step. Each step starts fresh with the JSON data only.

Execution Steps

Step 1: Investigation (investigator)

Agent tool invocation:

subagent_type: investigator
description: "Investigate problem"
prompt: |
  Comprehensively collect information related to the following phenomenon.

  Phenomenon: [Problem reported by user verbatim]
  diagnosisScopeEnvelope: [Step 0 semantic scope envelope]

Expected output: scopeAccounting, pathMap (execution paths per symptom), failurePoints (faults found at each node), impactAnalysis per failure point, unexplored areas, investigation limitations

Step 2: Investigation Quality Check

Review investigation output:

Quality Check (verify JSON output contains the following):

  • pathMap exists with at least one symptom, and each symptom has at least one path with nodes listed
  • Each failure point has: location, upstreamDependency, symptomExplained, causalChain (reaching a stop condition), checkStatus, evidence with a source citing a specific file or location
  • Each failure point has comparisonAnalysis (normalImplementation found or explicitly null)
  • causeCategory for each failure point is one of: typo / logic_error / missing_constraint / design_gap / external_factor
  • investigationSources covers at least 3 distinct source types (code, history, dependency, config, document, external)
  • All nodes on mapped paths have been checked (no path was abandoned after finding the first fault)
  • scopeAccounting accounts for every scope-envelope item as investigated, excluded with governing evidence, or unavailable with its potential effect

If quality insufficient: Re-run investigator specifying missing items explicitly:

prompt: |
  Re-investigate with focus on the following gaps:
  - Missing: [unsatisfied Step 2 Quality Check items, copied as written]

  Use these previous investigation results as context and investigate only the gaps listed above. Return one updated complete investigation JSON, retaining prior evidence that remains valid:
  [Previous investigation JSON]

Proceed to verifier once quality is satisfied.

Step 3: Verification (verifier)

Agent tool invocation:

subagent_type: verifier
description: "Verify investigation results"
prompt: Verify the following investigation results against the semantic diagnosis scope envelope.

diagnosisScopeEnvelope: [Step 0 semantic scope envelope]
Investigation results: [Investigation JSON output]

Expected output: Scope-envelope coverage, coverage check (missing paths, unchecked nodes), Devil's Advocate evaluation per failure point, failure point evaluation with checkStatus, coverage assessment and disposition

Coverage Criteria:

  • sufficient / closed: Every relevant scope-envelope item and symptom-reachable critical node is accounted for; each failure point is independently evaluated; remaining limitations cannot materially change the supported cause set
  • partial / gaps_remaining: Named accessible gaps could materially change the supported cause set
  • insufficient / gaps_remaining: Significant relevant paths or critical nodes remain uninvestigated
  • partial or insufficient / evidence_unavailable: Unavailable material evidence could change the supported cause set and no available action can close that gap
Show full SKILL.md (373 more words)Show less
Step 4: Coverage Convergence

Branch on verifier output before invoking solver:

  • coverageDisposition: closed: freeze the complete verified cause set and continue to the applicable design decision gate.
  • coverageDisposition: gaps_remaining: return to Step 1 with only verifier's named gaps, their relevance to the cause set, and the prior investigation JSON. Keep scopeAccounting monotonic by preserving every accounted item. Add a gap only when new evidence identifies a distinct previously unaccounted gap within the semantic scope envelope that can materially change the supported cause set. Closing a gap or establishing that its evidence is unavailable advances convergence; renaming, splitting, or further describing the same gap preserves its existing state. When no available action can produce one of those state changes, return the attempted recovery to verifier for evidence_unavailable. Repeat verification after the investigation result passes Step 2.
  • coverageDisposition: evidence_unavailable: finish with the unavailable-evidence report, including the evidence, attempted recovery, and why it can change the cause set.

Continue investigation while an available action can advance a material gap. Completion is determined by verifier-established semantic closure or by confirmation that no available action can advance the gap.

Step 5: Solution Boundary

After coverage is closed, pass the complete verified cause set to solver. Ownership, contract, and technical design corrections are ordinary solution candidates when they preserve the confirmed outcome, desired-future requirements, and non-goals; detecting a design gap does not create a user decision. If evidence shows those value boundaries cannot all remain true, or a proposed remedy requires authorization for an irreversible external action, report that exact boundary with the solution evidence instead of inventing a choice.

Step 6: Solution Derivation (solver)

Agent tool invocation:

subagent_type: solver
description: "Derive solutions"
prompt: Derive solutions based on the following verified failure points.

Confirmed failure points: [verifier's conclusion.confirmedFailurePoints]
Refuted failure points: [verifier's conclusion.refutedFailurePoints]
Failure point relationships: [verifier's conclusion.failurePointRelationships]
Impact analysis: [investigator's impactAnalysis]
Coverage disposition: closed

Expected output: Materially distinct feasible solutions derived from the complete verified cause set, tradeoff analysis, recommendation and implementation steps, residual risks

Prerequisite: coverageDisposition: closed

Step 7: Final Report Creation

For coverageDisposition: closed, require coverageAssessment: sufficient and use the verified-solution report below.

## Diagnosis Result Summary

### Identified Failure Points
[Confirmed failure points from verification results]
- Per failure point: location, symptom explained, finalStatus

### Verification Process
- Path coverage: [Paths traced and nodes checked]
- Additional investigation iterations: [count and named gaps closed]
- Coverage assessment: sufficient
- Coverage disposition: closed

### Recommended Solution
[Solution derivation recommendation]

Rationale: [Selection rationale]

### Implementation Steps
1. [Step 1]
2. [Step 2]
...

### Alternatives
[Alternative description]

### Residual Risks
[solver's residualRisks]

### Post-Resolution Verification Items
- [Verification item 1]
- [Verification item 2]

For coverageDisposition: evidence_unavailable, return this limitation-only form:

## Diagnosis Limited by Unavailable Evidence

### Verified Findings
[Failure points and counter-evidence verified without the missing evidence]

### Material Evidence Gap
- Missing evidence: [exact evidence]
- Recovery attempted: [actions and results]
- Why unavailable: [reason]
- Possible effect on cause set: [what could be confirmed, weakened, added, or refuted]

### Coverage
- Coverage assessment: [partial/insufficient]
- Coverage disposition: evidence_unavailable

Completion Criteria

  • Executed investigator and obtained pathMap, failurePoints, and impactAnalysis
  • Performed investigation quality check and re-ran if insufficient
  • Executed verifier and obtained coverage assessment
  • Closed every material scope-envelope gap or reported material evidence as unavailable
  • Executed solver exactly for coverageDisposition: closed; completed the unavailable-evidence report for coverageDisposition: evidence_unavailable
  • Presented final report to user

© shinpr, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/recipe-diagnose of shinpr/claude-code-workflows.

Open the folder on GitHubat commit a4ecd62

Compare with similar skills

Recipe Diagnose next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Recipe Diagnose compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Recipe Diagnose this skillshinpr/claude-code-workflows694—~2.7kAutomated safety check: PassMIT
Recipe Find Free Timegoogleworkspace/cli31k—~240Automated safety check: PassApache-2.0
Find Serving Recipeai-dynamo/dynamo8.3k—~4.3kAutomated safety check: PassApache-2.0
Recipe Find Large Filesgoogleworkspace/cli31k—~175Automated safety check: PassApache-2.0
Diagnose Gatewayopenclaw/openclaw392k—~670Automated safety check: PassMIT
Root Cause Investigationgarrytan/gstack136k—~13kAutomated safety check: NotesMIT

Similar skills

  • Recipe Find Free Time

    googleworkspace/cli

    Query Google Calendar free/busy status for multiple users to find a meeting slot.

    31k GitHub stars~240 tokensUpdated 4 days ago
    Productivity & AutomationAuto-check passed
  • Find Serving Recipe

    ai-dynamo/dynamo

    Answers "for this model, this hardware, this GPU budget and this workload, what is the best known serving configuration, and how much do I trust it?" by walking an ordered set of recipe catalogs…

    8.3k GitHub stars~4.3k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Recipe Find Large Files

    googleworkspace/cli

    Identify large Google Drive files consuming storage quota. An agent skill from googleworkspace/cli.

    31k GitHub stars~175 tokensUpdated 4 days ago
    Auto-check passed
  • Diagnose Gateway

    openclaw/openclaw

    Diagnose Gateway, config, secrets, channels, and port failures with read-only one-liners.

    392k GitHub stars~670 tokensUpdated today
    Auto-check passed
  • Debugs in four phases (investigate, analyze, hypothesize, implement) under one rule: no fix is made until the root cause is found.

    136k GitHub stars~13k tokensUpdated today
    DevelopmentAuto-check: notes
  • Sparse-clue OSINT investigation methodology for extracting overlooked leads, connecting fragmented evidence, and testing explanations across sources.

    276k GitHub stars~5.7k tokensUpdated yesterday
    SecurityAuto-check passed

More from shinpr/claude-code-workflows

All 30 skills in this repo
  • Integration E2E Testing

    shinpr/claude-code-workflows

    Integration and E2E test design principles, ROI calculation, test skeleton specification, and review criteria.

    694 GitHub stars~3.5k tokensUpdated 9 days ago
    Auto-check passed
  • AI Development Guide

    shinpr/claude-code-workflows

    Applies language-agnostic and backend technical decision criteria, anti-pattern detection, debugging, and quality gates.

    694 GitHub stars~3.9k tokensUpdated 9 days ago
    Auto-check passed
  • Frontend AI Guide

    shinpr/claude-code-workflows

    Applies React/TypeScript-specific technical decision criteria, anti-pattern detection, debugging, and frontend quality gates.

    694 GitHub stars~3k tokensUpdated 9 days ago
    Auto-check passed
  • Implementation Approach

    shinpr/claude-code-workflows

    Implementation strategy selection framework. An agent skill from shinpr/claude-code-workflows.

    694 GitHub stars~2.6k tokensUpdated 9 days ago
    Auto-check passed
  • Recipe Quality Profile

    shinpr/claude-code-workflows

    Proposes repository-specific quality policy for implementation and review and, after confirmation, creates or updates docs/project-context/quality.yaml.

    694 GitHub stars~1.1k tokensUpdated 9 days ago
    Auto-check passed
  • Subagents Orchestration Guide

    shinpr/claude-code-workflows

    Guides subagent coordination through implementation workflows.

    694 GitHub stars~9.3k tokensUpdated 9 days ago
    Auto-check passed

Questions about Recipe Diagnose

What does Recipe Diagnose do?

Investigate problem, verify findings, and derive solutions. An agent skill from shinpr/claude-code-workflows. Recipe Diagnose is an agent skill from shinpr/claude-code-workflows.

How do I install Recipe Diagnose in Claude Code?

Run `npx skills add shinpr/claude-code-workflows --skill recipe-diagnose -a claude-code`. Or copy the skill folder (skills/recipe-diagnose in shinpr/claude-code-workflows) into .claude/skills/recipe-diagnose in your project. Claude Code loads it when a task matches its description.

How do I install Recipe Diagnose in Codex?

Run `npx skills add shinpr/claude-code-workflows --skill recipe-diagnose -a codex`. Or copy the skill folder (skills/recipe-diagnose in shinpr/claude-code-workflows) into .agents/skills/recipe-diagnose in your project. Codex loads it when a task matches its description.

Can I use Recipe Diagnose in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add shinpr/claude-code-workflows --skill recipe-diagnose -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/recipe-diagnose, .gemini/skills/recipe-diagnose, .github/skills/recipe-diagnose and .opencode/skills/recipe-diagnose in your project.

What does Recipe Diagnose need to run?

SKILL.md names no scripts, command-line tools or credentials: Recipe Diagnose is instructions for the agent only.

Does Recipe Diagnose access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Recipe Diagnose safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Recipe Diagnose use?

Recipe Diagnose is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Recipe Diagnose use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Recipe Diagnose?

Skills that share tags, products or a category with Recipe Diagnose: Recipe Find Free Time (googleworkspace/cli, 31k stars), Find Serving Recipe (ai-dynamo/dynamo, 8.3k stars), Recipe Find Large Files (googleworkspace/cli, 31k stars) and Diagnose Gateway (openclaw/openclaw, 392k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Recipe Diagnose?

shinpr (a GitHub user) maintains it in shinpr/claude-code-workflows, which has 694 GitHub stars. The repository holds 30 skills in this directory. The repository was last updated on October 1, 2026.

Source: shinpr/claude-code-workflows on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.