# 1nuyasha-cck/llm-wiki architecture

> Architecture diagram of the GitHub repository 1nuyasha-cck/llm-wiki, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/1nuyasha-cck/llm-wiki
- Repository: https://github.com/1nuyasha-cck/llm-wiki

## Overview

This repository is a Chinese-language tutorial for designing and operating a local Markdown-based LLM Wiki, not an implementation of that system. The graph summarizes the documented user-to-knowledge workflow and its major capabilities; all repository nodes point to README.md because no runtime source is present. Relationships are based on the README’s diagrams and explicit workflow descriptions.

Main entry points: [`README.md`](https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md) (Maintained wiki)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_knowledge["Knowledge layers"]
  node_raw[("Raw sources<br/>[README.md]")]
  node_rules["Agent rules<br/>[README.md]"]
  node_wiki[("Maintained wiki<br/>[README.md]")]
  node_templates["Page templates<br/>[README.md]"]
  node_indexlog["Index and logs<br/>[README.md]"]
end

subgraph group_workflow["Agent workflow"]
  node_agent["Codex agent<br/>[README.md]"]
  node_ingestion["Source ingestion<br/>[README.md]"]
  node_query["Wiki query<br/>[README.md]"]
  node_review["Human review<br/>[README.md]"]
end

subgraph group_tools["Tools and governance"]
  node_obsidian["Obsidian vault<br/>[README.md]"]
  node_mcp["Obsidian MCP<br/>[README.md]"]
  node_git["Git backup<br/>[README.md]"]
  node_lint["Lint and health checks<br/>[README.md]"]
  node_portal["Offline portal<br/>[README.md]"]
  node_retrieval["Search extensions<br/>[README.md]"]
end

node_person(("Knowledge owner"))

node_person -->|"adds sources"| node_raw
node_raw -->|"supplies evidence"| node_ingestion
node_rules -.->|"constrains"| node_ingestion
node_agent -->|"performs"| node_ingestion
node_ingestion -->|"reads sources"| node_raw
node_ingestion -->|"creates or updates"| node_wiki
node_templates -.->|"structures pages"| node_wiki
node_ingestion -->|"updates"| node_indexlog
node_ingestion -->|"runs checks"| node_lint
node_wiki -->|"opened and searched"| node_obsidian
node_obsidian -->|"exposes connection"| node_mcp
node_mcp -->|"connects vault"| node_agent
node_wiki -->|"versioned and backed up"| node_git
node_person -->|"asks questions"| node_query
node_query -->|"starts with index"| node_indexlog
node_query -->|"checks when needed"| node_raw
node_query -->|"reads and writes answers"| node_wiki
node_query -->|"uses"| node_agent
node_wiki -->|"supports inspection"| node_review
node_review -->|"feeds new questions"| node_agent
node_wiki -.->|"may be published through"| node_portal
node_wiki -.->|"may add search"| node_retrieval

click node_raw "https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md"
click node_rules "https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md"
click node_wiki "https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md"
click node_templates "https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md"
click node_indexlog "https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md"
click node_agent "https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md"
click node_ingestion "https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md"
click node_query "https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md"
click node_review "https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md"
click node_obsidian "https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md"
click node_mcp "https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md"
click node_git "https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md"
click node_lint "https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md"
click node_portal "https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md"
click node_retrieval "https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_raw,node_rules,node_wiki,node_templates,node_indexlog toneBlue
class node_agent,node_ingestion,node_query,node_review toneAmber
class node_obsidian,node_mcp,node_git,node_lint,node_portal,node_retrieval toneMint
class node_person toneIndigo
```

## Components

### Knowledge layers

- [Raw sources](https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md): `README.md`
- [Agent rules](https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md): `README.md`
- [Maintained wiki](https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md): `README.md`
- [Page templates](https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md): `README.md`
- [Index and logs](https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md): `README.md`

### Agent workflow

- [Codex agent](https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md): `README.md`
- [Source ingestion](https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md): `README.md`
- [Wiki query](https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md): `README.md`
- [Human review](https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md): `README.md`

### Tools and governance

- [Obsidian vault](https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md): `README.md`
- [Obsidian MCP](https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md): `README.md`
- [Git backup](https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md): `README.md`
- [Lint and health checks](https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md): `README.md`
- [Offline portal](https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md): `README.md`
- [Search extensions](https://github.com/1nuyasha-cck/llm-wiki/blob/main/README.md): `README.md`

### Other components

- **Knowledge owner**

## Connections

- Knowledge owner → Raw sources: adds sources (evidence: `README.md`)
- Raw sources → Source ingestion: supplies evidence (evidence: `README.md`)
- Agent rules → Source ingestion: constrains (evidence: `README.md`)
- Codex agent → Source ingestion: performs (evidence: `README.md`)
- Source ingestion → Raw sources: reads sources (evidence: `README.md`)
- Source ingestion → Maintained wiki: creates or updates (evidence: `README.md`)
- Page templates → Maintained wiki: structures pages (evidence: `README.md`)
- Source ingestion → Index and logs: updates (evidence: `README.md`)
- Source ingestion → Lint and health checks: runs checks (evidence: `README.md`)
- Maintained wiki → Obsidian vault: opened and searched (evidence: `README.md`)
- Obsidian vault → Obsidian MCP: exposes connection (evidence: `README.md`)
- Obsidian MCP → Codex agent: connects vault (evidence: `README.md`)
- Maintained wiki → Git backup: versioned and backed up (evidence: `README.md`)
- Knowledge owner → Wiki query: asks questions (evidence: `README.md`)
- Wiki query → Index and logs: starts with index (evidence: `README.md`)
- Wiki query → Raw sources: checks when needed (evidence: `README.md`)
- Wiki query → Maintained wiki: reads and writes answers (evidence: `README.md`)
- Wiki query → Codex agent: uses (evidence: `README.md`)
- Maintained wiki → Human review: supports inspection (evidence: `README.md`)
- Human review → Codex agent: feeds new questions (evidence: `README.md`)
- Maintained wiki → Offline portal: may be published through (evidence: `README.md`)
- Maintained wiki → Search extensions: may add search (evidence: `README.md`)
