llm-wiki-local-first-stack
Skill3 starsChanged 5 months agoMITView on GitHub
Design a local-first LLM-Wiki stack. Use when the user wants Markdown, git, Obsidian, ripgrep, local embeddings, qmd-style retrieval, SQLite/FTS/vector indexes, local LLMs, offline operation, or safe sync without cloud lock-in; route retrieval/index layer design to llm-wiki-retrieval-architect.
In this repository50 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llm-wiki-adr-memorySkill
- llm-wiki-agent-memory-bridgeSkill
- llm-wiki-archiveSkill
- llm-wiki-capture-pipelineSkill
- llm-wiki-chooseSkill
- llm-wiki-claim-anchorsSkill
- llm-wiki-company-flow-auditSkill
- llm-wiki-conflict-resolverSkill
- llm-wiki-critique-auditSkill
- llm-wiki-designSkill
- llm-wiki-doctorSkill
- llm-wiki-domain-packSkill
- llm-wiki-ecosystem-registrySkill
- llm-wiki-evalSkill
- llm-wiki-eval-toolingSkill
- llm-wiki-export-publishSkill
- llm-wiki-faqSkill
- llm-wiki-github-actionSkill
- llm-wiki-gitlab-operating-modelSkill
- llm-wiki-human-first-designSkill
- llm-wiki-implementation-deep-diveSkill
- llm-wiki-ingestion-stackSkill
- llm-wiki-interviewSkill
- llm-wiki-mcp-integrationSkill
- llm-wiki-migration-plannerSkill
- llm-wiki-model-policySkill
- llm-wiki-news-radarSkill
- llm-wiki-obsidian-hardeningSkill
- llm-wiki-orientSkill
- llm-wiki-paf-adoptionSkill
- llm-wiki-privacy-redactorSkill
- llm-wiki-provenanceSkill
- llm-wiki-refactorSkill
- llm-wiki-repo-docsSkill
- llm-wiki-retrieval-architectSkill
- llm-wiki-security-reviewSkill
- llm-wiki-setupSkill
- llm-wiki-skill-compilerSkill
- llm-wiki-skill-doctorSkill
- llm-wiki-source-refreshSkill
- llm-wiki-team-rolloutSkill
- llm-wiki-threat-modelSkill
- llm-wiki-trust-auditSkill
- llm-wiki-zero-to-working-wikiSkill
- wiki-ingestSkill
- wiki-lintSkill
- wiki-querySkill
- wiki-triageSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 44
Do not add vector databases or graph stores unless symptoms justify them.
- Distinctive: line 66
Avoid syncing mutable DB/index files unless the user has a tested sync strategy.
- Distinctive: line 111
Do not recommend syncing non-mergeable index files without warning.
- Distinctive: line 112
Do not make cloud services mandatory for local-first users.
- Distinctive: line 114
Keep raw sources portable and human-readable where possible.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 SkillsDo 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.
5. Produce setup plan
Include:
- folder structure;
- agent instructions;
- retrieval tier;
- index/cache policy;
- backup/sync plan;
- upgrade triggers.
Output
## Local-first recommendation
## Minimal stack
## Retrieval tier
## Storage and sync policy
## Model policy
## Setup steps
## Upgrade triggersSafety gates
- Do not recommend syncing non-mergeable index files without warning.
- Do not make cloud services mandatory for local-first users.
- Browse before giving current install commands.
- Keep raw sources portable and human-readable where possible.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

