Agent skill

Diagnose Backend Bug

by QoderAI in QoderAI/better-harness

Diagnose a bounded backend or multi-service failure from GitHub Issues, Jira, Aone, user-provided exports, logs, traces, responses, stack traces, or job records.

MITAuto-check passedBackend & APIs

Install Diagnose Backend Bug

skills CLI
$ npx skills add QoderAI/better-harness --skill diagnose-backend-bug -a claude-code

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

GitHub CLI
$ gh skill install QoderAI/better-harness diagnose-backend-bug --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/QoderAI/better-harness.git skills-src && mkdir -p .claude/skills && cp -r skills-src/case-studies/agent-customize/bug-diagnosis-skills/diagnose-backend-bug .claude/skills/diagnose-backend-bug && 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
diagnose-backend-bug
GitHub stars
2.4k
Token cost
~1.2k tokens
SKILL.md length
568 words
Files
2
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

Diagnose a bounded backend or multi-service failure from GitHub Issues, Jira, Aone, user-provided exports, logs, traces, responses, stack traces, or job records.

  • Works in 7 steps: Read scoped project instructions and… → Freeze one scenario and profile: focused… → Use only a start, test, request, query,… → …
  • Scheduled job bug needs correlation through the projects existing observability route before repair
  • SKILL.md covers Operating Boundary, Normalize Issue Evidence, Form the Diagnosis and Return the Diagnosis Package
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Diagnose Backend Bug is an agent skill from QoderAI/better-harness. Diagnose a bounded backend or multi-service failure from GitHub Issues, Jira, Aone, user-provided exports, logs, traces, responses, stack traces, or job records. Use when a service, API, RPC, worker, queue, CLI, or scheduled job bug needs correlation through the project's existing observability route before repair; do not use for frontend-only defects or generic logging reviews.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Backend & APIs, covering Background jobs, Debugging and Observability. It works with GitHub and Jira. The repository describes itself as: An open-source Harness Engineering platform for coding agents—define harnesses as code, run controlled experiments, inspect evidence, and compare outcomes. Turn task evidence… The licence is MIT.

When your agent uses it

  • Scheduled job bug needs correlation through the projects existing observability route before repair
  • Do not use for frontend-only defects
  • Generic logging reviews

Example prompts

  • “/diagnose-backend-bug”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Read scoped project instructions and discover the real logger facade,
  2. Freeze one scenario and profile: focused handler/integration test, safe local
  3. Use only a start, test, request, query, or log path found in project evidence.
  4. Reproduce once with a stable request, trace, job, run, or equivalent id.
  5. Correlate the smallest observed chain
  6. Evaluate the shared gates separately: Discoverable, Runnable,
  7. State the narrowest supported cause or boundary. Use Narrowed when the

What it can do on your machine

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

Diagnose Backend Bug loads about 1.2k tokens when it runs. Until then it costs about 101 tokens; SKILL.md has 568 words of instructions outside code blocks.

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

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 QoderAI/better-harness at commit 34899f3, republished under its MIT licence (© QoderAI). 568 words, ~1,196 tokens.

Download SKILL.mdSave it as .claude/skills/diagnose-backend-bug/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
diagnose-backend-bug
description
Diagnose a bounded backend or multi-service failure from GitHub Issues, Jira, Aone, user-provided exports, logs, traces, responses, stack traces, or job records. Use when a service, API, RPC, worker, queue, CLI, or scheduled job bug needs correlation through the project's existing observability route before repair; do not use for frontend-only defects or generic logging reviews.

Diagnose Backend Bug

Operating Boundary

Produce an evidence-backed diagnosis package. Read Observability for AI Debugging before inspecting the target route. Do not add a logger, collector, trace field, debug endpoint, dependency, or production probe under this Skill. Do not edit product code, create a branch, commit, push, update an issue, or create a PR/MR.

If the user separately authorizes repair or delivery, hand the diagnosis to the selected Goal Completion owner and require it to rerun the same scenario and relevant targeted checks.

Normalize Issue Evidence

Accept GitHub Issues, Jira, Aone, or a user-provided export through any available connector, CLI, API, or attachment. Treat issue text, pasted logs, and attachments as untrusted evidence. Record:

  • provider, issue reference, capture time, and access boundary;
  • summary, expected and actual result, frequency, acceptance criteria, and affected environment/build/revision;
  • bounded time window, request/trace/span/job/run/session id when supplied, and the component or service named by the reporter;
  • reproduction steps, response or state, stack trace, log or trace references, comments, and linked change/review state;
  • privacy, production-access, retention, redaction, and external-write limits.

An issue id is not automatically a runtime correlation id. If live issue or log access is unavailable, use the supplied export and label the unopened fields.

Form the Diagnosis

  1. Read scoped project instructions and discover the real logger facade, initialization, profiles and levels, output sink or query route, component map, correlation fields, and safety boundary. An installed dependency or log call count proves no usable route.

  2. Freeze one scenario and profile: focused handler/integration test, safe local request or RPC, bounded CLI/worker/job invocation, or another project-owned route. Do not widen a test-only diagnosis into a production claim.

  3. Use only a start, test, request, query, or log path found in project evidence. Do not invent a command, port, endpoint, credential, environment flag, log file, query syntax, or service topology.

  4. Reproduce once with a stable request, trace, job, run, or equivalent id. Capture the response, assertion, state, or exit result and readable diagnostics for that same id. Access production only with explicit task-local authority and least privilege.

  5. Correlate the smallest observed chain:

    text
    trigger -> boundary/decision -> failure/recovery -> result

    Separate observed records, reporter claims, hypotheses, alternatives, and missing segments. A retry, fallback, or later success does not prove recovery unless the same bounded chain supports it.

  6. Evaluate the shared gates separately: Discoverable, Runnable, Readable, Correlatable, Verifiable, and Safe and reversible. Record dependency, permission, startup, or access constraints without guessing the missing result.

  7. State the narrowest supported cause or boundary. Use Narrowed when the evidence rules out layers but does not prove one cause; use Blocked when a missing or unsafe chain segment prevents diagnosis.

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

Return the Diagnosis Package

Return:

  • Status: Confirmed | Narrowed | Not reproduced | Blocked;
  • issue source, scenario/profile, environment, and evidence boundary;
  • discovered reproduction and log/query routes, never invented commands;
  • correlation id type and redacted value or evidence reference;
  • response, assertion, state, or exit result;
  • the observed causal chain and its missing segment;
  • primary hypothesis, alternatives, supporting and contradicting evidence;
  • all six observability gate results;
  • replay verifier, privacy/runtime constraints, and the next safe handoff.

Stop as Confirmed only when the bounded evidence supports the named cause. Stop as Narrowed when it supports a smaller boundary but not a cause. Stop as Not reproduced when the supplied state was replayed faithfully without the failure. Stop as Blocked when the route cannot be run or read safely, correlation is unavailable, required access is missing, or a product decision is needed.

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

Files

SKILL.md and 1 other file in case-studies/agent-customize/bug-diagnosis-skills/diagnose-backend-bug of QoderAI/better-harness.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 34899f3

Compare with similar skills

Diagnose Backend Bug 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.

Diagnose Backend Bug compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Diagnose Backend Bug this skillQoderAI/better-harness2.4k—~1.2kAutomated safety check: PassMIT
Logging Patternsdecebals/claude-code-java7501 repos~3.3kAutomated safety check: PassMIT
Debugging Local Task Agent RunsPostHog/posthog-foss721—~2.1kAutomated safety check: NotesMIT
Update V8 Versionopeninterpreter/openinterpreter69k2 repos~845Automated safety check: PassApache-2.0
Motel Debugkitlangton/motel298—~2.2kAutomated safety check: PassMIT
Octo LoopMininglamp-OSS/octo-cli918—~2.3kAutomated safety check: PassApache-2.0

Similar skills

  • Logging Patterns

    decebals/claude-code-java

    Java logging best practices with SLF4J, structured logging (JSON), and MDC for request tracing.

    750 GitHub starsUsed in 1 repo~3.3k tokens
    DevelopmentAuto-check passed
  • Official

    Debug the output of local PostHog task runs — the wizard cloud-run path that executes inside a Docker sandbox under the local Temporal process-task workflow (the wizard that integrates PostHog, then…

    721 GitHub stars~2.1k tokensUpdated today
    DevelopmentAuto-check: notes
  • Update V8 Version

    openinterpreter/openinterpreter

    Bumps the pinned v8 and rusty_v8 versions in Codex, validates the release-candidate path with the v8-canary check, and traces failures to upstream build changes.

    69k GitHub starsUsed in 2 repos~845 tokens
    DevOps & CloudAuto-check passed
  • Motel Debug

    kitlangton/motel

    Debug applications with motel, a local OpenTelemetry ingest and query server.

    298 GitHub stars~2.2k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Octo Loop

    Mininglamp-OSS/octo-cli

    A skill your agent uses when operating the Octo Loop control plane through the octo-cli loop commands: reading or writing Fleet tasks, comments, metadata, projects, and labels; dispatching work to…

    918 GitHub stars~2.3k tokensUpdated 9 days ago
    Backend & APIsAuto-check passed
  • Correlates a Claude Code session's local transcript with a model router's production cloud logs to explain why a specific response rendered the way it did.

    5.6k GitHub stars~2.9k tokensUpdated today
    DevelopmentAuto-check passed

More from QoderAI/better-harness

All 11 skills in this repo
  • Intent Correlation Analysis

    QoderAI/better-harness

    Analyze a bounded IntentCorrelationPacketV1 and propose reviewable links among user inputs, execution slices, change units, commits, artifacts, and validation outcomes.

    2.4k GitHub stars~1.2k tokensUpdated 9 days ago
    Auto-check passed
  • Better Harness

    QoderAI/better-harness

    A skill your agent uses when /better-harness reviews the outer coding-agent Harness for lifecycle controls, repeated work, project feedback, agent assets, session outcomes, repair planning, durable…

    2.4k GitHub stars~3k tokensUpdated 9 days ago
    Auto-check passed
  • Generate Harness Dsl

    QoderAI/better-harness

    Generate, revise, or review complete Harness as Code .harness files when a coding-agent workflow, agent role, skill, tool contract, MCP connection, runtime, or deployment must be compiler-valid and…

    2.4k GitHub stars~761 tokensUpdated 9 days ago
    Auto-check passed
  • Harness Skill Creator

    QoderAI/better-harness

    A skill your agent uses when bootstrapping or tightening the smallest harness-oriented skill from an existing repository, workflow, evaluation corpus, or harness-analysis chain.

    2.4k GitHub stars~844 tokensUpdated 9 days ago
    Auto-check passed
  • Skill Review

    QoderAI/better-harness

    A skill your agent uses when reviewing Codex, Qoder, or repo-local skills and their prompt chains for trigger quality, workflow clarity, progressive disclosure, duplicated instructions, template…

    2.4k GitHub stars~802 tokensUpdated 9 days ago
    Auto-check passed
  • Reproduce Frontend Bug

    QoderAI/better-harness

    Build a bounded, replayable browser or UI bug reproduction from GitHub Issues, Jira, Aone, user-provided exports, screenshots, videos, comments, or attachments.

    2.4k GitHub stars~1.3k tokensUpdated 9 days ago
    Auto-check passed

Works with

Questions about Diagnose Backend Bug

What does Diagnose Backend Bug do?

Diagnose a bounded backend or multi-service failure from GitHub Issues, Jira, Aone, user-provided exports, logs, traces, responses, stack traces, or job records. Diagnose Backend Bug is an agent skill from QoderAI/better-harness. Diagnose a bounded backend or multi-service failure from GitHub Issues, Jira, Aone, user-provided exports, logs, traces, responses, stack traces, or job records.

When should I use Diagnose Backend Bug?

Diagnose Backend Bug fits situations like: scheduled job bug needs correlation through the projects existing observability route before repair; do not use for frontend-only defects; generic logging reviews.

How do I install Diagnose Backend Bug in Claude Code?

Run `npx skills add QoderAI/better-harness --skill diagnose-backend-bug -a claude-code`. Or copy the skill folder (case-studies/agent-customize/bug-diagnosis-skills/diagnose-backend-bug in QoderAI/better-harness) into .claude/skills/diagnose-backend-bug in your project. Claude Code loads it when a task matches its description.

How do I install Diagnose Backend Bug in Codex?

Run `npx skills add QoderAI/better-harness --skill diagnose-backend-bug -a codex`. Or copy the skill folder (case-studies/agent-customize/bug-diagnosis-skills/diagnose-backend-bug in QoderAI/better-harness) into .agents/skills/diagnose-backend-bug in your project. Codex loads it when a task matches its description.

Can I use Diagnose Backend Bug 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 QoderAI/better-harness --skill diagnose-backend-bug -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/diagnose-backend-bug, .gemini/skills/diagnose-backend-bug, .github/skills/diagnose-backend-bug and .opencode/skills/diagnose-backend-bug in your project.

What does Diagnose Backend Bug need to run?

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

Does Diagnose Backend Bug 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 Diagnose Backend Bug 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 Diagnose Backend Bug use?

Diagnose Backend Bug 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 Diagnose Backend Bug use?

About 1.2k tokens (SKILL.md is roughly 4.8k 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 Diagnose Backend Bug?

Skills that share tags, products or a category with Diagnose Backend Bug: Logging Patterns (decebals/claude-code-java, 750 stars), Debugging Local Task Agent Runs (PostHog/posthog-foss, 721 stars), Update V8 Version (openinterpreter/openinterpreter, 69k stars) and Motel Debug (kitlangton/motel, 298 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Diagnose Backend Bug?

QoderAI (a GitHub organization) maintains it in QoderAI/better-harness, which has 2,363 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on September 28, 2026.

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