ha-debug

ha-debug is a skill for Claude Code from shiwenwen/hope-agent. It costs 43 tokens per session (731 once invoked), scanned A, original, MIT.

An evidence-based method for finding and fixing software problems such as crashes, regressions, flaky behaviour, and incorrect output. It traces the smallest likely cause and checks that the failing path is fixed.

In plain words
What is it for?
Use it to investigate failures, rank testable explanations, reproduce or describe issues, make the smallest root-cause fix, and verify the result.
Why use it?
It reduces guesswork during debugging by focusing on symptoms, reproduction details, logs, recent changes, and other evidence. It also accounts for problems that happen only sometimes or under specific conditions.

Skill for Claude Code

Written for Claude Code: paths in frontmatter.

Good fit Use it to investigate failures, rank testable explanations, reproduce or describe issues, make the smallest root-cause fix, and verify the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shiwenwen/hope-agent/ha-debug
About the project

Hope Agent is a cross-device personal AI assistant that remembers context, uses tools, and continues working toward goals through dynamically organized workflows. Individuals use it from desktop, web, server, or messaging environments to manage projects, knowledge, designs, and long-running tasks. The catalogue add-ons extend its agent workflows and capabilities.

shiwenwen/hope-agent · 1,553 stars · on GitHub

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 shiwenwen/hope-agent --skill ha-debug
Clone the repo
git clone --depth 1 https://github.com/shiwenwen/hope-agent

Made for: Claude Code.

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 ha-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/shiwenwen/hope-agent/ha-debug.svg)](https://agentmods.dev/skills/shiwenwen/hope-agent/ha-debug)
Your own site
<a href="https://agentmods.dev/skills/shiwenwen/hope-agent/ha-debug"><img src="https://agentmods.dev/badge/skills/shiwenwen/hope-agent/ha-debug.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 731 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found 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.00043 $0.00731
Opus 5 $0.00022 $0.00365
Sonnet 5 $0.00009 $0.00146
Haiku 4.5 $0.00004 $0.00073

Measured 8d ago against content hash 619d49e11a9a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

ha-debug 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 8d 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.

skills/ha-debug/SKILL.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hope Debug

Debug from evidence, not from the first plausible explanation. This is a decision process, not a mandatory four-stage ceremony.

1. Characterize The Failure

Capture the strongest available evidence:

  • Exact symptom, expected behavior, and observed behavior.
  • Reproduction steps, failing command, stack trace, log range, or persisted state.
  • Whether it is deterministic, intermittent, platform-specific, data-specific, or timing-sensitive.
  • Recent relevant diffs, dependency/config changes, and known-good boundary.

If reproduction is unsafe or requires unavailable credentials, characterize it from logs, fixtures, state, and code paths. State the evidence gap explicitly.

2. Bound The Fault

Trace the smallest credible path through inputs, state transitions, persistence, concurrency boundaries, and outputs. For multi-component systems, compare what crosses each boundary rather than adding broad instrumentation everywhere.

Common high-value checks:

  • Stale or duplicated persisted state.
  • Error swallowing, fallback, retry, cancellation, and timeout paths.
  • Async ordering, locks, process boundaries, and late results.
  • Platform, locale, permission, path, and environment assumptions.
  • Mismatch between source-of-truth data and UI projection.

3. Rank Falsifiable Hypotheses

Keep one or two active hypotheses. For each, write:

  • Why it explains the evidence.
  • What observation would disprove it.
  • The cheapest discriminating check.

Run the discriminating check before editing when practical. If a tiny, obvious fix is itself the cheapest safe experiment, keep it reversible and inspect the result before broadening scope.

4. Fix The Root Cause

  • Patch the smallest ownership boundary that restores the contract.
  • Avoid subsystem rewrites before the fault is proven.
  • Preserve unrelated user work and existing public behavior.
  • Add defense-in-depth only when it covers a demonstrated adjacent failure, not as speculative cleanup.

After two failed fix attempts, stop patching variants. Re-read the original evidence, challenge the shared assumption, and narrow the boundary again.

Read the full file on GitHub · 87 lines

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. 8d ago First seen · 87 lines · 43 tokens per session scan A 619d49e11a9a

Subscribe to this mod's changes

ha-debug is a skill published in the GitHub repository shiwenwen/hope-agent (1,553 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 731 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

memory

Use this skill when Pioneer should proactively use durable memory or recalled context: decide whether memory can improve a turn, answer from remembered user/project facts, request memory tools, search/list/get stored memories, save durable preferences or project decisions, forget memories, audit or clean up memory, or…

pioneerdotai/pioneer · 64 tokens

subagents

Use this skill when Pioneer should delegate current-turn work to attached task-backed subagents, coordinate parallel child agents, wait for child results, review/revise/accept/cancel/detach attached work, or synthesize accepted child results into the parent answer.

pioneerdotai/pioneer · 54 tokens

tasks

Use this skill when Pioneer should create, inspect, update, reschedule, pause, resume, troubleshoot, or configure delivery for durable tasks, scheduled tasks, recurring tasks, interval tasks, cron jobs, background work, or existing task state.

pioneerdotai/pioneer · 50 tokens

aetox-debug

วินัยแก้บั๊กที่ห้ามแก้จนกว่าจะรู้ต้นเหตุจริง - อ่าน error เต็ม ยืนยันซ้ำได้ ตั้งสมมติฐานเป็นประโยค ทดสอบทีละตัวแปร พลาดครบ 3 ครั้งแล้วให้หยุดถามสถาปัตยกรรมแทนแก้ต่อ อ่านตัวนี้ก่อนแก้บั๊ก/test ล้ม/พฤติกรรมที่ไม่คาดคิด ก่อนเสนอทางแก้ใดๆ.

Mikedev115/Aetox · 104 tokens

ci-triage

How to find out why a GitHub Actions run failed, and how to tell a real failure from a flake or an infrastructure problem. Use when a check is red, a workflow is stuck, or a run needs re-running.

Mikedev115/Aetox · 52 tokens

browser

Headless web browsing: navigation, page inspection, interaction, data extraction, screenshots, PDFs, and browser session management.

pioneerdotai/pioneer · 26 tokens