Bootstrap a compile-first project knowledge system with repo-local wiki, raw manifests, provenance tracking, auto-update checks, and platform configs for Claude Code / Codex / Cursor / Windsurf. Use when a user wants durable project context, wiki-first rules, or to replicate this model into another repo.
Use this when the user wants a project to stop relying on chat memory and start behaving like a sane system.
Scaffolds a complete wiki-first knowledge system (30 files):
docs/wiki/ — 8 wiki pages with YAML frontmatter (title, source, created, tags, status, optional provenance fields)manifests/raw_sources.csv — raw file index (never raw files themselves)scripts/ — 11 validation and utility scripts:
wiki_check.py — structure + broken links + frontmatter enforcementingest_raw.py — scan a local raw root, dedupe, update manifest, and build a low-cost intake report with table-level diff summariesraw_manifest_check.py — manifest integrityuntracked_raw_check.py — finds orphan PDFs/Excel/images not in manifestprovenance_check.py — content hash freshness (source_hash in frontmatter) with strict unresolved-source failuresstale_report.py — report wiki pages that are stale, missing hashes, unresolved, or blocked by manifest statusdelta_compile.py — generate manual draft stubs for stale/new raw instead of auto-overwriting wiki contentversion_check.py — auto-checks GitHub for new LLM-wiki releasesupgrade.sh — one-command upgrade (scripts only, never touches wiki content)init_raw_root.py — create local raw directory structureexport_memory_repo.py — export wiki to separate memory repoAGENTS.md, CLAUDE.md, .cursorrules, .windsurfrules.claude/commands/ — Claude Code slash commands: /wiki-check, /wiki-upgrade, /wiki-status.github/workflows/wiki-lint.yml — CI smoke testcompile-firstwriteback is mandatorywiki before heavy RAGIdea / Intent outranks CodeDo not use it for tiny throwaway demos.
python3 scripts/bootstrap_knowledge_system.py /path/to/repo "Name" --dry-runpython3 scripts/bootstrap_knowledge_system.py /path/to/repo "Project Name"python3 scripts/init_raw_root.pypython3 scripts/ingest_raw.pypython3 scripts/wiki_check.py && python3 scripts/raw_manifest_check.py && python3 scripts/stale_report.pypython3 scripts/delta_compile.py --write-draftsIf the repo already has docs or a CLAUDE.md:
docs/wiki/ manuallymanifests/raw_sources.csvExisting bootstrapped projects can upgrade in place:
bash scripts/upgrade.sh
If the project predates scripts/upgrade.sh, use the public repo wrapper once:
git clone https://github.com/Ss1024sS/LLM-wiki.git
cd LLM-wiki
bash scripts/upgrade.sh /path/to/your-project
Updates validation scripts and CI only. Wiki content and customized configs are never touched.
scripts/bootstrap_knowledge_system.pyreferences/playbook.md (points to docs/knowledge-system-playbook.md)