[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71JDX9EEBWV4FWR9ZHYDK6N":3,"skill-same:01M71JDX9EEBWV4FWR9ZHYDK6N":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":22,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":6,"ownerHtmlUrl":61,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":62,"install":63,"resources":76},"01M71JDX9EEBWV4FWR9ZHYDK6N","llm-wiki",null,"Karpathy's LLM Wiki — build and maintain a persistent, interlinked markdown knowledge base. Ingest sources, query compiled knowledge, and lint for consistency.","xuanxuan1983\u002Fhermes-skills-backup","xuanxuan1983","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F151701653?v=4","01M71HCZNB5H19QJ6YBF98W2WH","01M71HCZP14T0921BD0TC9EPD3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fxuanxuan1983\u002Fhermes-skills-backup\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fllm-wiki\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000021","资料检索与研究","SCENARIO","使用场景",[23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"wiki","llm wiki","ingest","for","consistency","sources","ideas","knowledge-base","knowledge base","query","maintain","arxiv","obsidian","rag-alternative","karpathy","knowledge","markdown","rag","notes","agentic","2026-11-10 10:12:30",false,"---\nname: llm-wiki\ndescription: \"Karpathy's LLM Wiki — build and maintain a persistent, interlinked markdown knowledge base. Ingest sources, query compiled knowledge, and lint for consistency.\"\nversion: 2.0.0\nauthor: Hermes Agent\nlicense: MIT\nmetadata:\n  hermes:\n    tags: [wiki, knowledge-base, research, notes, markdown, rag-alternative]\n    category: research\n    related_skills: [obsidian, arxiv, agentic-research-ideas]\n---\n\n# Karpathy's LLM Wiki\n\nBuild and maintain a persistent, compounding knowledge base as interlinked markdown files.\nBased on [Andrej Karpathy's LLM Wiki pattern](https:\u002F\u002Fgist.github.com\u002Fkarpathy\u002F442a6bf555914893e9891c11519de94f).\n\nUnlike traditional RAG (which rediscovers knowledge from scratch per query), the wiki\ncompiles knowledge once and keeps it current. Cross-references are already there.\nContradictions have already been flagged. Synthesis reflects everything ingested.\n\n**Division of labor:** The human curates sources and directs analysis. The agent\nsummarizes, cross-references, files, and maintains consistency.\n\n## When This Skill Activates\n\nUse this skill when the user:\n- Asks to create, build, or start a wiki or knowledge base\n- Asks to ingest, add, or process a source into their wiki\n- Asks a question and an existing wiki is present at the configured path\n- Asks to lint, audit, or health-check their wiki\n- References their wiki, knowledge base, or \"notes\" in a research context\n\n## Wiki Location\n\n**Location:** Set via `WIKI_PATH` environment variable (e.g. in `~\u002F.hermes\u002F.env`).\n\nIf unset, defaults to `~\u002Fwiki`.\n\n```bash\nWIKI=\"${WIKI_PATH:-$HOME\u002Fwiki}\"\n```\n\nThe wiki is just a directory of markdown files — open it in Obsidian, VS Code, or\nany editor. No database, no special tooling required.\n\n## Architecture: Three Layers\n\n```\nwiki\u002F\n├── SCHEMA.md           # Conventions, structure rules, domain config\n├── index.md            # Sectioned content catalog with one-line summaries\n├── log.md              # Chronological action log (append-only, rotated yearly)\n├── raw\u002F                # Layer 1: Immutable source material\n│   ├── articles\u002F       # Web articles, clippings\n│   ├── papers\u002F         # PDFs, arxiv papers\n│   ├── transcripts\u002F    # Meeting notes, interviews\n│   └── assets\u002F         # Images, diagrams referenced by sources\n├── entities\u002F           # Layer 2: Entity pages (people, orgs, products, models)\n├── concepts\u002F           # Layer 2: Concept\u002Ftopic pages\n├── comparisons\u002F        # Layer 2: Side-by-side analyses\n└── queries\u002F            # Layer 2: Filed query results worth keeping\n```\n\n**Layer 1 — Raw Sources:** Immutable. The agent reads but never modifies these.\n**Layer 2 — The Wiki:** Agent-owned markdown files. Created, updated, and\ncross-referenced by the agent.\n**Layer 3 — The Schema:** `SCHEMA.md` defines structure, conventions, and tag taxonomy.\n\n## Resuming an Existing Wiki (CRITICAL — do this every session)\n\nWhen the user has an existing wiki, **always orient yourself before doing anything**:\n\n① **Read `SCHEMA.md`** — understand the domain, conventions, and tag taxonomy.\n② **Read `index.md`** — learn what pages exist and their summaries.\n③ **Scan recent `log.md`** — read the last 20-30 entries to understand recent activity.\n\n```bash\nWIKI=\"${WIKI_PATH:-$HOME\u002Fwiki}\"\n# Orientation reads at session start\nread_file \"$WIKI\u002FSCHEMA.md\"\nread_file \"$WIKI\u002Findex.md\"\nread_file \"$WIKI\u002Flog.md\" offset=\u003Clast 30 lines>\n```\n\nOnly after orientation should you ingest, query, or lint. This prevents:\n- Creating duplicate pages for entities that already exist\n- Missing cross-references to existing content\n- Contradicting the schema's conventions\n- Repeating work already logged\n\nFor large wikis (100+ pages), also run a quick `search_files` for the topic\nat hand before creating anything new.\n\n## Initializing a New Wiki\n\nWhen the user asks to create or start a wiki:\n\n1. Determine the wiki path (from `$WIKI_PATH` env var, or ask the user; default `~\u002Fwiki`)\n2. Create the directory structure above\n3. Ask the user what domain the wiki covers — be specific\n4. Write `SCHEMA.md` customized to the domain (see template below)\n5. Write initial `index.md` with sectioned header\n6. Write initial `log.md` with creation entry\n7. Confirm the wiki is ready and suggest first sources to ingest\n\n### SCHEMA.md Template\n\nAdapt to the user's domain. The schema constrains agent behavior and ensures consistency:\n\n```markdown\n# Wiki Schema\n\n## Domain\n[What this wiki covers — e.g., \"AI\u002FML research\", \"personal health\", \"startup intelligence\"]\n\n## Conventions\n- File names: lowercase, hyphens, no spaces (e.g., `transformer-architecture.md`)\n- Every wiki page starts with YAML frontmatter (see below)\n- Use `[[wikilinks]]` to link between pages (minimum 2 outbound links per page)\n- When updating a page, always bump the `updated` date\n- Every new page must be added to `index.md` under the correct section\n- Every action must be appended to `log.md`\n\n## Frontmatter\n  ```yaml\n  ---\n  title: Page Title\n  created: YYYY-MM-DD\n  updated: YYYY-MM-DD\n  type: entity | concept | comparison | query | summary\n  tags: [from taxonomy below]\n  sources: [raw\u002Farticles\u002Fsource-name.md]\n  ---\n  ```\n\n## Tag Taxonomy\n[Define 10-20 top-level tags for the domain. Add new tags here BEFORE using them.]\n\nExample for AI\u002FML:\n- Models: model, architecture, benchmark, training\n- People\u002FOrgs: person, company, lab, open-source\n- Techniques: optimization, fine-tuning, inference, alignment, data\n- Meta: comparison, timeline, controversy, prediction\n\nRule: every tag on a page must appear in this taxonomy. If a new tag is needed,\nadd it here first, then use it. This prevents tag sprawl.\n\n## Page Thresholds\n- **Create a page** when an entity\u002Fconcept appears in 2+ sources OR is central to one source\n- **Add to existing page** when a source mentions something already covered\n- **DON'T create a page** for passing mentions, minor details, or things outside the domain\n- **Split a page** when it exceeds ~200 lines — break into sub-topics with cross-links\n- **Archive a page** when its content is fully superseded — move to `_archive\u002F`, remove from index\n\n## Entity Pages\nOne page per notable entity. Include:\n- Overview \u002F what it is\n- Key facts and dates\n- Relationships to other entities ([[wikilinks]])\n- Source references\n\n## Concept Pages\nOne page per concept or topic. Include:\n- Definition \u002F explanation\n- Current state of knowledge\n- Open questions or debates\n- Related concepts ([[wikilinks]])\n\n## Comparison Pages\nSide-by-side analyses. Include:\n- What is being compared and why\n- Dimensions of comparison (table format preferred)\n- Verdict or synthesis\n- Sources\n\n## Update Policy\nWhen new information conflicts with existing content:\n1. Check the dates — newer sources generally supersede older ones\n2. If genuinely contradictory, note both positions with dates and sources\n3. Mark the contradiction in frontmatter: `contradictions: [page-name]`\n4. Flag for user review in the lint report\n```\n\n### index.md Template\n\nThe index is sectioned by type. Each entry is one line: wikilink + summary.\n\n```markdown\n# Wiki Index\n\n> Content catalog. Every wiki page listed under its type with a one-line summary.\n> Read this first to find relevant pages for any query.\n> Last updated: YYYY-MM-DD | Total pages: N\n\n## Entities\n\u003C!-- Alphabetical within section -->\n\n## Concepts\n\n## Comparisons\n\n## Queries\n```\n\n**Scaling rule:** When any section exceeds 50 entries, split it into sub-sections\nby first letter or sub-domain. When the index exceeds 200 entries total, create\na `_meta\u002Ftopic-map.md` that groups pages by theme for faster navigation.\n\n### log.md Template\n\n```markdown\n# Wiki Log\n\n> Chronological record of all wiki actions. Append-only.\n> Format: `## [YYYY-MM-DD] action | subject`\n> Actions: ingest, update, query, lint, create, archive, delete\n> When this file exceeds 500 entries, rotate: rename to log-YYYY.md, start fresh.\n\n## [YYYY-MM-DD] create | Wiki initialized\n- Domain: [domain]\n- Structure created with SCHEMA.md, index.md, log.md\n```\n\n## Core Operations\n\n### 1. Ingest\n\nWhen the user provides a source (URL, file, paste), integrate it into the wiki:\n\n① **Capture the raw source:**\n   - URL → use `web_extract` to get markdown, save to `raw\u002Farticles\u002F`\n   - PDF → use `web_extract` (handles PDFs), save to `raw\u002Fpapers\u002F`\n   - Pasted text → save to appropriate `raw\u002F` subdirectory\n   - Name the file descriptively: `raw\u002Farticles\u002Fkarpathy-llm-wiki-2026.md`\n\n② **Discuss takeaways** with the user — what's interesting, what matters for\n   the domain. (Skip this in automated\u002Fcron contexts — proceed directly.)\n\n③ **Check what already exists** — search index.md and use `search_files` to find\n   existing pages for mentioned entities\u002Fconcepts. This is the difference between\n   a growing wiki and a pile of duplicates.\n\n④ **Write or update wiki pages:**\n   - **New entities\u002Fconcepts:** Create pages only if they meet the Page Thresholds\n     in SCHEMA.md (2+ source mentions, or central to one source)\n   - **Existing pages:** Add new information, update facts, bump `updated` date.\n     When new info contradicts existing content, follow the Update Policy.\n   - **Cross-reference:** Every new or updated page must link to at least 2 other\n     pages via `[[wikilinks]]`. Check that existing pages link back.\n   - **Tags:** Only use tags from the taxonomy in SCHEMA.md\n\n⑤ **Update navigation:**\n   - Add new pages to `index.md` under the correct section, alphabetically\n   - Update the \"Total pages\" count and \"Last updated\" date in index header\n   - Append to `log.md`: `## [YYYY-MM-DD] ingest | Source Title`\n   - List every file created or updated in the log entry\n\n⑥ **Report what changed** — list every file created or updated to the user.\n\nA single source can trigger updates across 5-15 wiki pages. This is normal\nand desired — it's the compounding effect.\n\n### 2. Query\n\nWhen the user asks a question about the wiki's domain:\n\n① **Read `index.md`** to identify relevant pages.\n② **For wikis with 100+ pages**, also `search_files` across all `.md` files\n   for key terms — the index alone may miss relevant content.\n③ **Read the relevant pages** using `read_file`.\n④ **Synthesize an answer** from the compiled knowledge. Cite the wiki pages\n   you drew from: \"Based on [[page-a]] and [[page-b]]...\"\n⑤ **File valuable answers back** — if the answer is a substantial comparison,\n   deep dive, or novel synthesis, create a page in `queries\u002F` or `comparisons\u002F`.\n   Don't file trivial lookups — only answers that would be painful to re-derive.\n⑥ **Update log.md** with the query and whether it was filed.\n\n### 3. Lint\n\nWhen the user asks to lint, health-check, or audit the wiki:\n\n① **Orphan pages:** Find pages with no inbound `[[wikilinks]]` from other pages.\n```python\n# Use execute_code for this — programmatic scan across all wiki pages\nimport os, re\nfrom collections import defaultdict\nwiki = \"\u003CWIKI_PATH>\"\n# Scan all .md files in entities\u002F, concepts\u002F, comparisons\u002F, queries\u002F\n# Extract all [[wikilinks]] — build inbound link map\n# Pages with zero inbound links are orphans\n```\n\n② **Broken wikilinks:** Find `[[links]]` that point to pages that don't exist.\n\n③ **Index completeness:** Every wiki page should appear in `index.md`. Compare\n   the filesystem against index entries.\n\n④ **Frontmatter validation:** Every wiki page must have all required fields\n   (title, created, updated, type, tags, sources). Tags must be in the taxonomy.\n\n⑤ **Stale content:** Pages whose `updated` date is >90 days older than the most\n   recent source that mentions the same entities.\n\n⑥ **Contradictions:** Pages on the same topic with conflicting claims. Look for\n   pages that share tags\u002Fentities but state different facts.\n\n⑦ **Page size:** Flag pages over 200 lines — candidates for splitting.\n\n⑧ **Tag audit:** List all tags in use, flag any not in the SCHEMA.md taxonomy.\n\n⑨ **Log rotation:** If log.md exceeds 500 entries, rotate it.\n\n⑩ **Report findings** with specific file paths and suggested actions, grouped by\n   severity (broken links > orphans > stale content > style issues).\n\n⑪ **Append to log.md:** `## [YYYY-MM-DD] lint | N issues found`\n\n## Working with the Wiki\n\n### Searching\n\n```bash\n# Find pages by content\nsearch_files \"transformer\" path=\"$WIKI\" file_glob=\"*.md\"\n\n# Find pages by filename\nsearch_files \"*.md\" target=\"files\" path=\"$WIKI\"\n\n# Find pages by tag\nsearch_files \"tags:.*alignment\" path=\"$WIKI\" file_glob=\"*.md\"\n\n# Recent activity\nread_file \"$WIKI\u002Flog.md\" offset=\u003Clast 20 lines>\n```\n\n### Bulk Ingest\n\nWhen ingesting multiple sources at once, batch the updates:\n1. Read all sources first\n2. Identify all entities and concepts across all sources\n3. Check existing pages for all of them (one search pass, not N)\n4. Create\u002Fupdate pages in one pass (avoids redundant updates)\n5. Update index.md once at the end\n6. Write a single log entry covering the batch\n\n### Archiving\n\nWhen content is fully superseded or the domain scope changes:\n1. Create `_archive\u002F` directory if it doesn't exist\n2. Move the page to `_archive\u002F` with its original path (e.g., `_archive\u002Fentities\u002Fold-page.md`)\n3. Remove from `index.md`\n4. Update any pages that linked to it — replace wikilink with plain text + \"(archived)\"\n5. Log the archive action\n\n### Obsidian Integration\n\nThe wiki directory works as an Obsidian vault out of the box:\n- `[[wikilinks]]` render as clickable links\n- Graph View visualizes the knowledge network\n- YAML frontmatter powers Dataview queries\n- The `raw\u002Fassets\u002F` folder holds images referenced via `![[image.png]]`\n\nFor best results:\n- Set Obsidian's attachment folder to `raw\u002Fassets\u002F`\n- Enable \"Wikilinks\" in Obsidian settings (usually on by default)\n- Install Dataview plugin for queries like `TABLE tags FROM \"entities\" WHERE contains(tags, \"company\")`\n\nIf using the Obsidian skill alongside this one, set `OBSIDIAN_VAULT_PATH` to the\nsame directory as the wiki path.\n\n### Obsidian Headless (servers and headless machines)\n\nOn machines without a display, use `obsidian-headless` instead of the desktop app.\nIt syncs vaults via Obsidian Sync without a GUI — perfect for agents running on\nservers that write to the wiki while Obsidian desktop reads it on another device.\n\n**Setup:**\n```bash\n# Requires Node.js 22+\nnpm install -g obsidian-headless\n\n# Login (requires Obsidian account with Sync subscription)\nob login --email \u003Cemail> --password '\u003Cpassword>'\n\n# Create a remote vault for the wiki\nob sync-create-remote --name \"LLM Wiki\"\n\n# Connect the wiki directory to the vault\ncd ~\u002Fwiki\nob sync-setup --vault \"\u003Cvault-id>\"\n\n# Initial sync\nob sync\n\n# Continuous sync (foreground — use systemd for background)\nob sync --continuous\n```\n\n**Continuous background sync via systemd:**\n```ini\n# ~\u002F.config\u002Fsystemd\u002Fuser\u002Fobsidian-wiki-sync.service\n[Unit]\nDescription=Obsidian LLM Wiki Sync\nAfter=network-online.target\nWants=network-online.target\n\n[Service]\nExecStart=\u002Fpath\u002Fto\u002Fob sync --continuous\nWorkingDirectory=\u002Fhome\u002Fuser\u002Fwiki\nRestart=on-failure\nRestartSec=10\n\n[Install]\nWantedBy=default.target\n```\n\n```bash\nsystemctl --user daemon-reload\nsystemctl --user enable --now obsidian-wiki-sync\n# Enable linger so sync survives logout:\nsudo loginctl enable-linger $USER\n```\n\nThis lets the agent write to `~\u002Fwiki` on a server while you browse the same\nvault in Obsidian on your laptop\u002Fphone — changes appear within seconds.\n\n## Pitfalls\n\n- **Never modify files in `raw\u002F`** — sources are immutable. Corrections go in wiki pages.\n- **Always orient first** — read SCHEMA + index + recent log before any operation in a new session.\n  Skipping this causes duplicates and missed cross-references.\n- **Always update index.md and log.md** — skipping this makes the wiki degrade. These are the\n  navigational backbone.\n- **Don't create pages for passing mentions** — follow the Page Thresholds in SCHEMA.md. A name\n  appearing once in a footnote doesn't warrant an entity page.\n- **Don't create pages without cross-references** — isolated pages are invisible. Every page must\n  link to at least 2 other pages.\n- **Frontmatter is required** — it enables search, filtering, and staleness detection.\n- **Tags must come from the taxonomy** — freeform tags decay into noise. Add new tags to SCHEMA.md\n  first, then use them.\n- **Keep pages scannable** — a wiki page should be readable in 30 seconds. Split pages over\n  200 lines. Move detailed analysis to dedicated deep-dive pages.\n- **Ask before mass-updating** — if an ingest would touch 10+ existing pages, confirm\n  the scope with the user first.\n- **Rotate the log** — when log.md exceeds 500 entries, rename it `log-YYYY.md` and start fresh.\n  The agent should check log size during lint.\n- **Handle contradictions explicitly** — don't silently overwrite. Note both claims with dates,\n  mark in frontmatter, flag for user review.\n","# Karpathy's LLM Wiki\n\nBuild and maintain a persistent, compounding knowledge base as interlinked markdown files.\nBased on [Andrej Karpathy's LLM Wiki pattern](https:\u002F\u002Fgist.github.com\u002Fkarpathy\u002F442a6bf555914893e9891c11519de94f).\n\nUnlike traditional RAG (which rediscovers knowledge from scratch per query), the wiki\ncompiles knowledge once and keeps it current. Cross-references are already there.\nContradictions have already been flagged. Synthesis reflects everything ingested.\n\n**Division of labor:** The human curates sources and directs analysis. The agent\nsummarizes, cross-references, files, and maintains consistency.\n\n## When This Skill Activates\n\nUse this skill when the user:\n- Asks to create, build, or start a wiki or knowledge base\n- Asks to ingest, add, or process a source into their wiki\n- Asks a question and an existing wiki is present at the configured path\n- Asks to lint, audit, or health-check their wiki\n- References their wiki, knowledge base, or \"notes\" in a research context\n\n## Wiki Location\n\n**Location:** Set via `WIKI_PATH` environment variable (e.g. in `~\u002F.hermes\u002F.env`).\n\nIf unset, defaults to `~\u002Fwiki`.\n\n```bash\nWIKI=\"${WIKI_PATH:-$HOME\u002Fwiki}\"\n```\n\nThe wiki is just a directory of markdown files — open it in Obsidian, VS Code, or\nany editor. No database, no special tooling required.\n\n## Architecture: Three Layers\n\n```\nwiki\u002F\n├── SCHEMA.md           # Conventions, structure rules, domain config\n├── index.md            # Sectioned content catalog with one-line summaries\n├── log.md              # Chronological action log (append-only, rotated yearly)\n├── raw\u002F                # Layer 1: Immutable source material\n│   ├── articles\u002F       # Web articles, clippings\n│   ├── papers\u002F         # PDFs, arxiv papers\n│   ├── transcripts\u002F    # Meeting notes, interviews\n│   └── assets\u002F         # Images, diagrams referenced by sources\n├── entities\u002F           # Layer 2: Entity pages (people, orgs, products, models)\n├── concepts\u002F           # Layer 2: Concept\u002Ftopic pages\n├── comparisons\u002F        # Layer 2: Side-by-side analyses\n└── queries\u002F            # Layer 2: Filed query results worth keeping\n```\n\n**Layer 1 — Raw Sources:** Immutable. The agent reads but never modifies these.\n**Layer 2 — The Wiki:** Agent-owned markdown files. Created, updated, and\ncross-referenced by the agent.\n**Layer 3 — The Schema:** `SCHEMA.md` defines structure, conventions, and tag taxonomy.\n\n## Resuming an Existing Wiki (CRITICAL — do this every session)\n\nWhen the user has an existing wiki, **always orient yourself before doing anything**:\n\n① **Read `SCHEMA.md`** — understand the domain, conventions, and tag taxonomy.\n② **Read `index.md`** — learn what pages exist and their summaries.\n③ **Scan recent `log.md`** — read the last 20-30 entries to understand recent activity.\n\n```bash\nWIKI=\"${WIKI_PATH:-$HOME\u002Fwiki}\"\n# Orientation reads at session start\nread_file \"$WIKI\u002FSCHEMA.md\"\nread_file \"$WIKI\u002Findex.md\"\nread_file \"$WIKI\u002Flog.md\" offset=\u003Clast 30 lines>\n```\n\nOnly after orientation should you ingest, query, or lint. This prevents:\n- Creating duplicate pages for entities that already exist\n- Missing cross-references to existing content\n- Contradicting the schema's conventions\n- Repeating work already logged\n\nFor large wikis (100+ pages), also run a quick `search_files` for the topic\nat hand before creating anything new.\n\n## Initializing a New Wiki\n\nWhen the user asks to create or start a wiki:\n\n1. Determine the wiki path (from `$WIKI_PATH` env var, or ask the user; default `~\u002Fwiki`)\n2. Create the directory structure above\n3. Ask the user what domain the wiki covers — be specific\n4. Write `SCHEMA.md` customized to the domain (see template below)\n5. Write initial `index.md` with sectioned header\n6. Write initial `log.md` with creation entry\n7. Confirm the wiki is ready and suggest first sources to ingest\n\n### SCHEMA.md Template\n\nAdapt to the user's domain. The schema constrains agent behavior and ensures consistency:\n\n```markdown\n# Wiki Schema\n\n## Domain\n[What this wiki covers — e.g., \"AI\u002FML research\", \"personal health\", \"startup intelligence\"]\n\n## Conventions\n- File names: lowercase, hyphens, no spaces (e.g., `transformer-architecture.md`)\n- Every wiki page starts with YAML frontmatter (see below)\n- Use `[[wikilinks]]` to link between pages (minimum 2 outbound links per page)\n- When updating a page, always bump the `updated` date\n- Every new page must be added to `index.md` under the correct section\n- Every action must be appended to `log.md`\n\n## Frontmatter\n  ```yaml\n  ---\n  title: Page Title\n  created: YYYY-MM-DD\n  updated: YYYY-MM-DD\n  type: entity | concept | comparison | query | summary\n  tags: [from taxonomy below]\n  sources: [raw\u002Farticles\u002Fsource-name.md]\n  ---\n  ```\n\n## Tag Taxonomy\n[Define 10-20 top-level tags for the domain. Add new tags here BEFORE using them.]\n\nExample for AI\u002FML:\n- Models: model, architecture, benchmark, training\n- People\u002FOrgs: person, company, lab, open-source\n- Techniques: optimization, fine-tuning, inference, alignment, data\n- Meta: comparison, timeline, controversy, prediction\n\nRule: every tag on a page must appear in this taxonomy. If a new tag is needed,\nadd it here first, then use it. This prevents tag sprawl.\n\n## Page Thresholds\n- **Create a page** when an entity\u002Fconcept appears in 2+ sources OR is central to one source\n- **Add to existing page** when a source mentions something already covered\n- **DON'T create a page** for passing mentions, minor details, or things outside the domain\n- **Split a page** when it exceeds ~200 lines — break into sub-topics with cross-links\n- **Archive a page** when its content is fully superseded — move to `_archive\u002F`, remove from index\n\n## Entity Pages\nOne page per notable entity. Include:\n- Overview \u002F what it is\n- Key facts and dates\n- Relationships to other entities ([[wikilinks]])\n- Source references\n\n## Concept Pages\nOne page per concept or topic. Include:\n- Definition \u002F explanation\n- Current state of knowledge\n- Open questions or debates\n- Related concepts ([[wikilinks]])\n\n## Comparison Pages\nSide-by-side analyses. Include:\n- What is being compared and why\n- Dimensions of comparison (table format preferred)\n- Verdict or synthesis\n- Sources\n\n## Update Policy\nWhen new information conflicts with existing content:\n1. Check the dates — newer sources generally supersede older ones\n2. If genuinely contradictory, note both positions with dates and sources\n3. Mark the contradiction in frontmatter: `contradictions: [page-name]`\n4. Flag for user review in the lint report\n```\n\n### index.md Template\n\nThe index is sectioned by type. Each entry is one line: wikilink + summary.\n\n```markdown\n# Wiki Index\n\n> Content catalog. Every wiki page listed under its type with a one-line summary.\n> Read this first to find relevant pages for any query.\n> Last updated: YYYY-MM-DD | Total pages: N\n\n## Entities\n\u003C!-- Alphabetical within section -->\n\n## Concepts\n\n## Comparisons\n\n## Queries\n```\n\n**Scaling rule:** When any section exceeds 50 entries, split it into sub-sections\nby first letter or sub-domain. When the index exceeds 200 entries total, create\na `_meta\u002Ftopic-map.md` that groups pages by theme for faster navigation.\n\n### log.md Template\n\n```markdown\n# Wiki Log\n\n> Chronological record of all wiki actions. Append-only.\n> Format: `## [YYYY-MM-DD] action | subject`\n> Actions: ingest, update, query, lint, create, archive, delete\n> When this file exceeds 500 entries, rotate: rename to log-YYYY.md, start fresh.\n\n## [YYYY-MM-DD] create | Wiki initialized\n- Domain: [domain]\n- Structure created with SCHEMA.md, index.md, log.md\n```\n\n## Core Operations\n\n### 1. Ingest\n\nWhen the user provides a source (URL, file, paste), integrate it into the wiki:\n\n① **Capture the raw source:**\n   - URL → use `web_extract` to get markdown, save to `raw\u002Farticles\u002F`\n   - PDF → use `web_extract` (handles PDFs), save to `raw\u002Fpapers\u002F`\n   - Pasted text → save to appropriate `raw\u002F` subdirectory\n   - Name the file descriptively: `raw\u002Farticles\u002Fkarpathy-llm-wiki-2026.md`\n\n② **Discuss takeaways** with the user — what's interesting, what matters for\n   the domain. (Skip this in automated\u002Fcron contexts — proceed directly.)\n\n③ **Check what already exists** — search index.md and use `search_files` to find\n   existing pages for mentioned entities\u002Fconcepts. This is the difference between\n   a growing wiki and a pile of duplicates.\n\n④ **Write or update wiki pages:**\n   - **New entities\u002Fconcepts:** Create pages only if they meet the Page Thresholds\n     in SCHEMA.md (2+ source mentions, or central to one source)\n   - **Existing pages:** Add new information, update facts, bump `updated` date.\n     When new info contradicts existing content, follow the Update Policy.\n   - **Cross-reference:** Every new or updated page must link to at least 2 other\n     pages via `[[wikilinks]]`. Check that existing pages link back.\n   - **Tags:** Only use tags from the taxonomy in SCHEMA.md\n\n⑤ **Update navigation:**\n   - Add new pages to `index.md` under the correct section, alphabetically\n   - Update the \"Total pages\" count and \"Last updated\" date in index header\n   - Append to `log.md`: `## [YYYY-MM-DD] ingest | Source Title`\n   - List every file created or updated in the log entry\n\n⑥ **Report what changed** — list every file created or updated to the user.\n\nA single source can trigger updates across 5-15 wiki pages. This is normal\nand desired — it's the compounding effect.\n\n### 2. Query\n\nWhen the user asks a question about the wiki's domain:\n\n① **Read `index.md`** to identify relevant pages.\n② **For wikis with 100+ pages**, also `search_files` across all `.md` files\n   for key terms — the index alone may miss relevant content.\n③ **Read the relevant pages** using `read_file`.\n④ **Synthesize an answer** from the compiled knowledge. Cite the wiki pages\n   you drew from: \"Based on [[page-a]] and [[page-b]]...\"\n⑤ **File valuable answers back** — if the answer is a substantial comparison,\n   deep dive, or novel synthesis, create a page in `queries\u002F` or `comparisons\u002F`.\n   Don't file trivial lookups — only answers that would be painful to re-derive.\n⑥ **Update log.md** with the query and whether it was filed.\n\n### 3. Lint\n\nWhen the user asks to lint, health-check, or audit the wiki:\n\n① **Orphan pages:** Find pages with no inbound `[[wikilinks]]` from other pages.\n```python\n# Use execute_code for this — programmatic scan across all wiki pages\nimport os, re\nfrom collections import defaultdict\nwiki = \"\u003CWIKI_PATH>\"\n# Scan all .md files in entities\u002F, concepts\u002F, comparisons\u002F, queries\u002F\n# Extract all [[wikilinks]] — build inbound link map\n# Pages with zero inbound links are orphans\n```\n\n② **Broken wikilinks:** Find `[[links]]` that point to pages that don't exist.\n\n③ **Index completeness:** Every wiki page should appear in `index.md`. Compare\n   the filesystem against index entries.\n\n④ **Frontmatter validation:** Every wiki page must have all required fields\n   (title, created, updated, type, tags, sources). Tags must be in the taxonomy.\n\n⑤ **Stale content:** Pages whose `updated` date is >90 days older than the most\n   recent source that mentions the same entities.\n\n⑥ **Contradictions:** Pages on the same topic with conflicting claims. Look for\n   pages that share tags\u002Fentities but state different facts.\n\n⑦ **Page size:** Flag pages over 200 lines — candidates for splitting.\n\n⑧ **Tag audit:** List all tags in use, flag any not in the SCHEMA.md taxonomy.\n\n⑨ **Log rotation:** If log.md exceeds 500 entries, rotate it.\n\n⑩ **Report findings** with specific file paths and suggested actions, grouped by\n   severity (broken links > orphans > stale content > style issues).\n\n⑪ **Append to log.md:** `## [YYYY-MM-DD] lint | N issues found`\n\n## Working with the Wiki\n\n### Searching\n\n```bash\n# Find pages by content\nsearch_files \"transformer\" path=\"$WIKI\" file_glob=\"*.md\"\n\n# Find pages by filename\nsearch_files \"*.md\" target=\"files\" path=\"$WIKI\"\n\n# Find pages by tag\nsearch_files \"tags:.*alignment\" path=\"$WIKI\" file_glob=\"*.md\"\n\n# Recent activity\nread_file \"$WIKI\u002Flog.md\" offset=\u003Clast 20 lines>\n```\n\n### Bulk Ingest\n\nWhen ingesting multiple sources at once, batch the updates:\n1. Read all sources first\n2. Identify all entities and concepts across all sources\n3. Check existing pages for all of them (one search pass, not N)\n4. Create\u002Fupdate pages in one pass (avoids redundant updates)\n5. Update index.md once at the end\n6. Write a single log entry covering the batch\n\n### Archiving\n\nWhen content is fully superseded or the domain scope changes:\n1. Create `_archive\u002F` directory if it doesn't exist\n2. Move the page to `_archive\u002F` with its original path (e.g., `_archive\u002Fentities\u002Fold-page.md`)\n3. Remove from `index.md`\n4. Update any pages that linked to it — replace wikilink with plain text + \"(archived)\"\n5. Log the archive action\n\n### Obsidian Integration\n\nThe wiki directory works as an Obsidian vault out of the box:\n- `[[wikilinks]]` render as clickable links\n- Graph View visualizes the knowledge network\n- YAML frontmatter powers Dataview queries\n- The `raw\u002Fassets\u002F` folder holds images referenced via `![[image.png]]`\n\nFor best results:\n- Set Obsidian's attachment folder to `raw\u002Fassets\u002F`\n- Enable \"Wikilinks\" in Obsidian settings (usually on by default)\n- Install Dataview plugin for queries like `TABLE tags FROM \"entities\" WHERE contains(tags, \"company\")`\n\nIf using the Obsidian skill alongside this one, set `OBSIDIAN_VAULT_PATH` to the\nsame directory as the wiki path.\n\n### Obsidian Headless (servers and headless machines)\n\nOn machines without a display, use `obsidian-headless` instead of the desktop app.\nIt syncs vaults via Obsidian Sync without a GUI — perfect for agents running on\nservers that write to the wiki while Obsidian desktop reads it on another device.\n\n**Setup:**\n```bash\n# Requires Node.js 22+\nnpm install -g obsidian-headless\n\n# Login (requires Obsidian account with Sync subscription)\nob login --email \u003Cemail> --password '\u003Cpassword>'\n\n# Create a remote vault for the wiki\nob sync-create-remote --name \"LLM Wiki\"\n\n# Connect the wiki directory to the vault\ncd ~\u002Fwiki\nob sync-setup --vault \"\u003Cvault-id>\"\n\n# Initial sync\nob sync\n\n# Continuous sync (foreground — use systemd for background)\nob sync --continuous\n```\n\n**Continuous background sync via systemd:**\n```ini\n# ~\u002F.config\u002Fsystemd\u002Fuser\u002Fobsidian-wiki-sync.service\n[Unit]\nDescription=Obsidian LLM Wiki Sync\nAfter=network-online.target\nWants=network-online.target\n\n[Service]\nExecStart=\u002Fpath\u002Fto\u002Fob sync --continuous\nWorkingDirectory=\u002Fhome\u002Fuser\u002Fwiki\nRestart=on-failure\nRestartSec=10\n\n[Install]\nWantedBy=default.target\n```\n\n```bash\nsystemctl --user daemon-reload\nsystemctl --user enable --now obsidian-wiki-sync\n# Enable linger so sync survives logout:\nsudo loginctl enable-linger $USER\n```\n\nThis lets the agent write to `~\u002Fwiki` on a server while you browse the same\nvault in Obsidian on your laptop\u002Fphone — changes appear within seconds.\n\n## Pitfalls\n\n- **Never modify files in `raw\u002F`** — sources are immutable. Corrections go in wiki pages.\n- **Always orient first** — read SCHEMA + index + recent log before any operation in a new session.\n  Skipping this causes duplicates and missed cross-references.\n- **Always update index.md and log.md** — skipping this makes the wiki degrade. These are the\n  navigational backbone.\n- **Don't create pages for passing mentions** — follow the Page Thresholds in SCHEMA.md. A name\n  appearing once in a footnote doesn't warrant an entity page.\n- **Don't create pages without cross-references** — isolated pages are invisible. Every page must\n  link to at least 2 other pages.\n- **Frontmatter is required** — it enables search, filtering, and staleness detection.\n- **Tags must come from the taxonomy** — freeform tags decay into noise. Add new tags to SCHEMA.md\n  first, then use them.\n- **Keep pages scannable** — a wiki page should be readable in 30 seconds. Split pages over\n  200 lines. Move detailed analysis to dedicated deep-dive pages.\n- **Ask before mass-updating** — if an ingest would touch 10+ existing pages, confirm\n  the scope with the user first.\n- **Rotate the log** — when log.md exceeds 500 entries, rename it `log-YYYY.md` and start fresh.\n  The agent should check log size during lint.\n- **Handle contradictions explicitly** — don't silently overwrite. Note both claims with dates,\n  mark in frontmatter, flag for user review.\n",{"name":5,"author":48,"license":14,"version":49,"metadata":50,"description":7},"Hermes Agent","2.0.0",{"hermes":51},{"tags":52,"category":53,"related_skills":54},[23,30,53,41,39,36],"research",[35,34,55],"agentic-research-ideas","main","17ee50c38aefa9426a89d7e8ee167fdc4c184fb7","skills\u002Fresearch\u002Fllm-wiki",0,"https:\u002F\u002Fgithub.com\u002Fxuanxuan1983\u002Fhermes-skills-backup","https:\u002F\u002Fgithub.com\u002Fxuanxuan1983","2026-05-24 00:14:48",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add xuanxuan1983\u002Fhermes-skills-backup --skill llm-wiki",{"tool":69,"command":70},"bunx","bunx skills add xuanxuan1983\u002Fhermes-skills-backup --skill llm-wiki",{"tool":72,"command":73},"pnpm","pnpm dlx skills add xuanxuan1983\u002Fhermes-skills-backup --skill llm-wiki","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxuanxuan1983\u002Fhermes-skills-backup\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fllm-wiki\u002FSKILL.md",true,[],[78,118,146,162,184,205],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":98,"publishedAt":43},"01M71JFHVW1W4XE013TY9ZYN9P","writing-plans","Use when you have a spec or requirements for a multi-step task. Creates comprehensive implementation plans with bite-sized tasks, exact file paths, and complete code examples.","https:\u002F\u002Fgithub.com\u002Fxuanxuan1983\u002Fhermes-skills-backup\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fwriting-plans\u002FSKILL.md",[84,87,90,95],{"categoryNo":85,"categoryName":86,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":88,"categoryName":89,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":91,"categoryName":92,"taxonomyType":93,"taxonomyTypeDesc":94},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",{"categoryNo":96,"categoryName":97,"taxonomyType":93,"taxonomyTypeDesc":94},"01JBSEEDCAT000000000000036","内容创作者",[99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,26],"writing","writing plans","plans","test-driven","test-driven-development","superpowers","design","when","workflow","you","code","tasks","subagent","code-review","review","documentation","paths","planning","development",{"skillNo":119,"name":103,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":131,"publishedAt":43},"01M71JFF859RV0XGWS206X1TMB","Use when implementing any feature or bugfix, before writing implementation code. Enforces RED-GREEN-REFACTOR cycle with test-first approach.","https:\u002F\u002Fgithub.com\u002Fxuanxuan1983\u002Fhermes-skills-backup\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Ftest-driven-development\u002FSKILL.md",[123,126,129,130],{"categoryNo":124,"categoryName":125,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000007","代码审查",{"categoryNo":127,"categoryName":128,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":88,"categoryName":89,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":96,"categoryName":97,"taxonomyType":93,"taxonomyTypeDesc":94},[132,117,133,134,135,136,137,138,139,140,104,99,141,106,109,111,142,143,144,145],"test driven development","test","driven","test-first","green","cycle","red-green-refactor","testing","implementing","debugging","systematic","bugfix","refactor","systematic-debugging",{"skillNo":147,"name":145,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":152,"publishedAt":43},"01M71JFCA5S48PZ5M7DG31R8K5","Use when encountering any bug, test failure, or unexpected behavior. 4-phase root cause investigation — NO fixes without understanding the problem first.","https:\u002F\u002Fgithub.com\u002Fxuanxuan1983\u002Fhermes-skills-backup\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fsystematic-debugging\u002FSKILL.md",[151],{"categoryNo":127,"categoryName":128,"taxonomyType":20,"taxonomyTypeDesc":21},[153,141,142,102,154,155,103,104,99,106,111,156,157,117,158,159,101,160,161,133],"systematic debugging","problem","problem-solving","phase","bug","fixes","root cause","use","root-cause",{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":177,"publishedAt":43},"01M71JF9RQ092KM5ZXCBBT6FS1","subagent-driven-development","Use when executing implementation plans with independent tasks. Dispatches fresh delegate_task per task with two-stage review (spec compliance then code quality).","https:\u002F\u002Fgithub.com\u002Fxuanxuan1983\u002Fhermes-skills-backup\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fsubagent-driven-development\u002FSKILL.md",[168,169,172,173,174],{"categoryNo":88,"categoryName":89,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":170,"categoryName":171,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":91,"categoryName":92,"taxonomyType":93,"taxonomyTypeDesc":94},{"categoryNo":96,"categoryName":97,"taxonomyType":93,"taxonomyTypeDesc":94},{"categoryNo":175,"categoryName":176,"taxonomyType":93,"taxonomyTypeDesc":94},"01JBSEEDCAT000000000000037","律师与法务",[178,111,117,134,102,103,179,180,104,99,106,107,109,110,112,113,181,182,183,101],"subagent driven development","delegate","delegation","fresh","parallel","code quality",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":192,"publishedAt":43},"01M71JF76DA8ARZ4JRYR4VBRWM","requesting-code-review","Pre-commit verification pipeline — static security scan, baseline-aware quality gates, independent reviewer subagent, and auto-fix loop. Use after code changes and before committing, pushing, or opening a PR.","https:\u002F\u002Fgithub.com\u002Fxuanxuan1983\u002Fhermes-skills-backup\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Frequesting-code-review\u002FSKILL.md",[190,191],{"categoryNo":124,"categoryName":125,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":91,"categoryName":92,"taxonomyType":93,"taxonomyTypeDesc":94},[193,194,109,113,102,195,196,103,197,198,104,199,99,200,201,202,111,112,203,204],"code review","requesting code review","pipeline","static","fix","auto-fix","auto","loop","security scan","commit","reviewer","verification",{"skillNo":206,"name":207,"nameZh":6,"description":208,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":209,"categories":210,"keywords":211,"publishedAt":43},"01M71JF52HZT5VQXFVF9K2H76K","plan","Plan mode for Hermes — inspect context, write a markdown plan into the active workspace's `.hermes\u002Fplans\u002F` directory, and do not execute the work.","https:\u002F\u002Fgithub.com\u002Fxuanxuan1983\u002Fhermes-skills-backup\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fplan\u002FSKILL.md",[],[207,212,213,116,117,26,214,215,101,99,107,111,216,39,217,218,219,220,221,222],"plan-mode","do","inspect","mode","work","active","directory","workspace","plan mode","write","implementation"]