hermes-llm-wiki: Maintaining a Recursively Growing Knowledge Base Locally with Interconnected Markdown

Introduction

When doing research or following a technical field over the long term, a common approach is to ask the model to search for material and summarize it again every time. Notes end up scattered across chat windows, bookmarks, and fragmented documents, and when you ask about the same topic again a few days later, the context has to be pieced together from scratch. Traditional RAG can retrieve fragments within a single query, but it rarely retains “already-compiled conclusions” and “citation relationships between pages” in the repository long term.

The following introduces hermes-llm-wiki on SkillHub (coordinate @user_38654c53/hermes-llm-wiki). It turns Andrej Karpathy’s LLM Wiki concept into an Agent Skill: a layer of immutable raw sources, a layer of editable Wiki pages, plus SCHEMA.md to constrain naming, tags, and update policies. Humans take responsibility for selecting sources and setting direction, while the Agent handles summarization, cross-referencing, archiving, and consistency checks.

What Is This

hermes-llm-wiki is a community-sourced (community) Skill in the knowledge management category, classified by SkillHub as knowledge-management. The current page version is 1.0.0, published under the coordinate user_38654c53 (the SkillHub page author is displayed as zhuyuanwei). The SKILL.md inside the package is maintained by Hermes Agent, licensed under MIT, and annotated with the internal skill name llm-wiki and documentation version 2.0.0 (which differs from the version number in the SkillHub listing; the package you install takes precedence).

Official description: Karpathy’s LLM Wiki — build and maintain a persistent, interlinked markdown knowledge base. Ingest sources, query compiled knowledge, and lint for consistency.

The tag side notes requires_api_key=false; you can operate on local Markdown directories following the Skill workflow without relying on an additional API Key.

Core Features

Once the Skill is activated, the Agent operates on the Wiki directory (default ~/wiki, see configuration below) according to the documented conventions. The main capabilities are as follows.

Three-Layer Directory Structure

The Wiki is a regular folder that can be opened with Obsidian, VS Code, etc.—no dedicated database required:

  • Layer 1 — raw/: Raw sources (articles, paper PDFs, transcripts, attachments), read-only and unmodified.
  • Layer 2 — entities/, concepts/, comparisons/, queries/: Agent-maintained interconnected pages using [[wikilinks]].
  • Layer 3 — SCHEMA.md: Domain scope, naming, tag taxonomy, when to create or split pages, and how to handle contradictions.

The root directory also contains index.md (a directory organized by type plus one-line summaries) and log.md (an operation log appended chronologically, rotated by year when it gets too large).

Four Core Operations

  1. Initialization: Create the above structure and write SCHEMA.md, index.md, log.md tailored to the user’s domain.
  2. Ingest: URL/file/pasted text → lands in raw/ → checked against existing pages to avoid duplication → creates or updates Wiki pages according to thresholds → updates index.md and log.md.
  3. Query: First read index.md (in large libraries, a full-text search can be performed), read the relevant pages and synthesize an answer, and write comparisons or in-depth conclusions worth retaining back into queries/ or comparisons/.
  4. Lint: Scan for orphan pages, broken links, missing index entries, frontmatter and tag non-compliance, stale content, contradictory statements, overly long pages, etc., and write the results into a lint report and the log.

Session Resume (Should Be Done First Every Time)

For existing Wikis, the Skill requires reading SCHEMA.md, index.md, and approximately the last 20–30 entries of log.md before any writes, to reduce duplicate page creation and missed cross-references.

Working with Obsidian

[[wikilinks]] and YAML frontmatter can be used directly in Obsidian; the documentation also explains that you can share the same path with Obsidian-related Skills (e.g., set OBSIDIAN_VAULT_PATH), and on machines without a graphical interface, you can use obsidian-headless for Sync (requires Node.js 22+ and an Obsidian Sync account).

Installation and Activation

Install the SkillHub CLI (If Not Yet Installed)

command -v skillhub && skillhub --version

If not installed, you can follow the official SkillHub instructions:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Install hermes-llm-wiki

When installing, you must use --dir to point to the current Agent’s skills directory; otherwise the default ./skills/ location may not be recognized. The installation hint provided on the SkillHub page is: refer to the SkillHub installation documentation and install the coordinate @user_38654c53/hermes-llm-wiki.

Example under Cursor:

skillhub install @user_38654c53/hermes-llm-wiki --dir ~/.cursor/skills/

Other common paths (excerpted from the SkillHub installation documentation): ~/.claude/skills/ for Claude Code; ~/.codex/skills/ or .agents/skills/ under the project for Codex. After installation, refresh or restart the Agent according to your client’s requirements so the Skill is loaded.

Configure the Wiki Path

The Skill documentation states that the Wiki directory is configured via the Hermes configuration item skills.config.wiki.path, defaulting to ~/wiki:

# ~/.hermes/config.yaml (Hermes Agent environment)
skills:
  config:
    wiki:
      path: ~/wiki

In clients that support Skill configuration injection, you should check the actual path in the [Skill config: ...] section after loading. If not configured, the default ~/wiki is used.

Typical Usage

The following steps come from the Skill documentation and can be triggered directly in conversation (e.g., “Create a wiki,” “Ingest this URL into the wiki,” “Answer based on the wiki…,” “Lint the wiki”).

1. Create a New Wiki

  1. Confirm the path (configuration, environment variable, or ask the user; default ~/wiki).
  2. Create the raw/ subdirectory and Layer 2 directories such as entities/.
  3. Ask about the domain scope and write a customized SCHEMA.md.
  4. Initialize index.md and log.md, and suggest the first batch of sources to ingest.

2. Ingest a Source (Overview)

WIKI="${wiki_path:-$HOME/wiki}"

Typical order on the Agent side: use web_extract etc. to fetch the URL/PDF → save to raw/articles/ or raw/papers/ → search index.md and existing pages → create or update pages according to the SCHEMA.md thresholds (each page must have at least 2 outbound [[wikilinks]]) → update index.md and log.md → list the changed files to the user.

3. Query

Read index.md to locate pages → use read_file to read them → synthesize an answer citing [[page-name]] → if the answer is worth keeping long-term, write it into queries/ or comparisons/ and log it.

4. Search Within the Wiki (Example)

WIKI="${wiki_path:-$HOME/wiki}"
# Search by content (called by the Agent using search_files etc.)
search_files "transformer" path="$WIKI" file_glob="*.md"

5. Lint

Validate the link graph, index alignment, frontmatter and tag taxonomy across directories such as entities/ and concepts/, output repair suggestions by severity, and append a lint entry to log.md.

Use Cases and Considerations

Who it suits: People who need to maintain knowledge in a domain long term, want notes that can be version-controlled and manually reviewed, and are willing to use Markdown plus bidirectional links instead of a standalone vector database. AI/ML research notes, technical material aggregation, personal knowledge bases, etc., are all listed in the Skill’s Chinese documentation.

Limitations and pitfalls (all from the Skill documentation):

  • Do not modify files inside raw/; corrections should be written in Wiki pages.
  • Skipping the step of “first reading SCHEMA / index / log” easily leads to duplicate pages and missing cross-references.
  • New pages must meet the thresholds, and index.md and log.md must be maintained; otherwise navigation will degrade.
  • Tags can only use the taxonomy already declared in SCHEMA.md; contradictory information should be annotated with source and date rather than silently overwritten.
  • Large-scale updates (e.g., a single ingest affecting 10+ pages) should have their scope confirmed with the user first.
  • The tool names described in the Skill (such as web_extract, search_files, execute_code) depend on whether the host Agent provides capabilities with the same names; in Cursor they should be mapped to the fetching and search tools available in the current environment.

SkillHub statistics (at time of fetching): rating 100000, downloads 1671, installations 75.

Conclusion

hermes-llm-wiki turns “one question, one retrieval” into “continuous organization, queryable, auditable” local Wikis: sources are immutable, knowledge pages can compound, and lint backstops consistency. If you want to implement a Karpathy-style LLM Wiki in your Agent, you can install this coordinate from SkillHub and initialize ~/wiki (or your configured path) according to the documentation.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye