ha-knowledge

ha-knowledge is a skill for Claude Code, Codex from shiwenwen/hope-agent. It costs 187 tokens per session (1,736 once invoked), scanned A, original, MIT.

A working method for managing Markdown notes in a knowledge base, including finding existing notes, creating or editing notes, and linking related notes. A knowledge base is a collection of information organized for later retrieval.

In plain words
What is it for?
Use it when capturing, organizing, restructuring, searching, editing, or linking notes in an attached knowledge base.
Why use it?
It helps prevent new notes from becoming isolated files that are difficult to find and connect to existing knowledge.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when capturing, organizing, restructuring, searching, editing, or linking notes in an attached knowledge base.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shiwenwen/hope-agent/ha-knowledge
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,561 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-knowledge
Clone the repo
git clone --depth 1 https://github.com/shiwenwen/hope-agent

Made for: Claude Code, Codex.

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-knowledge

README.md
[![agentmods](https://agentmods.dev/badge/skills/shiwenwen/hope-agent/ha-knowledge/github.svg)](https://agentmods.dev/skills/shiwenwen/hope-agent/ha-knowledge)
Your own site
<a href="https://agentmods.dev/skills/shiwenwen/hope-agent/ha-knowledge"><img src="https://agentmods.dev/badge/skills/shiwenwen/hope-agent/ha-knowledge/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-knowledge

Your own site · 80×15
<a href="https://agentmods.dev/skills/shiwenwen/hope-agent/ha-knowledge"><img src="https://agentmods.dev/badge/skills/shiwenwen/hope-agent/ha-knowledge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 187 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,736 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.00187 $0.01736
Opus 5 $0.00093 $0.00868
Sonnet 5 $0.00037 $0.00347
Haiku 4.5 $0.00019 $0.00174

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

Security

Grade A, and why

ha-knowledge 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 9d 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-knowledge/SKILL.md · 122 lines

How it starts

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

Knowledge Space — operating method

Notes in a Hope Agent knowledge base are real .md files on disk — the file is the single source of truth; the search index, link graph, and tags are a rebuildable cache derived from it. Your job is to keep that corpus coherent: the value of a knowledge base is in its links, not its file count.

The note_* tools only appear when a knowledge base is attached to the session. If you don't see them, no KB is accessible — tell the user to attach one (in the composer's KB picker, or project settings) rather than guessing.

Before writing, orient. A blind note_create produces an orphan that no one will ever find again. The discipline that separates a knowledge base from a pile of files is: every new note gets wired into the graph in the same turn you create it.

  1. Orientnote_search (hybrid full-text + vector) for existing notes on the topic. For a known note, note_read returns its content plus its links, backlinks, and tags in one call — read it before editing.
  2. Act — create / edit (see tool guide below).
  3. Link — connect the new or changed note to what's already there (note_link, or note_suggest_links to find unlinked mentions). A note with zero links is an orphan; check with note_orphans periodically.

Tool selection — pick the narrowest tool

Reading / discovery

  • note_search — find notes by topic (hybrid FTS + semantic). Your default entry point.
  • note_read — one note's full content + its links / backlinks / tags.
  • note_similar — semantically nearest notes (vector KNN) to a given note.
  • note_related — fused recall: backlinks ∪ out-links ∪ vector ∪ shared tags. Use when you want "everything connected to this", not just text matches.
  • note_backlinks / note_by_tag / note_tags — graph + tag lookups.
  • note_graph / note_orphans / note_broken_links — structural health.
  • knowledge_recall — when you need both long-term memory and notes in one query. It keeps the two result sets separate; don't treat it as a notes-only search (use note_search for that).

Read the full file on GitHub · 122 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. 9d ago First seen · 122 lines · 187 tokens per session scan A e3cfcae35e44

Subscribe to this mod's changes

ha-knowledge is a skill published in the GitHub repository shiwenwen/hope-agent (1,561 stars, last pushed today), licensed MIT. It adds 187 tokens to every session and 1,736 once invoked, about $0.0009 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

memory-generation

A guide for deciding when the assistant should create a memory about something the user explicitly wants remembered or about a useful lesson.

kawayiYokami/P-ai · 44 tokens

browser

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

pioneerdotai/pioneer · 26 tokens

technology-search

Search tech blogs, developer forums, and IT media (TechCrunch, Hacker News, 36氪, etc.) for software and hardware industry updates with heat ranking and EN↔CN translation. Use this skill only when the topic is clearly about programming, software, hardware, AI, or IT infrastructure.

netease-youdao/LobsterAI · 65 tokens