ha-self-diagnosis

ha-self-diagnosis is a skill for Claude Code from shiwenwen/hope-agent. It costs 114 tokens per session (1,460 once invoked), scanned A, original, MIT.

A self-diagnosis skill for investigating Hope Agent’s own behavior, source code, documentation, runtime problems, or reported issues.

In plain words
What is it for?
Use it to study internal features, troubleshoot crashes or slow behavior, inspect relevant source and documentation, or prepare a GitHub issue.
Why use it?
It helps explain how Hope Agent works and turn confirmed bugs or improvement requests into useful reports.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to study internal features, troubleshoot crashes or slow behavior, inspect relevant source and documentation, or prepare a GitHub issue.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shiwenwen/hope-agent/ha-self-diagnosis
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,597 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-self-diagnosis
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-self-diagnosis

README.md
[![agentmods](https://agentmods.dev/badge/skills/shiwenwen/hope-agent/ha-self-diagnosis/github.svg)](https://agentmods.dev/skills/shiwenwen/hope-agent/ha-self-diagnosis)
Your own site
<a href="https://agentmods.dev/skills/shiwenwen/hope-agent/ha-self-diagnosis"><img src="https://agentmods.dev/badge/skills/shiwenwen/hope-agent/ha-self-diagnosis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ha-self-diagnosis

Your own site · 80×15
<a href="https://agentmods.dev/skills/shiwenwen/hope-agent/ha-self-diagnosis"><img src="https://agentmods.dev/badge/skills/shiwenwen/hope-agent/ha-self-diagnosis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,460 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 59
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00114 $0.01460
Opus 5 $0.00057 $0.00730
Sonnet 5 $0.00023 $0.00292
Haiku 4.5 $0.00011 $0.00146

Measured 12d ago against content hash 4926449b65c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

ha-self-diagnosis 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 12d 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-self-diagnosis/SKILL.md · 104 lines

How it starts

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

Hope Agent Self-Diagnosis

You are Hope Agent investigating Hope Agent. Your job is to understand the app's own implementation and turn findings or user requests into useful answers or GitHub issues.

Modes

Choose exactly one primary mode from the user's request.

self-study

Use when the user asks how Hope Agent works, where something is implemented, what a subsystem does, or how to troubleshoot an area without necessarily reporting a bug.

Resolve a source root first

self-study is best grounded in real source plus docs/architecture/. Pick the first that applies:

  1. Live checkout — if the working directory is a Hope Agent source tree (has crates/ha-core/ and docs/architecture/), use it directly.
  2. Bootstrap by version — a packaged install has no source tree. When the question needs implementation detail (not just runtime behavior), clone the matching release once into a reusable cache:
    • Read the running version: app_update(action="check")current_version (e.g. 0.10.0).
    • Reuse ~/.hope-agent/source-cache/v<version>/ if it already exists and looks complete (has crates/).
    • Otherwise shallow-clone that exact tag over anonymous HTTPS (never the SSH remote — packaged users can't auth it):
      git clone --depth 1 --branch v<version> \
        https://github.com/shiwenwen/hope-agent.git \
        ~/.hope-agent/source-cache/v<version>
      
    • docs/architecture/ ships inside the clone, so docs and source arrive together. Per-version dir; old ones are safe to delete.
    • Read-only: only read / grep / find the tree. Never cargo build / pnpm install / run repo scripts.
  3. Bundled fallback — if there is no network, the clone fails, or the tag does not exist (nightly / self-built), fall back to references/diagnostic-playbook.md (its Subsystem Reference names the doc, entry module, database, and log category per subsystem) and say the answer is based on bundled references, not live source.

Read the full file on GitHub · 104 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 104 lines · 114 tokens per session scan A 4926449b65c7

Subscribe to this mod's changes

ha-self-diagnosis is a skill published in the GitHub repository shiwenwen/hope-agent (1,597 stars, last pushed 3d ago), licensed MIT. It adds 114 tokens to every session and 1,460 once invoked, about $0.0006 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