Diagnose logo

Diagnose

Community
JasonxzWen
diagnose

Load when a task needs hard bugs and performance regressions, failing commands, hard-to-reproduce behavior, or unknown root causes diagnosed; use agent-introspection-debugging instead for agent/tool harness failures.

Overview

PublisherJasonxzWen
Repositoryharness-hub
Skill namediagnose
Stars
71
Forks
0
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by JasonxzWen on GitHub. Read the source before you install it.

Installation

Install the Diagnose AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/JasonxzWen/harness-hub.git /tmp/harness-hub
mkdir -p .claude/skills
cp -r /tmp/harness-hub/skills/diagnose .claude/skills/diagnose
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Diagnose in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Diagnose on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Diagnose is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Diagnose

Purpose

Use this skill for product, code, test, and runtime failures where the cause is not obvious. The core discipline is to build a fast, trusted pass/fail loop before fixing anything.

Do not use this for agent self-recovery, repeated tool loops, or context drift. Use agent-introspection-debugging for those.

Workflow

1. Build The Feedback Loop

Find the smallest repeatable signal that shows the bug.

Prefer, in order:

  1. A failing test at the seam that reaches the bug.
  2. A CLI command, fixture, or HTTP request that reproduces the symptom.
  3. A browser automation script for UI, console, or network failures.
  4. A replayed artifact such as a log, event payload, HAR file, trace, or saved input.
  5. A throwaway harness that exercises the failing code path in isolation.
  6. A stress, property, fuzz, or looped reproduction for nondeterministic failures.
  7. A bisection or differential loop when the bug appeared between known commits, versions, datasets, or configs.
  8. A human-in-the-loop script only when manual steps cannot be automated; adapt scripts/hitl-loop.template.ps1.

Before moving on, name one command that has already been run and can catch this exact bug. A manual-loop script is acceptable only when automation is impossible. The loop must be red-capable, deterministic or high-reproduction for flaky bugs, fast enough to iterate, and runnable without hidden human judgment.

If no credible loop can be built, stop and report what was tried. Ask for the missing artifact, environment access, or permission for temporary instrumentation.

2. Minimize The Reproduction

Run the loop until it shows the user's failure, not a nearby failure. Remove unrelated inputs, steps, services, and timing while preserving the symptom. For flaky bugs, loop, stress, or control the suspected timing until you raise the reproduction rate enough to compare probes honestly.

Confirm:

  • the symptom matches the user's report
  • the failure is repeatable, or frequent enough to debug
  • the exact error, wrong output, or slow timing is captured

3. Rank Hypotheses

Write 3 to 5 ranked hypotheses before probing.

Each hypothesis must be falsifiable:

text
If X is the cause, then changing or observing Y will make Z happen.

Share the ranked list when useful, then test the highest-signal hypothesis first.

4. Instrument Narrowly

Each probe must test one hypothesis.

Prefer:

  • debugger or REPL inspection when available
  • targeted logs at decision points that distinguish hypotheses
  • timing, profiling, query plans, or bisection for performance regressions

Tag any temporary log or probe with a unique prefix such as [DEBUG-a4f2] so it can be removed reliably.

5. Fix And Lock It Down

When the cause is known:

  1. Convert the minimized reproduction into a failing regression test if a correct seam exists.
  2. Apply the smallest fix that addresses the cause.
  3. Run the regression test.
  4. Re-run the original feedback loop.

If no correct test seam exists, record that as an architecture finding instead of adding a shallow test that gives false confidence.

6. Clean Up

Before declaring done:

  • original repro no longer fails
  • regression test passes, or missing test seam is documented
  • temporary debug logs and probes are removed
  • throwaway harnesses are deleted or clearly marked as debug artifacts
  • the final summary states which hypothesis was correct

Use verification after code changes to run the broader build, type, lint, and test gates.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Diagnose AI skill do?

Load when a task needs hard bugs and performance regressions, failing commands, hard-to-reproduce behavior, or unknown root causes diagnosed; use agent-introspection-debugging instead for agent/tool harness failures.

Why use Diagnose on TypingMind?

Because you install it once and use it with any model. Diagnose is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Diagnose in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/JasonxzWen/harness-hub/tree/main/skills/diagnose. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Diagnose?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Diagnose?

As many as you like. As long as a model supports skills, you can use Diagnose with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Diagnose AI skill free?

Yes. It is published on GitHub by JasonxzWen under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇