ha-self-diagnosis
Skill1.7k starsChanged 8 months agoMITView on GitHub
Self-understanding and issue reporting for Hope Agent itself. Use when the user asks how Hope Agent works internally, asks about its own source code/docs/runtime behavior, reports a bug/failure/slowness/crash, asks to diagnose logs, or asks to create/submit a GitHub issue for a bug, feature request, or improvement (including when there is no bug). Chinese triggers: 自查, 了解自己, 自我诊断, 排查 Hope Agent, 提交 issue, 需求 issue, 功能改进.
Trending
Quiet since October.thin dataabout the whole repository
Who's talking about shiwenwen/hope-agent
- sudosubin/agents.nix“agent-skills.github.shiwenwen.hope-agent: 0.61.0 → 0.62.0”GitHub · Oct 5, 2026
- JDeun/SchemaRouter“External follow-up queue: HYSET, pi-jev, and hope-agent replies”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.shiwenwen.hope-agent: 0.53.0 → 0.61.0”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.shiwenwen.hope-agent: init at 0.53.0”GitHub · Oct 2, 2026
- AppImage/appimage.github.io“Add Hope_Agent”GitHub · Sep 29, 2026
The biggest 5 of 5 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- src/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- email-draftSkill
- feishuSkill
- ha-browserSkill
- ha-code-reviewSkill
- ha-coding-commonSkill
- ha-coding-planSkill
- ha-data-analyticsSkill
- ha-data-storesSkill
- ha-debugSkill
- ha-find-skillsSkill
- ha-knowledgeSkill
- ha-logsSkill
- ha-mac-controlSkill
- ha-manualSkill
- ha-multi-agent-codingSkill
- ha-pet-importSkill
- ha-self-updateSkill
- ha-settingsSkill
- ha-skill-creatorSkill
- ha-skill-installerSkill
- ha-test-strategySkill
- ha-verifySkill
- ha-workflow-scriptSkill
- meeting-notesSkill
- mermaid-diagramSkill
- office-docxSkill
- office-pptxSkill
- office-xlsxSkill
- status-reportSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Use when the user asks how Hope Agent works, where something is implemented, what a subsystem does, or how to troubleshoot an area without …
- Very specific: line 34
Read the running version: app_update(action="check") → current_version (e.g.
- Very specific: line 43
Read-only: only read / grep / find the tree.
- Distinctive: line 59
Use when the user asks to submit an issue, create a feature request, record an improvement, or report a bug.
- Very specific: line 68
If Issue Reporting setting duplicateCheckEnabled is true, call issue_report(action="search") with a concise query.
- Very specific: line 69
Call issue_report(action="draft") and show the draft summary to the user if they have not already explicitly asked to submit.
- Very specific: line 70
Call issue_report(action="create") only when the user asked to submit or after they approve the draft.
- Very specific: line 72
Never bypass the issue_report(action="create") confirmation.
- Distinctive: line 76
Use these in order:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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:
- Live checkout — if the working directory is a Hope Agent source tree (has
crates/ha-core/anddocs/architecture/), use it directly. - 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 (hascrates/). - 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/findthe tree. Nevercargo build/pnpm install/ run repo scripts.
- Read the running version:
- 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.
Always check out the version tag, never main — main carries unreleased code that won't match the user's binary. Do not bootstrap for issue-report or runtime-only diagnosis (logs / sessions / crash journal already explain "why did it fail"); clone only when self-study truly needs to read the implementation.
Workflow
Against whichever source root resolved above:
- Identify the subsystem and read the closest architecture doc under
docs/architecture/. - Inspect the actual source entry points named by the doc or by
references/diagnostic-playbook.md. - Cross-check runtime/config behavior with
get_settingswhen useful. - Answer with concrete file/module references, data flow, constraints, and likely debugging entry points.
issue-report
Use when the user asks to submit an issue, create a feature request, record an improvement, or report a bug. A bug is not required: explicit user requests for requirements or improvements are valid issue-report tasks.
Workflow:
- Classify
kindasbug,feature, orimprovement. - Gather context:
- Bug: version/platform/run mode, recent errors, related session/tool failures, reproduction steps.
- Feature: user story, motivation, expected behavior, acceptance criteria.
- Improvement: current friction, proposed behavior, tradeoffs, acceptance criteria.
- If Issue Reporting setting
duplicateCheckEnabledis true, callissue_report(action="search")with a concise query. - Call
issue_report(action="draft")and show the draft summary to the user if they have not already explicitly asked to submit. - Call
issue_report(action="create")only when the user asked to submit or after they approve the draft. The tool itself will ask for final confirmation before submitting.
Never bypass the issue_report(action="create") confirmation. Never paste raw secrets into the issue body. Evidence can be detailed, but it must be redacted and relevant. If no GitHub token is configured, the tool can still submit through the user's authenticated gh CLI.
Diagnostic Sources
Use these in order:
- Live source and docs — the working-directory checkout, or a version-matched clone under
~/.hope-agent/source-cache/(see self-study to bootstrap one). - Local runtime data under
~/.hope-agent/: start withlogs.dbandsessions.db, then the subsystem-specific store —memory.db,knowledge/index.db,cron.db,background_jobs.db,local_model_jobs.db,recap/recap.db,canvas/canvas.db— and non-DB state likecrash_journal.json/config.json. - Settings via
get_settings. - Host/runtime dependency reports: prefer the owner-visible Settings → About → Toolchain Doctor report, or run
hope-agent doctor --jsonthroughexecwhen the installed binary supports it. Treat its stable diagnostic codes as read-only evidence; never turn diagnosis into an installer, service start, Docker context switch, daemon mutation, or system upgrade. - Bundled references in this skill:
references/diagnostic-playbook.mdreferences/issue-template.md
For SQLite diagnostics, follow the read-only rules from ha-logs: use sqlite3 -readonly or Python URI mode=ro; only run SELECT / .schema / .tables.
Output Expectations
For self-study, return a technical explanation with:
- What subsystem is involved.
- The key files/modules.
- The runtime data/config involved.
- Important constraints or red lines.
- How to verify or debug it.
For issue-report, return:
- Issue kind.
- Duplicate search result summary.
- Draft title and body summary.
- Created issue URL if submitted.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

