wiki-llm
CLAUDE.md0 starsChanged 4 months agoMITView on GitHub
Don't assume. Don't hide confusion. Surface tradeoffs. Before implementing: - State your assumptions explicitly. If uncertain, ask. - If multiple interpretations exist, present them - don't pick silently. - If a simpler approach exists, say so. Push back when warranted. - If something is unclear, stop. Name what's confusing. Ask. Minimum code that solves the problem. Nothing speculative. Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify. Touch only what you must. Clean up only your…
- Installs packages
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- wiki-extract-annasSkill
- wiki-extract-crunchbaseSkill
- wiki-extract-ebookSkill
- wiki-extract-ecommerceSkill
- wiki-extract-githubSkill
- wiki-extract-linkedinSkill
- wiki-extract-newsletterSkill
- wiki-extract-patentsSkill
- wiki-extract-paywallSkill
- wiki-extract-podcastSkill
- wiki-extractSkill
- wiki-extract-wikipediaSkill
- wiki-extract-youtubeSkill
- wiki-fetchSkill
- wiki-ingestSkill
- wiki-learnSkill
- wiki-lintSkill
- wiki-maintainerSkill
- wiki-onboardSkill
- wiki-pipelineSkill
- wiki-querySkill
- wiki-raw-prepareSkill
- wiki-research-academicSkill
- wiki-research-deepSkill
- wiki-research-feedsSkill
- wiki-research-loopSkill
- wiki-research-newsSkill
- wiki-researchSkill
- wiki-research-socialSkill
- wiki-research-webSkill
- wiki-retroSkill
- wiki-session-memorySkill
- wiki-setupSkill
- wiki-statusSkill
- wiki-upgradeSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
16 rules. About 0 are common, 14 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
If multiple interpretations exist, present them - don't pick silently.
- Distinctive: line 10
If a simpler approach exists, say so.
- Distinctive: line 11
If something is unclear, stop.
- Distinctive: line 17
No features beyond what was asked.
- Distinctive: line 18
No abstractions for single-use code.
- Distinctive: line 20
No error handling for impossible scenarios.
- Distinctive: line 21
If you write 200 lines and it could be 50, rewrite it.
- Distinctive: line 23
Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
- Distinctive: line 29
When editing existing code:
- Distinctive: line 30
Don't "improve" adjacent code, comments, or formatting.
- Distinctive: line 31
Don't refactor things that aren't broken.
- Distinctive: line 33
If you notice unrelated dead code, mention it - don't delete it.
- Distinctive: line 35
When your changes create orphans:
- Very specific: line 36
Remove imports/variables/functions that YOUR changes made unused.
- Distinctive: line 37
Don't remove pre-existing dead code unless asked.
- Very specific: line 88
When editing the vault template under templates/llm-wiki/, keep llm-wiki/CLAUDE.md and config.json schema consistent with README.md and …
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md 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
AGENTS — wiki-llm
1. Think Before Coding
Don't assume. Don't hide confusion. Surface tradeoffs.
Before implementing:
- State your assumptions explicitly. If uncertain, ask.
- If multiple interpretations exist, present them - don't pick silently.
- If a simpler approach exists, say so. Push back when warranted.
- If something is unclear, stop. Name what's confusing. Ask.
2. Simplicity First
Minimum code that solves the problem. Nothing speculative.
- No features beyond what was asked.
- No abstractions for single-use code.
- No "flexibility" or "configurability" that wasn't requested.
- No error handling for impossible scenarios.
- If you write 200 lines and it could be 50, rewrite it.
Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
3. Surgical Changes
Touch only what you must. Clean up only your own mess.
When editing existing code:
- Don't "improve" adjacent code, comments, or formatting.
- Don't refactor things that aren't broken.
- Match existing style, even if you'd do it differently.
- If you notice unrelated dead code, mention it - don't delete it.
When your changes create orphans:
- Remove imports/variables/functions that YOUR changes made unused.
- Don't remove pre-existing dead code unless asked.
The test: Every changed line should trace directly to the user's request.
4. Goal-Driven Execution
Define success criteria. Loop until verified.
Transform tasks into verifiable goals:
- "Add validation" → "Write tests for invalid inputs, then make them pass"
- "Fix the bug" → "Write a test that reproduces it, then make it pass"
- "Refactor X" → "Ensure tests pass before and after"
For multi-step tasks, state a brief plan:
1. [Step] → verify: [check]
2. [Step] → verify: [check]
3. [Step] → verify: [check]Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.
Mirror: same content as AGENTS.md (canonical for Codex); keep them in sync when changing the tool list or plugin overview. Plugin workflows are maintained in docs/AGENTS.shared.md and synced with bin/llm-wiki sync-agent-docs (or python3 scripts/sync_agent_docs.py).
<!-- BEGIN AGENTS_SHARED -->Repo summary
This repo is the llm-wiki plugin: a Python CLI (bin/llm-wiki), slash-command prompts (commands/), skills (skills/*/SKILL.md), and agent personas (agents/, prompts/PERSONA.md). Vault layout is raw/ (sources) → wiki/ (curated markdown) + optional outputs/ (drafts/reports); see ETHOS.md and WORKFLOWS.md. First-time setup: docs/QUICKSTART.md (vault vs plugin repo, five-minute path, basic/intermediate/advanced tiers).
Common workflows (all tools)
- CLI —
bin/llm-wiki(works from any cwd if invoked by absolute path) orpython3 scripts/llm_wiki.pyfrom the repo root forsetup,ingest,validate,lint/diff/compile/knowledge-test,raw validate/raw record/raw finish(validate + log +[prepare]commit;raw/memory/skipped),build-site,graph,git,research-loop,memory {save|log|list|show|recall|prune}(session memory underraw/memory/whenmemory.enabled, opt-in), etc./llm-wiki:setup(seecommands/setup.md; full wizard inskills/wiki-setup/SKILL.md) is the slash entry for wiki-setup: combined vault + optional session memory (Section 8c), or vault-only / memory-only tracks./llm-wiki:configure(seecommands/configure.md) is the slash entry for quick config tweaks after setup (MCPwiki_configure,llm-wiki configure -i, or previewed edits)./llm-wiki:status(seecommands/status.md) is the slash entry for wiki-status (vault health: MCPwiki_status,llm-wiki integrations status, skill dashboard). (Do not usePYTHONPATH=scripts—relativePYTHONPATHcan crash Python 3.14+ at startup; the script addsscripts/tosys.pathautomatically.) - Commands as prompts — Open
commands/<name>.md; same text as/llm-wiki:…. - Skills — wiki-pipeline (end-to-end vault flow), wiki-maintainer, wiki-ingest, wiki-raw-prepare, wiki-query, wiki-lint, wiki-status, wiki-setup, wiki-research (ad-hoc topic), wiki-research-loop (batch tasks), wiki-retro, wiki-learn (
.agent-memory.md), wiki-session-memory (raw/memory/per-chat notes), wiki-upgrade (plugin repo pull) inskills/*/SKILL.md. Pipeline artifacts:skills/references/pipeline-artifacts.md. - Context —
WORKFLOWS.md,ETHOS.md,prompts/PERSONA.md. - Agent doc sync (this plugin repo only) — After editing
docs/AGENTS.shared.md, runbin/llm-wiki sync-agent-docsto refreshAGENTS.md,CLAUDE.md, andrules/llm-wiki.mdc. Before merge,bin/llm-wiki sync-agent-docs --check(orbin/llm-wiki check --plugin-repo) must pass. Equivalent:python3 scripts/sync_agent_docs.pyfrom the repo root. Do not commit a.claude/tree under the plugin root (except nothing, or only gitignored locals): it prevents Claude Code from loadingskills/in the plugin (anthropics/claude-code#44120).
MCP server: bin/llm-wiki mcp starts a stdio JSON-RPC server (default) exposing vault tools (search, knowledge graph, ingest, validate, session memory, etc.). bin/llm-wiki mcp --transport sse --port 8891 starts an HTTP listener on mcp.host/mcp.port (default 127.0.0.1:8891): POST / or /mcp with a JSON-RPC body, application/json response (stdlib scripts/mcp_sse.py). Plugin marketplace installs auto-register stdio via mcpServers in .claude-plugin/plugin.json and .cursor-plugin/plugin.json. Manual install: bin/llm-wiki mcp install. Config in llm-wiki/config.json: mcp.enabled, mcp.transport (stdio | sse), mcp.port / mcp.host, mcp.search_backend (fts5 default — BM25 via stdlib sqlite3 | grep | chromadb — semantic embeddings; requires pip install chromadb, falls back to grep if missing | hybrid — FTS5 + Chroma reciprocal-rank fusion; requires Chroma, falls back to fts5 if missing), mcp.hybrid_rrf_k (RRF k for hybrid only, default 60), optional mcp.tools_mode / mcp.tools_allowlist / mcp.max_response_chars / mcp.configure_allowlist / mcp.benchmark_tool_enabled / mcp.ingest_enabled / mcp.sse_require_loopback / mcp.sse_token (trust model and HTTP hardening — skills/references/mcp-and-kg.md), knowledge_graph.backend (json | sqlite), knowledge_graph.auto_update_on_ingest (runs kg rebuild after ingest post-processing), memory.enabled / memory.dir / memory.max_sessions (opt-in session memory). Prefer CLI when running locally; use MCP when the host only exposes tools.
Knowledge graph CLI: bin/llm-wiki kg {add|query|invalidate|timeline|stats|rebuild|conflicts} — entity-relationship triples in llm-wiki/.kg.json (default) or .kg.sqlite3 when knowledge_graph.backend=sqlite. Optional knowledge_graph.aliases / allowed_predicates. Shared reference: skills/references/mcp-and-kg.md.
Knowledge compiler: bin/llm-wiki {lint|diff|compile|knowledge-test} (+ MCP wiki_lint, wiki_compile, wiki_knowledge_test). After wiki merge: compile; surgical compile --raw <path>.
Session memory CLI: bin/llm-wiki memory {save|log|list|show|recall|prune} — per-chat files under llm-wiki/raw/memory/ when memory.enabled; hooks write llm-wiki/.current-session for --current.
Benchmark CLI: bin/llm-wiki benchmark {run|suites|report|history|compare|analyze} — retrieval benchmarks (LME / LoCoMo / ConvoMem) and metrics under benchmark.*. Guide: benchmarks/README.md.
Static viewer “Open file”: In llm-wiki/config.json, set viewer.open_file_scheme to cursor or vscode when you want wiki links to open the editor.
Python: Match existing style in scripts/; run tests or python3 -m compileall if you touch CLI code. Personal/demo scripts belong in scripts/.tmp/ (gitignored), not tracked scripts/. Optional pip deps (requirements-optional.txt, e.g. Chroma): use a venv; PEP 668 / externally managed interpreters often block global pip install — see README.
When editing the vault template under templates/llm-wiki/, keep llm-wiki/CLAUDE.md and config.json schema consistent with README.md and WORKFLOWS.md.
<!-- END AGENTS_SHARED -->How each tool uses this repository
| Tool | Mechanism | Best reference |
| Claude Code | /.claude-plugin/plugin.json — install via Anthropic plugin marketplace; slash commands map to commands/*.md. | Discover plugins, README.md |
| Cursor | Project rules: rules/llm-wiki.mdc (canonical); also available as .cursor/rules/llm-wiki.mdc (symlink so Cursor discovers them). Cursor Marketplace plugins use .cursor-plugin/plugin.json plus rules/, skills, MCP, hooks — see Cursor docs. | Cursor plugins, Rules, Publish a plugin |
| OpenAI Codex CLI | Walks the tree for AGENTS.md / AGENTS.override.md. Project knobs: .codex/config.toml (this repo) and ~/.codex/config.toml. Merges from repo root down; size limit applies. | Custom instructions with AGENTS.md |
This file (CLAUDE.md) mirrors AGENTS.md for tools that read CLAUDE.md instead of AGENTS.md. Cursor still loads rules/*.mdc automatically when you open the repo; the rule body matches the shared block above.
Claude Code (first-class)
Install the plugin from the marketplace (see README.md), then use /llm-wiki:… commands. Each command’s text lives in commands/<name>.md (same content as the slash command).
Cursor (editor + optional Marketplace plugin)
- Clone and open: Rules live in
rules/llm-wiki.mdc.AGENTS.md(this file) is extra context if you paste it or if your team mirrors it into rules. - Marketplace: Cursor plugins bundle rules, skills, MCP, hooks, subagents (announcement). This repo ships
.cursor-plugin/plugin.jsonnext to/.claude-plugin/so maintainers can submit the same codebase to the Cursor Marketplace (curated review). Until listed, use clone +rules/like any project.
There is no separate “VS Code extension” for llm-wiki — automation is the CLI + agent instructions above.
OpenAI Codex CLI
Codex loads AGENTS.md before tasks (discovery order). Use bin/llm-wiki from a terminal and commands/*.md as manual prompts. If instructions exceed the byte budget, raise project_doc_max_bytes in ~/.codex/config.toml or .codex/config.toml, or split overrides across nested AGENTS.override.md files.
User projects (after llm-wiki setup)
A scaffolded vault lives under llm-wiki/ with llm-wiki/CLAUDE.md (vault rules). If your tool only reads AGENTS.md at the project root, copy or summarize the relevant rules from llm-wiki/CLAUDE.md so Codex-style agents see the same constraints. You can also add CLAUDE.md to Codex’s project_doc_fallback_filenames if you standardize on that filename.
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.

