Skip to content
Back to skills

Wiki Maintainer

ASecurity

Build and maintain a personal LLM Wiki: a local, interlinked markdown knowledge base compiled from raw sources. Use when the user wants to set up a knowledge wiki, ingest or compile sources into it, ask grounded questions of it, lint wiki health, find knowledge gaps, generate publishable outputs from wiki content, or export a concise context layer for a downstream assistant. Triggers include "set up my LLM wiki", "compile my wiki", "add this source to my wiki", "ask my wiki", "lint my wiki", ...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 27, 2026
ai-agentspythonbashgit

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 27, 2026

npx -y skills add Laksh-star/agent-skills --skill wiki-maintainer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Wiki Maintainer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Wiki Maintainer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/laksh-star-wiki-maintainer/badge)](https://www.skillsdirectory.com/skills/laksh-star-wiki-maintainer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: wiki-maintainer
description: >
  Build and maintain a personal LLM Wiki: a local, interlinked markdown
  knowledge base compiled from raw sources. Use when the user wants to set up
  a knowledge wiki, ingest or compile sources into it, ask grounded questions
  of it, lint wiki health, find knowledge gaps, generate publishable outputs
  from wiki content, or export a concise context layer for a downstream
  assistant. Triggers include "set up my LLM wiki", "compile my wiki", "add
  this source to my wiki", "ask my wiki", "lint my wiki", "what gaps does my
  wiki have", and "export agent context".
---

# Wiki Maintainer

Maintain a personal LLM Wiki: a local folder of markdown files that the agent compiles and keeps current from the user's raw source material. This adapts the Karpathy LLM Wiki pattern with domains, bridge articles, optional voice capture, publishable outputs, and an agent-export layer.

The human curates sources and asks questions. The agent does the writing and bookkeeping: summarizing, cross-referencing, filing, linting, and logging.

## Architecture

Four layers live in the wiki root:

```text
raw/           Immutable source material. Read but never modify.
               Suggested subfolders: feeds/ books/ videos/ newsletters/
               memories/ journal/ voice/ web/
wiki/          Canonical knowledge base: concept articles, entity articles,
               bridge articles, and meta files such as index.md, inbox.md,
               log.md, voice.md, and about.md.
outputs/       Audience-facing artifacts generated on request.
agent_exports/ Concise context layer for a downstream assistant.
```

Always read the vault's agent instruction file (`AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, or `CODEX.md`) and `wiki/about.md` first if present. Those files define the user's domains, naming, and local conventions and override the defaults here.

## Core Principles

1. Keep memory explicit and visible as plain markdown files.
2. Treat `raw/` as source truth and never edit it.
3. Compile new sources into existing thinking, not just retrieval notes.
4. Compound every ingest by updating related existing articles.
5. Cite sources and flag contradictions instead of silently replacing prior claims.
6. The human curates; the agent maintains. Never invent sources.

## Article Frontmatter

Every article should start with:

```yaml
---
title: Human-readable title
tags: [tag1, tag2]
created: YYYY-MM-DD
source: "Full citation"
source_type: feed | book | video | newsletter | memory | journal | voice | web
content_type: informative | explainer | opinion | framework | bridge | entity | memory
status: processed
domains: [domain-a, domain-b]
voice: false
---
```

Derive `source_type` from the `raw/` subfolder when possible. Use only domains declared by the vault.

## Setup A New Vault

When asked to set up a wiki:

1. Confirm the target folder. Create it if needed.
2. Ask for 3-6 domains and whether to enable voice capture.
3. Create:

```text
raw/feeds/ raw/books/ raw/videos/ raw/newsletters/
raw/memories/ raw/journal/ raw/voice/ raw/web/
wiki/
outputs/
agent_exports/
```

4. Write a compact `AGENTS.md` at the vault root with the chosen domains, frontmatter rules, bridge-article rule, compounding rule, and the main operations from this skill. If the user's agent reads a different file (`CLAUDE.md`, `GEMINI.md`, `CODEX.md`), write the same content there too or point it at `AGENTS.md`.
5. Seed:
   - `wiki/index.md` with a heading for each domain.
   - `wiki/inbox.md` as the processing queue.
   - `wiki/log.md` with `## [YYYY-MM-DD] setup | vault created`.
   - `wiki/about.md` with domains, frontmatter reference, and operation list.
   - `wiki/voice.md` only if voice capture is enabled.
6. Ask before initializing git. If approved, run `git init`, add a small `.gitignore`, and make an initial commit.
7. End with next steps: open the folder in Obsidian or any markdown editor, drop a source under `raw/`, then ask the agent to compile the wiki.

Keep setup idempotent. If important files already exist, report what exists and ask before overwriting.

## Compile Sources

For each new file in `raw/` or a user-specified raw path:

1. Read the vault conventions and determine whether the source is already marked done in `wiki/inbox.md`.
2. Read the source. For PDFs, use `pdftotext` or another available extractor without modifying the original.
3. Create or update a concept/entity/bridge article with full frontmatter, `## Summary`, topic sections, `## Related`, and `## Sources`.
4. Revisit 5-10 related existing articles and update them with links, evidence, or flagged contradictions.
5. Keep `[[wikilinks]]` bidirectional.
6. Capture voice lines only when the vault enables voice capture and only from text the user actually wrote or said.
7. Update `wiki/index.md`, mark the source done in `wiki/inbox.md`, and append to `wiki/log.md`.
8. Summarize sources processed, new articles, updated articles, bridge articles, voice lines, and unresolved questions.

A single source should usually touch multiple wiki pages. If a source is low signal, explain why and leave it unprocessed unless the user asks.

## Bridge Articles

Bridge articles connect two or more declared domains. When a source spans domains:

- Set `content_type: bridge`.
- Add `bridge` to `tags`.
- In `## Summary`, name the connection explicitly, such as `A bridge between ai-strategy and consulting: ...`.

Prefer bridge articles when they capture the user's distinctive synthesis.

## Query The Wiki

For Q&A:

1. Read `wiki/index.md` first.
2. Read only targeted relevant articles.
3. Answer with `[[article]]` citations so the user can verify.
4. Offer to file valuable syntheses back as new pages with `source_type: journal`.

Do not answer from memory alone when the wiki files are available.

## Index And Log Conventions

- `wiki/index.md` catalogs every page as a link plus a one-line summary, grouped by domain. Update it on every ingest and read it first on any query.
- `wiki/log.md` is append-only and chronological. Prefix entries consistently, such as `## [YYYY-MM-DD] compile | <title>`, so the log stays greppable.
- Don't over-build: at small scale the index file is enough. Skip vector search until the wiki reaches hundreds of pages.

## Lint And Repair

Use the bundled scripts. They live in this skill's `scripts/` folder (resolve `<skill-dir>` to the directory containing this SKILL.md) and are pure Python 3 standard library:

```bash
python3 <skill-dir>/scripts/lint.py --wiki ./wiki
python3 <skill-dir>/scripts/backlinks.py --wiki ./wiki          # report
python3 <skill-dir>/scripts/backlinks.py --wiki ./wiki --fix    # repair
```

The linter checks broken links, asymmetric backlinks, orphan pages, and missing frontmatter. With `--fix`, repair asymmetric backlinks only. Contradictions and stale claims require agent review; flag them for the user and do not auto-resolve.

Append a concise lint entry to `wiki/log.md`, for example:

```text
## [YYYY-MM-DD] lint | 4 backlinks repaired, 1 stale claim flagged
```

## Next Actions

For gap analysis:

1. Read `wiki/log.md`, `wiki/index.md`, and domain distribution.
2. Identify thin domains, missing bridge opportunities, concepts mentioned without pages, and questions worth investigating.
3. Separate content gaps from sourcing gaps. If a gap persists across repeated checks, call it a sourcing problem and tell the user what to add to `raw/`.
4. Append a short entry to `wiki/recommendations.md`.

## Outputs

Generate audience-facing artifacts into `outputs/` and never modify `wiki/` unless the user asks for the output to become part of the wiki.

Common formats:

- `medium` -> `outputs/medium--<slug>.md`
- `newsletter` -> `outputs/newsletter--<YYYY-WW>.md`
- `thread` -> `outputs/thread--<slug>.md`
- `deck` -> `outputs/deck--<slug>.md` with Marp frontmatter

Draw only from wiki content and carry citations through.

## Agent Export

Distill the current wiki into short files under `agent_exports/`:

- `wiki-brief.md`
- `active-projects.md`
- `writing-style.md`
- `reusable-frameworks.md`
- `article-pipeline.md`
- `assistant-context.md`

Keep these operational and concise. They orient a downstream assistant without replacing the deeper wiki.

## Helper Script

Use the article scaffold helper for new pages when it saves time:

```bash
python3 <skill-dir>/scripts/new_article.py --wiki ./wiki \
  --slug forward-deployed-engineer \
  --title "Forward-Deployed Engineer Model" \
  --domains ai-strategy,consulting \
  --source "raw/feeds/fde.md" \
  --source-type feed \
  --type bridge
```

The helper refuses to overwrite existing articles. After creating a scaffold, fill in the article and add bidirectional links.

Files in this skill

  • SKILL.md8.5 KB
  • agents/openai.yaml366 B
  • scripts/backlinks.py2.3 KB
  • scripts/lint.py3.2 KB
  • scripts/new_article.py2.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.