Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Llm Wiki?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hybridaione-llm-wiki)
---
name: llm-wiki
description: Build and maintain a persistent markdown wiki from raw sources using incremental ingest, indexed pages, and append-only logging.
user-invocable: true
metadata:
hybridclaw:
category: memory
short_description: Persistent markdown wiki.
tags:
- wiki
- knowledge-base
- research
- markdown
related_skills:
- pdf
- notion
---
# LLM Wiki
Use this skill when the user wants a persistent knowledge base that compounds
over time instead of answering from raw documents from scratch on every turn.
## Core Model
Treat the wiki as three layers:
- `raw/` is the immutable source collection. Read from it; do not edit or
rewrite it during normal maintenance.
- `wiki/` is the maintained knowledge layer. This is where summaries, entity
pages, concept pages, and durable analyses live.
- `AGENTS.md`, `index.md`, and `log.md` define and track the system:
`AGENTS.md` is the schema and workflow contract, `index.md` is the catalog,
and `log.md` is the append-only timeline.
This is not a one-shot note dump. The goal is to integrate new information into
existing pages, preserve cross-references, and keep the wiki internally
coherent as the source set grows.
## Resolve The Wiki Root
Use this order:
1. a HybridAI knowledge collection, when the `knowledge_*` tools are available
and the knowledge is meant for the company, a team, or other agents (see
"Platform Collection Mode" below)
2. a user-specified wiki root
3. an already-structured repo or vault containing `raw/`, `wiki/`, `index.md`,
and `log.md`
4. a confirmed markdown vault or notes repo chosen by the user
5. the current workspace only if the user explicitly wants the wiki here
Do not assume the current workspace is the wiki root just because it contains
Markdown files. Do not start a Git repository or a local folder for knowledge
the user wants to share when a platform collection is available.
If the target is an Obsidian vault, also follow `skills/obsidian/SKILL.md`.
## Platform Collection Mode
When the HybridAI tools `knowledge_list`, `knowledge_read`, `knowledge_write`
and `knowledge_search` are available (hosted agents have them; a local install
with a HybridAI API key gets them through the same gateway; they appear as
`hybridai__knowledge_*`), the wiki can live as a **knowledge collection on the
HybridAI platform**. `knowledge_create_collection` is only needed when no
suitable collection exists and the user wants one created. The platform keeps the
pages, renders the index and the log, indexes every section for search, and
applies the company's roles. Other agents and people in the company read the
same collection in the HybridAI app.
Prefer this mode whenever the user talks about company knowledge, a shared
wiki, or anything the team should see. A folder wiki is for one user's local
notes.
The same model applies, with these differences:
- **Root.** A collection. `knowledge_list` without arguments lists the
collections you can access; `knowledge_list` with a collection lists its
pages. Pick the collection the user means, or ask. Creating one needs
`knowledge_create_collection` (company admin or owner).
- **Layout.** No `wiki/` prefix. Pages live directly under `sources/`,
`entities/`, `concepts/` and `analyses/`; the folder sets the page type.
`AGENTS.md` is a page you read and write like any other.
- **`raw/` is not writable.** Sources are ingested by the platform, not by
you. When the user hands you a document, read it and write its source
summary page under `sources/`; cite it in `sources:` frontmatter. Do not try
to store the original anywhere.
- **`index.md` and `log.md` are generated.** The platform renders them from
the pages' frontmatter and revisions. Read them to orient; never write them.
Every `knowledge_write` with a `reason` is the log entry.
- **Writes are check-and-set.** `knowledge_read` returns a `content_hash`;
pass it as `expected_hash` when overwriting. Omit it only to create a page.
On a conflict the tool returns the current hash: read again and retry once.
- **Search is a tool, not grep.** `knowledge_search` returns page sections
as `path#anchor` with a snippet. Use it before creating anything and when
answering; follow up with `knowledge_read` for the full page. Cite as
`path#anchor`.
- **Frontmatter.** The index is rendered from `title`, `type`, `tags` and a
one-line `summary`, so always set `summary`. The platform sets `created` and
`updated` from revisions; you may omit them.
- **Links.** Wikilinks are `[[entities/acme]]` without `wiki/` and without
`.md`.
The workflows below are written for the folder layout. In collection mode
read them through this mapping, which overrides any file step:
- `wiki/<family>/page.md` means the page `<family>/page.md` in the collection.
- "create the layout" or "seed starter files" means nothing: a collection has
its families from the start, and the schema page is one page among the others,
`AGENTS.md` included.
- "capture into `raw/`" means: read the source and write its summary page
under `sources/`; the original is not stored by you.
- "update `index.md`" and "append to `log.md`" mean: give the
`knowledge_write` a one-line `reason`; both files are rendered from that.
- "search across `wiki/**/*.md`" means `knowledge_search`.
Workflow mapping:
- Orient: `knowledge_read` `AGENTS.md` (if present), `index.md`, `log.md`.
- Ingest: read the source, `knowledge_search` for related pages, create or
update pages with `knowledge_write` and a one-line `reason`.
- Query: `knowledge_search`, read the pages, answer with `path#anchor`
citations; save a durable answer under `analyses/`.
- Lint: compare `index.md` against the pages and fix through writes; the
platform reports stale and orphaned pages in a later version.
## Orient Every Session
When the user already has a wiki, always orient yourself before acting:
1. Read `AGENTS.md` first to understand the local schema, domain, taxonomy,
link style, and workflow rules.
2. Read `index.md` to learn what pages exist and how the wiki is organized.
3. Read the most recent entries in `log.md` to understand recent ingest, query,
lint, archive, and cleanup activity.
4. For large wikis, search the relevant topic across `wiki/**/*.md` before
creating anything new.
Do this every session before ingest, query, lint, archive, or broad cleanup.
Skipping orientation causes duplicate pages, weak cross-references, and schema
drift.
## Default Layout
Unless the user already has a stronger convention, initialize or preserve this
shape:
- `raw/`
- `raw/assets/`
- `wiki/`
- `wiki/sources/`
- `wiki/entities/`
- `wiki/concepts/`
- `wiki/analyses/`
- `index.md`
- `log.md`
- `AGENTS.md`
Use the starter files in `skills/llm-wiki/templates/` when bootstrapping a new
wiki. Copy only missing files unless the user asks to replace existing ones.
## Initialization Workflow
Folder wikis only. In collection mode there are no folders or starter files
to seed; the schema page `AGENTS.md` is a normal page of the collection.
When the wiki does not exist yet:
1. Confirm the wiki root.
2. Create the default layout.
3. Seed missing starter files from `skills/llm-wiki/templates/`.
4. Adapt `AGENTS.md` to the user's domain if they gave one.
5. Add an initialization entry to `log.md`.
Do not overwrite an existing `AGENTS.md`, `index.md`, or `log.md` without
reading them first.
## Schema Contract
`AGENTS.md` is the local schema for the wiki. It should define:
- the domain and out-of-scope topics
- file naming and link conventions
- the frontmatter contract for maintained pages
- the allowed tag taxonomy
- page thresholds for create vs update vs split
- update policy for contradictions and superseded claims
When bootstrapping or upgrading a wiki, make sure `AGENTS.md` contains a usable
schema, not just a short description.
The authoritative default schema lives in
`skills/llm-wiki/templates/AGENTS.md`. Use that file as the source of truth for
default frontmatter, taxonomy, page thresholds, lint checks, archive behavior,
and link style. Adapt the copied `AGENTS.md` to the user's domain
instead of duplicating those defaults here.
## Ingest Workflow
In collection mode, apply the mapping from "Platform Collection Mode": no
`raw/` capture, no `index.md` or `log.md` edits, a `reason` on every write.
When the user asks to ingest a source:
1. Orient first by reading `AGENTS.md`, `index.md`, and recent `log.md`.
2. Capture or read the source from `raw/` or the user-provided path.
3. Create or update a source summary page under `wiki/sources/`.
4. Search the wiki for relevant entities, concepts, and analyses before
creating anything new.
5. Update relevant entity, concept, and analysis pages instead of duplicating
facts across many unrelated notes.
6. Update `index.md` for every created, renamed, archived, or merged page.
7. Append a structured entry to `log.md` listing the files created or updated.
Preferred source page sections:
- summary
- key facts
- claims and evidence
- related entities or concepts
- open questions
- source details
Favor synthesis over excerpt hoarding. Pull forward the durable information and
cite where it came from.
When a source conflicts with existing wiki content:
1. check dates and provenance
2. record both positions if the conflict is real
3. mark the disagreement explicitly in the affected page
4. surface it in lint results if still unresolved
If one ingest would touch many pages, narrate the scope clearly before making a
large coordinated update.
Apply the local `AGENTS.md` rules for frontmatter, tags, thresholds, page
shape, and link style. If the wiki still uses the default bundled schema, that
means following the defaults copied from `skills/llm-wiki/templates/AGENTS.md`.
## Query Workflow
In collection mode, step 3 is `knowledge_search` and citations are
`path#anchor`.
When answering a wiki question:
1. Orient first.
2. Read `index.md` to find the relevant pages.
3. For large wikis, search for key terms across the wiki before choosing pages.
4. Read only the relevant wiki pages and source summaries.
5. Answer with citations back to wiki pages and, when helpful, raw sources.
6. If the answer is durable, save it under `wiki/analyses/` and log it.
Do not pretend the wiki is comprehensive. Call out gaps, unresolved questions,
and contradictions clearly.
## Lint Workflow
When the user asks for a health check, audit the wiki against the rules in the
local `AGENTS.md`.
If the wiki uses the bundled default schema, the checks in
`skills/llm-wiki/templates/AGENTS.md` are authoritative. Report findings by
severity, then record meaningful lint passes in `log.md`.
## Working With The Wiki
### Bulk Ingest
In collection mode, steps 5 and 6 fall away: every write carries its own
`reason`, and the index follows the pages.
When ingesting multiple sources at once:
1. read all sources first
2. identify shared entities and concepts across the batch
3. search the wiki once before writing
4. update all affected pages in one pass
5. update `index.md` once at the end
6. write one clear batch entry to `log.md`
For archive behavior, page shape, link style, and other
schema defaults, defer to the local `AGENTS.md`. If the wiki was bootstrapped
from the bundled defaults, `skills/llm-wiki/templates/AGENTS.md` is the
authoritative reference.
## Logging Convention
Folder wikis only. In collection mode the log is rendered from revisions; the
`reason` of a write is the entry, phrased like the lines below without the
heading markup.
Use headings like:
```md
## [2026-04-07] create | Wiki initialized
## [2026-04-07] ingest | Source Title
## [2026-04-07] query | Market map of competitors
## [2026-04-07] lint | Weekly health check
## [2026-04-07] archive | Superseded page
```
Keep log entries concise but specific about what changed, which files moved, and
what follow-ups remain. Rotate long logs when they stop being usable.
## Pitfalls
- Do not keep a company wiki in a Git repository or a local folder when a
platform collection is available; the collection is the source of truth.
- Do not edit or delete files under `raw/` unless the user explicitly asks.
- Do not skip orientation on an existing wiki.
- Do not answer solely from raw sources when the wiki already contains the
relevant synthesis.
- Do not create placeholder pages with no substance just to increase coverage.
- Do not drift from the local `AGENTS.md` schema defaults or customizations.
- Do not let `index.md` or `log.md` drift behind the actual wiki state.