# johnfkoo951/cmds-llm-wiki architecture

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

- Interactive diagram: https://gitdiagram.com/johnfkoo951/cmds-llm-wiki
- Repository: https://github.com/johnfkoo951/cmds-llm-wiki

## Overview

This repository is an Obsidian vault template and agent-driven LLM wiki, not a conventional application. The main workflow captures material in the inbox, preserves source notes, compiles them into a maintained wiki, then supports querying and health checks. The README documents the broader agent commands, paper-analysis mode, templates, and optional local search; the sampled verifier confirms some paper-validation reads. Most runtime behavior is specified in Markdown instructions, so edges reflect documented workflows rather than inspected command implementations.

Main entry points: [`90. Settings/94. Agent Settings/claude/commands/ingest.md`](https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/90.%20Settings/94.%20Agent%20Settings/claude/commands/ingest.md) (Ingest operation), [`20. Wiki`](https://github.com/johnfkoo951/cmds-llm-wiki/tree/main/20.%20Wiki) (Managed wiki), [`90. Settings/Scripts/p7_verify.py`](https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/90.%20Settings/Scripts/p7_verify.py) (P-7 verifier), [`90. Settings/94. Agent Settings/claude/commands/query.md`](https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/90.%20Settings/94.%20Agent%20Settings/claude/commands/query.md) (Query operation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_capture["Capture and Sources"]
  node_inbox["Capture inbox<br/>[00. Inbox]"]
  node_raw["Immutable sources<br/>[10. Raw Sources]"]
end

subgraph group_wiki["Wiki Operations"]
  node_ingest["Ingest operation<br/>[ingest.md]"]
  node_wiki_pages["Managed wiki<br/>[20. Wiki]"]
  node_query["Query operation<br/>[query.md]"]
  node_results["Query synthesis<br/>[30. Queries]"]
  node_lint["Vault lint<br/>[lint.md]"]
end

subgraph group_paper["Paper Analysis"]
  node_paper_notes["Paper analyses<br/>[40. Paper Analyses]"]
  node_paper_verify["P-7 verifier<br/>[p7_verify.py]"]
  node_analysis_schemes["Analysis schemes"]
end

subgraph group_harness["Agent and Vault Support"]
  node_agent_commands["Agent commands<br/>[94. Agent Settings]"]
  node_schema["Behavior schema<br/>[CLAUDE.md]"]
  node_vault_index["Master index<br/>[index.md]"]
  node_change_log["Append-only log<br/>[log.md]"]
  node_qmd["Local search"]
end

node_user(("Vault user"))
node_clipper(("Web Clipper"))
node_mothership[("Mothership vault")]

node_clipper -->|"captures into"| node_inbox
node_user -->|"invokes"| node_ingest
node_ingest -->|"preserves source"| node_raw
node_ingest -->|"compiles into"| node_wiki_pages
node_inbox -.->|"feeds capture"| node_ingest
node_user -->|"asks"| node_query
node_query -->|"queries"| node_wiki_pages
node_query -->|"writes synthesis"| node_results
node_user -->|"runs check"| node_lint
node_lint -->|"checks health"| node_wiki_pages
node_user -->|"runs verifier"| node_paper_verify
node_paper_verify -->|"validates files"| node_paper_notes
node_paper_verify -->|"parses scheme"| node_analysis_schemes
node_paper_verify -->|"resolves source"| node_raw
node_agent_commands -.->|"defines operation"| node_ingest
node_agent_commands -.->|"defines operation"| node_query
node_agent_commands -.->|"defines operation"| node_lint
node_schema -->|"sets rules"| node_wiki_pages
node_qmd -.->|"indexes optionally"| node_wiki_pages
node_user -.->|"links optionally"| node_mothership

click node_inbox "https://github.com/johnfkoo951/cmds-llm-wiki/tree/main/00.%20Inbox"
click node_raw "https://github.com/johnfkoo951/cmds-llm-wiki/tree/main/10.%20Raw%20Sources"
click node_ingest "https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/90.%20Settings/94.%20Agent%20Settings/claude/commands/ingest.md"
click node_wiki_pages "https://github.com/johnfkoo951/cmds-llm-wiki/tree/main/20.%20Wiki"
click node_query "https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/90.%20Settings/94.%20Agent%20Settings/claude/commands/query.md"
click node_results "https://github.com/johnfkoo951/cmds-llm-wiki/tree/main/30.%20Queries"
click node_lint "https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/90.%20Settings/94.%20Agent%20Settings/claude/commands/lint.md"
click node_paper_notes "https://github.com/johnfkoo951/cmds-llm-wiki/tree/main/40.%20Paper%20Analyses"
click node_paper_verify "https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/90.%20Settings/Scripts/p7_verify.py"
click node_analysis_schemes "https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/90.%20Settings/Templates/12-Step%20Analysis%20Schemes.md"
click node_agent_commands "https://github.com/johnfkoo951/cmds-llm-wiki/tree/main/90.%20Settings/94.%20Agent%20Settings"
click node_schema "https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/CLAUDE.md"
click node_vault_index "https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/index.md"
click node_change_log "https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/log.md"
click node_qmd "https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/90.%20Settings/qmd-config-template.yml"

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_inbox,node_raw,node_user toneBlue
class node_ingest,node_wiki_pages,node_query,node_results,node_lint,node_mothership toneAmber
class node_paper_notes,node_paper_verify,node_analysis_schemes toneMint
class node_agent_commands,node_schema,node_vault_index,node_change_log,node_qmd toneRose
class node_clipper toneIndigo
```

## Components

### Capture and Sources

- [Capture inbox](https://github.com/johnfkoo951/cmds-llm-wiki/tree/main/00.%20Inbox): `00. Inbox`
- [Immutable sources](https://github.com/johnfkoo951/cmds-llm-wiki/tree/main/10.%20Raw%20Sources): `10. Raw Sources`

### Wiki Operations

- [Ingest operation](https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/90.%20Settings/94.%20Agent%20Settings/claude/commands/ingest.md): `90. Settings/94. Agent Settings/claude/commands/ingest.md`
- [Managed wiki](https://github.com/johnfkoo951/cmds-llm-wiki/tree/main/20.%20Wiki): `20. Wiki`
- [Query operation](https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/90.%20Settings/94.%20Agent%20Settings/claude/commands/query.md): `90. Settings/94. Agent Settings/claude/commands/query.md`
- [Query synthesis](https://github.com/johnfkoo951/cmds-llm-wiki/tree/main/30.%20Queries): `30. Queries`
- [Vault lint](https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/90.%20Settings/94.%20Agent%20Settings/claude/commands/lint.md): `90. Settings/94. Agent Settings/claude/commands/lint.md`

### Paper Analysis

- [Paper analyses](https://github.com/johnfkoo951/cmds-llm-wiki/tree/main/40.%20Paper%20Analyses): `40. Paper Analyses`
- [P-7 verifier](https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/90.%20Settings/Scripts/p7_verify.py): `90. Settings/Scripts/p7_verify.py`
- [Analysis schemes](https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/90.%20Settings/Templates/12-Step%20Analysis%20Schemes.md): `90. Settings/Templates/12-Step Analysis Schemes.md`

### Agent and Vault Support

- [Agent commands](https://github.com/johnfkoo951/cmds-llm-wiki/tree/main/90.%20Settings/94.%20Agent%20Settings): `90. Settings/94. Agent Settings`
- [Behavior schema](https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/CLAUDE.md): `CLAUDE.md`
- [Master index](https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/index.md): `index.md`
- [Append-only log](https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/log.md): `log.md`
- [Local search](https://github.com/johnfkoo951/cmds-llm-wiki/blob/main/90.%20Settings/qmd-config-template.yml): `90. Settings/qmd-config-template.yml`

### Other components

- **Vault user**
- **Web Clipper**
- **Mothership vault**

## Connections

- Web Clipper → Capture inbox: captures into (evidence: `README.md`)
- Vault user → Ingest operation: invokes (evidence: `README.md`)
- Ingest operation → Immutable sources: preserves source (evidence: `README.md`)
- Ingest operation → Managed wiki: compiles into (evidence: `README.md`)
- Capture inbox → Ingest operation: feeds capture
- Vault user → Query operation: asks (evidence: `README.md`)
- Query operation → Managed wiki: queries (evidence: `README.md`)
- Query operation → Query synthesis: writes synthesis (evidence: `README.md`)
- Vault user → Vault lint: runs check (evidence: `README.md`)
- Vault lint → Managed wiki: checks health (evidence: `README.md`)
- Vault user → P-7 verifier: runs verifier (evidence: `90. Settings/Scripts/p7_verify.py`)
- P-7 verifier → Paper analyses: validates files (evidence: `90. Settings/Scripts/p7_verify.py`)
- P-7 verifier → Analysis schemes: parses scheme (evidence: `90. Settings/Scripts/p7_verify.py`)
- P-7 verifier → Immutable sources: resolves source (evidence: `90. Settings/Scripts/p7_verify.py`)
- Agent commands → Ingest operation: defines operation
- Agent commands → Query operation: defines operation
- Agent commands → Vault lint: defines operation
- Behavior schema → Managed wiki: sets rules (evidence: `README.md`)
- Local search → Managed wiki: indexes optionally (evidence: `README.md`)
- Vault user → Mothership vault: links optionally (evidence: `README.md`)
