llm-wiki-local-first-stack

llm-wiki-local-first-stack is a skill for Claude Code, Codex from po4yka/llm-wiki-skills. It costs 81 tokens per session (717 once invoked), scanned A, original, MIT.

A guide for building an LLM-Wiki that keeps its files and search data on the user's own computer. It focuses on Markdown, Git, local search, local indexes, and optional local language models.

In plain words
What is it for?
It is for choosing a stack, deciding when a vector database or graph store is needed, syncing a vault across devices, and separating private local tasks from cloud-assisted tasks.
Why use it?
It helps avoid unnecessary infrastructure, cloud dependency, and vendor lock-in while keeping the knowledge base usable offline.

Skill for Claude CodeCodex

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

Good fit It is for choosing a stack, deciding when a vector database or graph store is needed, syncing a vault across devices, and separating private local tasks from cloud-assisted tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/po4yka/llm-wiki-skills/llm-wiki-local-first-stack
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 po4yka/llm-wiki-skills --skill llm-wiki-local-first-stack
Clone the repo
git clone --depth 1 https://github.com/po4yka/llm-wiki-skills

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 llm-wiki-local-first-stack

README.md
[![agentmods](https://agentmods.dev/badge/skills/po4yka/llm-wiki-skills/llm-wiki-local-first-stack/github.svg)](https://agentmods.dev/skills/po4yka/llm-wiki-skills/llm-wiki-local-first-stack)
Your own site
<a href="https://agentmods.dev/skills/po4yka/llm-wiki-skills/llm-wiki-local-first-stack"><img src="https://agentmods.dev/badge/skills/po4yka/llm-wiki-skills/llm-wiki-local-first-stack/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 llm-wiki-local-first-stack

Your own site · 80×15
<a href="https://agentmods.dev/skills/po4yka/llm-wiki-skills/llm-wiki-local-first-stack"><img src="https://agentmods.dev/badge/skills/po4yka/llm-wiki-skills/llm-wiki-local-first-stack.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 717 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.
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.00081 $0.00717
Opus 5 $0.00041 $0.00358
Sonnet 5 $0.00016 $0.00143
Haiku 4.5 $0.00008 $0.00072

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

Security

Grade A, and why

llm-wiki-local-first-stack 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 11d 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/llm-wiki-local-first-stack/SKILL.md · 115 lines

How it starts

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

LLM-Wiki Local-First Stack

Goal

Help the user choose and configure a durable local-first LLM-Wiki stack with the least necessary infrastructure.

When to use

  • The user wants their LLM-Wiki to run offline or with minimal cloud dependency.
  • The user asks whether they need a vector database, graph store, or SQLite/FTS index yet.
  • The user is deciding between Markdown+git+rg and a heavier retrieval or product storage layer.
  • The user wants a sync strategy for a vault shared across multiple devices without breaking index files.
  • The user needs a model policy split between local-only and cloud-assisted tasks for privacy reasons.

Inputs

  • Corpus size and growth rate.
  • Privacy/offline requirements.
  • Existing tools: Obsidian, git, qmd, SQLite, vector DB, local LLMs.
  • Target machine constraints.
  • Desired agent integration.

Procedure

1. Start with the minimum viable stack

Default:

Markdown + git + index.md + log.md + rg + Agent Skills

Do not add vector databases or graph stores unless symptoms justify them.

2. Choose retrieval tier

Tier Use when
index.md + rg Early and medium vaults with good titles and wikilinks.
hybrid local search Exact search misses conceptual matches.
graph-aware retrieval Relationship and multi-hop questions dominate.
product storage Concurrency, permissions or scale require it.

3. Decide storage policy

Prefer:

  • Markdown as source of truth;
  • SQLite/FTS for local indexes;
  • reconstructable vector indexes;
  • content hashes for incremental rebuild;
  • git for text and manifest files;
  • per-device generated indexes.

Avoid syncing mutable DB/index files unless the user has a tested sync strategy.

4. Decide model policy

Classify tasks:

  • local-only ingest for sensitive sources;
  • cloud-assisted query for public material;
  • cheap model for triage;
  • stronger model for synthesis;
  • local embeddings/reranking when privacy matters.

Hand off to llm-wiki-model-policy for detailed policy.

Read the full file on GitHub · 115 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. 11d ago First seen · 115 lines · 81 tokens per session scan A 66860196e21c

Subscribe to this mod's changes

llm-wiki-local-first-stack is a skill published in the GitHub repository po4yka/llm-wiki-skills (3 stars, last pushed 18d ago), licensed MIT. It adds 81 tokens to every session and 717 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

knowledge-base-interop

Two-layer knowledge architecture — curate in LLM Wiki, search in Astra KB. Covers input classification, source-to-wiki ingestion, wiki-to-KB export (batch + realtime), semantic chunking, SAG extraction, health checks, and multi-format export.

alrcatraz/astra-knowledge-base-mcp · 56 tokens

adapter-authoring

Build a custom source → raw-intake adapter for Athenaeum. Use when someone wants to feed an external source (an API, an export file, a message feed, a scraper, another tool's output) into an Athenaeum knowledge base, asks "how do I write an adapter / integration for athenaeum", or wants to turn some data source into…

Kromatic-Innovation/athenaeum · 86 tokens

brain

Health-check the second brain so failures are not silent: is the local search server alive, is the RAG index fresh, is the session-memory ledger filling, did the nightly distillation run. Read-only, with a green/red verdict per component. Triggers: "/brain", "/memory", "is the reindex alive".

tonydzi/second-brain-starter-kit · 68 tokens

obsidian

Compatibility slash-command alias for the Vault Operations phase of obsidian-memory-wiki. Install/load obsidian-memory-wiki as the canonical parent skill.

cobibean/agent-memory-wiki · 32 tokens

Archon Manager

Master Archon MCP for strategic project management, task tracking, and knowledge base operations. The strategic layer (WHAT/WHEN) that coordinates with Skills (HOW). Use when managing projects, tracking tasks, querying knowledge bases, or implementing the Archon+Skills two-layer architecture.

daffy0208/ai-dev-standards · 59 tokens

digest-auto

A skill for analysing the current state of an EpisodicRAG system, which retrieves information from records of past events or work sessions.

Bizuayeu/Plugins-Weave · 22 tokens