AgentStack
SKILL verified MIT Self-run

Llm Wiki Setup

skill-nulightjens-ai-second-brain-skills-llm-wiki-setup · by NulightJens

Initialize a Karpathy-style LLM wiki (personal knowledge base / AI second brain) in a folder. Creates a CLAUDE.md schema with routing table and naming conventions, AGENTS.md mirror, raw/wiki directory structure, and index.md/log.md scaffolding — a complete working vault in one pass. Use when the user asks to "set up an LLM wiki", "create a second brain", "build a personal knowledge base", "instal…

No reviews yet
0 installs
10 views
0.0% view→install

Install

$ agentstack add skill-nulightjens-ai-second-brain-skills-llm-wiki-setup

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Llm Wiki Setup? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

llm-wiki-setup

Install the Karpathy LLM wiki pattern into a folder. One pass, three questions, a working vault a beginner can use immediately.

What gets created

/
├── CLAUDE.md              # the map — routing table, schema, workflows, guardrails
├── AGENTS.md              # minimal mirror for Codex and other non-Claude agents
├── .gitignore
├── raw/                   # immutable source documents (LLM reads, never writes)
│   └── .gitkeep
└── wiki/                  # LLM-owned markdown
    ├── index.md           # catalog of every page, organized by category
    └── log.md             # chronological operation log with grep-friendly prefix

Optional additions the user may request at setup time:

  • wiki/hot.md — 500-char rolling buffer for fast recent-context lookup (executive-assistant use cases)
  • Nested wiki subfolders: wiki/entities/, wiki/concepts/, wiki/sources/, wiki/analyses/

Setup flow

Ask these three questions in a single message:

  1. Vault path? Absolute path. Will be created if it doesn't exist.
  2. Flat or nested wiki? Flat is the default (Karpathy's preference — cleaner, grep-friendly). Nested adds subfolders for larger or mixed-topic vaults.
  3. Include hot cache? Optional wiki/hot.md rolling buffer. Default: no.

Build procedure

  1. Safety check. If /CLAUDE.md or /wiki/ already exists, stop and ask the user — do not overwrite without explicit confirmation.
  2. Create directories. `, /raw/, /wiki/. For nested layout, also create wiki/entities/, wiki/concepts/, wiki/sources/, wiki/analyses/`.
  3. Install the schema. Copy templates/CLAUDE.md/CLAUDE.md, replacing {{LAYOUT}} with flat or nested. Copy templates/AGENTS.md/AGENTS.md.
  4. Scaffold the wiki. Copy templates/index.md/wiki/index.md. Copy templates/log.md/wiki/log.md, replacing {{DATE}} with today's date (YYYY-MM-DD) and {{LAYOUT}} with the layout choice.
  5. Optional extras. If hot cache was requested, create /wiki/hot.md with a header comment only. Create /raw/.gitkeep.
  6. Gitignore. If /.gitignore does not exist, copy templates/gitignore/.gitignore. If it already exists, append any missing lines from the template — do not overwrite.
  7. Git init. If ` is not already a git repo: git init && git add . && git commit -m "chore: initialize LLM wiki". If it is already a git repo with a clean working tree, stage the new files and commit them separately as chore: add LLM wiki scaffold`. If the repo has uncommitted changes, stop and ask the user how to proceed.
  8. Verify. Read /CLAUDE.md back and confirm the {{LAYOUT}} placeholder was replaced. If it wasn't, fix it and amend (or create a follow-up commit).

Report to user

On completion, print exactly:

LLM wiki initialized at 

Layout: 
Hot cache: 

Next steps:
1. Drop a source into /raw/ (PDF, markdown, web clip, transcript)
2. Open Claude Code in the vault:  cd  && claude
3. Say: "Ingest the new source I just added to raw/"

Claude will read it, extract entities and concepts, write wiki pages,
update wiki/index.md, and append to wiki/log.md. A substantive source
typically touches 10–15 pages — that is normal and the whole point.

For periodic gap-filling research, install and run the wiki-self-heal skill.

Notes

  • The CLAUDE.md template is the hero file. It encodes the three-layer architecture, the routing table, naming conventions, workflows, and guardrails. Beginners read it to understand the system — it's also documentation, not just instructions for the LLM. Keep it intact during the copy; only {{LAYOUT}} is substituted.
  • The AGENTS.md template is a minimal mirror for OpenAI Codex and other non-Claude agents that don't read CLAUDE.md.
  • Never overwrite existing files without explicit user confirmation (steps 1 and 6).
  • The vault is just a git repo of markdown files. No database, no embeddings, no vector store. That is intentional — naming conventions and wiki/index.md replace RAG infrastructure at this scale.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.