atomicstrata/llm-wiki-compiler — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a TypeScript command line tool called llmwiki that turns messy notes, docs, papers, and markdown files into a clean linked wiki.

I want to be able to point it at one or more source files, have an LLM compile them into markdown pages like concepts, entities, comparisons, and overviews, and keep citations back to the original source lines. It should support querying the wiki later, not just dumping chunks, and it should use a mix of semantic search, keyword search, and wiki link expansion to build useful answers with evidence.

Also add a local read only web viewer I can open from the CLI with navigation, search, a graph view, and citation chips on pages. Include commands for quickstart, compile, query, view, eval, export, and serve. It should work with Anthropic by default, plus OpenAI compatible endpoints, Ollama, and GitHub Copilot through env vars.

Please make it polished enough to publish as an npm CLI, with tests and a clear README.

Want more depth? Deep Reverse