How sdyckjq-lab/llm-wiki-skill works
llm-wiki turns source material and conversations into a linked local knowledge base, then supports retrieval, reading, analysis, and graph exploration. The workbench path runs from a user action in the React app through registered API calls and server routes to knowledge-base, conversation, or agent services; results return as pages, artifacts, or graph views. The shared graph engine serves both workbench and offline graph outputs. README capabilities guide the broader subsystem map; sampled excerpts confirm selected UI, API, retrieval, graph-rendering, and rename behavior, but do not establish every service-level call.
Main entry points: app.ts HTTP app · App.tsx Workbench app · agent.ts Agent runtime · index.ts Graph engine
Components 22
Workbench interface
- Workbench app
workbench/web/src/App.tsx - Page search
workbench/web/src/components/SearchPanel.tsx - Graph reader
workbench/web/src/components/GraphReader.tsx - API client
workbench/web/src/lib/api/client.ts
Workbench services
- HTTP app
workbench/server/src/app.ts - Prompt routes
workbench/server/src/routes/prompt.ts - Graph routes
workbench/server/src/routes/graph.ts - Rename routes
workbench/server/src/routes/graph-renames.ts - Knowledge bases
workbench/server/src/knowledge-bases.ts - Agent runtime
workbench/server/src/agent.ts - Shared contracts
packages/workbench-contracts/src/index.ts
Knowledge workflows
- Knowledge retrieval
workbench/server/src/retrieval.ts - Page access
workbench/server/src/pages.ts - Knowledge files
- Batch digestion
workbench/server/src/digest/batch.ts - Artifacts
workbench/server/src/artifacts.ts
Graph platform
- Graph engine
packages/graph-engine/src/index.ts - Render pipeline
packages/graph-engine/src/render/render-pipeline.ts - Graph interactions
packages/graph-engine/src/render/controller.ts - Rename preview
workbench/server/src/graph-rename-preview.ts
Other components
- User
- Model provider
Connections 22
- User → Workbench app: uses
- Workbench app → API client: requests
- Page search → Workbench app: selects page
- Graph reader → Graph engine: renders graph
- API client → HTTP app: HTTP requests
- HTTP app → Prompt routes: dispatches
- HTTP app → Graph routes: dispatches
- HTTP app → Rename routes: dispatches
- HTTP app → Shared contracts: uses schemas
- Prompt routes → Agent runtime: invokes
- Graph routes → Graph engine: uses graph model
- Rename routes → Rename preview: previews rename
- Agent runtime → Knowledge retrieval: retrieves context
- Knowledge retrieval → Page access: loads pages
- Page access → Knowledge files: reads
- Agent runtime → Model provider: sends prompts
- Agent runtime → Artifacts: saves outputs
- Batch digestion → Knowledge files: digests sources
- Graph engine → Render pipeline: prepares rendering
- Graph interactions → Render pipeline: updates interaction state
- Workbench app → Batch digestion: starts digestion
- Workbench app → Knowledge bases: manages libraries