Agent skill

Diagnostic Reasoning

by kunchenguid in kunchenguid/firstmate

Agent-only procedure for diagnosing reported bugs. An agent skill from kunchenguid/firstmate.

MITAuto-check passed

Install Diagnostic Reasoning

skills CLI
$ npx skills add kunchenguid/firstmate --skill diagnostic-reasoning -a claude-code

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

GitHub CLI
$ gh skill install kunchenguid/firstmate diagnostic-reasoning --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/kunchenguid/firstmate.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/diagnostic-reasoning .claude/skills/diagnostic-reasoning && 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
diagnostic-reasoning
GitHub stars
7.7k
Token cost
~963 tokens
SKILL.md length
490 words
Files
1
Skills in repo
29
Repo updated
First seen
Licence
MIT

At a glance

Agent-only procedure for diagnosing reported bugs. An agent skill from kunchenguid/firstmate.

  • SKILL.md covers Establish the observed behavior, Test the causal explanation and Scope and act on the result
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Diagnostic Reasoning is an agent skill from kunchenguid/firstmate. Agent-only procedure for diagnosing reported bugs. Use before scoping a reported bug and before acting on a diagnostic report. Owns end-user-aligned reproduction, causal separation, divergent-path and history inspection, counterfactual testing, and disconfirming evidence.

Its SKILL.md is about 960 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: Talk to one agent. Ship with a crew. The licence is MIT.

Example prompts

  • “/diagnostic-reasoning”

What it can do on your machine

Read from SKILL.md and the folder at commit 19fcbbd. 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

Diagnostic Reasoning loads about 963 tokens when it runs. Until then it costs about 73 tokens; SKILL.md has 490 words of instructions outside code blocks.

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

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 kunchenguid/firstmate at commit 19fcbbd, republished under its MIT licence (© kunchenguid). 490 words, ~963 tokens.

Download SKILL.mdSave it as .claude/skills/diagnostic-reasoning/SKILL.md (or your agent's skills folder).
name
diagnostic-reasoning
description
Agent-only procedure for diagnosing reported bugs. Use before scoping a reported bug and before acting on a diagnostic report. Owns end-user-aligned reproduction, causal separation, divergent-path and history inspection, counterfactual testing, and disconfirming evidence.
user-invocable
false
metadata.internal
true

diagnostic-reasoning

Use this procedure before scoping a reported bug and before acting on a diagnostic report. This skill is the single owner of Firstmate's bug-diagnosis reasoning procedure. Firstmate applies it when briefing delegated investigation and evaluating the resulting evidence, without taking over project-specific investigation itself.

Establish the observed behavior

Start from the end user's experience rather than an internal error string or an implementation hypothesis. Require an end-to-end reproduction aligned with the real user path whenever it is feasible and safe. If a faithful reproduction is not feasible, record the exact limitation and use the closest representative path without presenting it as equivalent evidence. Capture the expected behavior, observed behavior, setup, inputs, and repeatability before assigning a cause.

Separate these three facts explicitly:

  • The initiating trigger is the event, input, or transition that starts the faulty behavior.
  • The masking condition is the independent state, environment, timing, cache, configuration, or path difference that hides or exposes the fault.
  • The visible symptom is what the end user or operator can actually observe.

Do not collapse those facts into one label. A masking condition may explain why a fault appears only sometimes without being the initiating cause, and the visible symptom may be several layers downstream from both.

Test the causal explanation

Inspect the failing path and a proven path where the intended behavior is known to work. Compare their inputs, state transitions, dependencies, timing, and control flow to find the earliest meaningful divergence. Inspect relevant history, including blame, commits, migrations, and prior implementations, when it can explain why the paths diverged or which invariant was intended. Do not treat the most recent nearby change as causal without evidence.

Identify the smallest counterfactual that should change the outcome if the leading explanation is true. Change one condition at a time where practical, and record whether the symptom appears, disappears, or remains unchanged. Seek disconfirming evidence deliberately: name what observation would falsify the leading explanation, run that check when feasible, and retain contradictory results instead of explaining them away. Compare the final explanation against the proven path and show why the proposed causal boundary accounts for both the failure and the success.

Show full SKILL.md (132 more words)Show less

Scope and act on the result

A diagnosis brief should ask for the reproduction, trigger/mask/symptom separation, divergent and proven path comparison, relevant history, smallest counterfactual, and disconfirming evidence in the report. A diagnostic report should distinguish observed facts from hypotheses and state any unresolved uncertainty that could change the recommended scope. Before acting on the report, verify that its claimed cause explains the end-user reproduction and the proven path without relying on an untested masking condition. If a load-bearing element is missing, route a focused follow-up investigation instead of treating confidence or implementation detail as proof. A diagnosis or implementation-ready recommendation is evidence, not authorization to change code. Implementation still requires the captain's request or another existing lifecycle authority, and the reproduction should become the regression test when a fix is authorized.

© kunchenguid, 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 .agents/skills/diagnostic-reasoning of kunchenguid/firstmate.

Open the folder on GitHubat commit 19fcbbd

Compare with similar skills

Diagnostic Reasoning 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.

Diagnostic Reasoning compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Diagnostic Reasoning this skillkunchenguid/firstmate7.7k—~963Automated safety check: PassMIT
Structured Bug ReportsDonchitos/Claude-Code-Game-Studios26k—~2.5kAutomated safety check: NotesMIT
Creating Oracle To Postgres Migration Bug Reportgithub/awesome-copilot40k1 repos~616Automated safety check: PassMIT
LazyCodex Bug Reportercode-yeongyu/oh-my-openagent70k—~3kAutomated safety check: PassCustom licence
Report Writingsickn33/agentic-awesome-skills47k1 repos~3.2kAutomated safety check: PassMIT
Reportmicrosoft/data-formulator18k—~1.5kAutomated safety check: PassMIT

Similar skills

  • Structured Bug Reports

    Donchitos/Claude-Code-Game-Studios

    Turns a description into a structured bug report, or scans code for likely bugs, then verifies and closes reports through four modes.

    26k GitHub stars~2.5k tokensUpdated yesterday
    Testing & QAAuto-check: notes
  • LazyCodex Bug Reporter

    code-yeongyu/oh-my-openagent

    Investigates a LazyCodex or Codex CLI defect, decides which GitHub repository owns it, and drafts an evidence-backed issue or pull request with repro steps.

    70k GitHub stars~3k tokensUpdated today
    DevelopmentAuto-check passed
  • Report Writing

    sickn33/agentic-awesome-skills

    Bug bounty report writing for H1/Bugcrowd/Intigriti/Immunefi

    47k GitHub starsUsed in 1 repo~3.2k tokens
    SecurityAuto-check passed
  • Report

    microsoft/data-formulator

    Official

    Turn an exploration (threads, findings, charts) into a single Markdown report — note, blog post, executive summary, KPI dashboard, slide brief, or multi-section analytical report, with embedded…

    18k GitHub stars~1.5k tokensUpdated yesterday
    Writing & ContentAuto-check passed
  • Bug Bounty Report Writing

    awarexone/Agentic-Bug-Hunter

    Guides writing bug bounty reports for HackerOne, Bugcrowd, Intigriti and Immunefi: impact-first titles, proven claims, CVSS 3.1 scoring and a pre-submit checklist.

    5.3k GitHub starsUsed in 2 repos~3.9k tokens
    SecurityAuto-check passed

More from kunchenguid/firstmate

All 29 skills in this repo
  • Project Management

    kunchenguid/firstmate

    Agent-only procedure for Firstmate project management. An agent skill from kunchenguid/firstmate.

    7.7k GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • Stow

    kunchenguid/firstmate

    Sweep the current conversation for durable knowledge - user preferences, project facts, operational gotchas, standing decisions, and unfinished next steps - and file each through explicit…

    7.7k GitHub stars~5.1k tokensUpdated yesterday
    Auto-check passed
  • Updatefirstmate

    kunchenguid/firstmate

    Self-update a running firstmate and its secondmates to the latest from origin.

    7.7k GitHub stars~2.5k tokensUpdated yesterday
    Auto-check passed
  • Harness Adapters

    kunchenguid/firstmate

    Agent-only reference for firstmate harness operations. An agent skill from kunchenguid/firstmate.

    7.7k GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed
  • Secondmate Provisioning

    kunchenguid/firstmate

    Agent-only reference for persistent secondmate setup and retirement.

    7.7k GitHub stars~8.1k tokensUpdated yesterday
    Auto-check passed
  • Stow

    kunchenguid/firstmate

    Sweep the current session for uncaptured durable knowledge, file it to disk, persist the open work records this session knows are unfiled or now wrong, and curate the home's tiered, decaying startup…

    7.7k GitHub stars~9k tokensUpdated yesterday
    Auto-check passed

Questions about Diagnostic Reasoning

What does Diagnostic Reasoning do?

Agent-only procedure for diagnosing reported bugs. An agent skill from kunchenguid/firstmate. Diagnostic Reasoning is an agent skill from kunchenguid/firstmate. Agent-only procedure for diagnosing reported bugs.

How do I install Diagnostic Reasoning in Claude Code?

Run `npx skills add kunchenguid/firstmate --skill diagnostic-reasoning -a claude-code`. Or copy the skill folder (.agents/skills/diagnostic-reasoning in kunchenguid/firstmate) into .claude/skills/diagnostic-reasoning in your project. Claude Code loads it when a task matches its description.

How do I install Diagnostic Reasoning in Codex?

Run `npx skills add kunchenguid/firstmate --skill diagnostic-reasoning -a codex`. Or copy the skill folder (.agents/skills/diagnostic-reasoning in kunchenguid/firstmate) into .agents/skills/diagnostic-reasoning in your project. Codex loads it when a task matches its description.

Can I use Diagnostic Reasoning 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 kunchenguid/firstmate --skill diagnostic-reasoning -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/diagnostic-reasoning, .gemini/skills/diagnostic-reasoning, .github/skills/diagnostic-reasoning and .opencode/skills/diagnostic-reasoning in your project.

What does Diagnostic Reasoning need to run?

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

Does Diagnostic Reasoning 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 Diagnostic Reasoning 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 Diagnostic Reasoning use?

Diagnostic Reasoning 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 Diagnostic Reasoning use?

About 963 tokens (SKILL.md is roughly 3.9k 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 Diagnostic Reasoning?

Skills that share tags, products or a category with Diagnostic Reasoning: Structured Bug Reports (Donchitos/Claude-Code-Game-Studios, 26k stars), Creating Oracle To Postgres Migration Bug Report (github/awesome-copilot, 40k stars), LazyCodex Bug Reporter (code-yeongyu/oh-my-openagent, 70k stars) and Report Writing (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Diagnostic Reasoning?

kunchenguid (a GitHub user) maintains it in kunchenguid/firstmate, which has 7,707 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 8, 2026.

Source: kunchenguid/firstmate on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.