Wiki gen

From orientpine/honeypot · View interactive version

Wiki gen is an AI agent skill from the GitHub repository orientpine/honeypot. Compile personal data (journals, notes, messages, whatever) into a personal knowledge wiki. Ingest any data format (Day One JSON, Apple Notes, Obsidian, Notion, plain text, iMessage, CSV, email, Twitter), absorb entries into wiki articles, query the wiki, cleanup articles, and expand coverage. Use w

How to use this skill

Skill file

Directory Structure

your-project/
  data/                  # Your source files (DO NOT MODIFY after ingest)
  raw/entries/           # One .md per entry (generated by ingest)
  raw/batches/           # Optional batch manifests for large vaults
  wiki/                  # The compiled knowledge base
    _index.md            # Master index with aliases
    _backlinks.json      # Reverse link index
    _absorb_log.json     # Tracks which entries have been absorbed
    _uncovered.md        # Coverage gaps after absorb/remediate
    {directories}/       # Emerge from the data. Don't pre-create.

You can override the wiki directory with --dir <name> on any command. Each version is its own universe. Never read from or reference another version.


Command: `wiki ingest`

Convert source data into individual .md files in raw/entries/. This step is mechanical. Prefer the bundled scripts/ingest_obsidian.py helper over writing custom parsers. For other formats, copy the closest helper and keep ingest behavior consistent across formats.

Key rules:

See references/ingest-spec.md for script execution and path resolution, supported data formats, standard exclusions, output format, date extraction, warning thresholds, and unknown-format handling.


Scale Mode

Before running wiki absorb, choose the mode based on raw entry count. Small vaults can run single-pass or sectioned. Large vaults should use partitioned parallel processing with batch manifests and targeted remediation before cleanup.

Key rules:

See references/scale-mode.md for the full mode table, partitioned parallel workflow, partition safety rules, and batch manifest format.


Command: `wiki absorb [date-range]`

The core compilation step. Date ranges: last 30 days, 2026-03, 2026-03-22, 2024, all. Default, with no argument, is last 30 days. If raw/entries/ doesn't exist, run ingest first.

Process entries one at a time. Read _index.md before each entry, match against existing articles, re-read every article before updating it, and identify what the new entry changes in your understanding. Write integrated sections or rich paragraphs, not bottom-appended scraps.

Key rules:

See references/command-details.md for the agent prompt template, full absorption loop, Anti-Dump examples and hard limits, article-creation rules, checkpoint cadence, and audit checklist.


Command: `wiki query <question>`

Answer questions about the subject's life by navigating the wiki. Read _index.md, use _backlinks.json to identify central topics, read only the relevant articles, and synthesize an answer from the compiled wiki. Query is read-only.

Key rules:

See references/command-details.md for the full answer procedure, query patterns by article type, and query rules.


Command: `wiki remediate`

Scan for raw entries that are not yet cited in any wiki article, and launch targeted remediation agents to close the coverage gap. Run this after wiki absorb and before wiki cleanup.

Key rules:

See references/command-details.md for citation-versus-content coverage, process phases, when to run, and why remediation is separate from cleanup.


Command: `wiki cleanup`

Audit and enrich every article in the wiki using parallel subagents. Cleanup is broad restructuring work after coverage is stabilized.

Key rules:

See references/command-details.md for the cleanup agent prompt template, the three cleanup phases, orphan policy, and the Steve Jobs restructuring test.


Command: `wiki breakdown`

Find and create missing articles. Expands the wiki by identifying concrete entities and themes that deserve their own pages.

Key rules:

See references/command-details.md for the breakdown agent prompt template, all four phases, and reclassification rules.


Directory Taxonomy

Directories emerge from the data. Don't pre-create them. The reference taxonomy covers 39 common directories across 7 groups: core, media and culture, inner life and patterns, narrative structure, relationships and people, work and strategy, and other.

See references/taxonomy.md for the full directory list, types, and placement guidance.


Writing Standards

Key rules:

See references/writing-standards.md for the full tone rules, frontmatter schema, article format, linking resolution test, filename convention, citation discipline, aliases discipline, narrative coherence, structure-by-type table, quote discipline, and length targets.


Command: `wiki sync`

Pull documentation from multiple source projects and update raw/entries/.

This is the collection layer — it gathers source documents but does NOT

run LLM absorption. Think of it as "wiki ingest, but for many sources at once."

Quick Start

  1. Create sources.yaml in the project root (see references/sources-schema.md).
  2. Run:
python scripts/sync_sources.py --config sources.yaml --wiki-root wiki/
  1. Review new entries in raw/entries/{source_name}/.
  2. Run wiki absorb (manually) to integrate new entries into wiki articles.

What It Does

  1. Reads sources.yaml for the list of source projects.
  2. For each source:
  1. Runs the appropriate ingest helper for each source:
  1. Writes entries to raw/entries/{source_name}/.
  2. Merges all per-source ingest logs into unified raw/ingest_log.json.
  3. Runs rebuild_index.py and check_coverage.py automatically.
  4. Reports sync summary with added/updated/unchanged/deleted counts.

Incremental Sync

After the first run, sync_log.json tracks each file's content hash.

Subsequent runs only process changed files, skipping unchanged ones.

Automation Levels

This command handles Level 1 (Source → Entries) automation:

| Level | What | Cost | Trigger |

|---|---|---|---|

| Level 1 | Source docs → raw/entries/ + index + backlinks | Seconds to minutes, no LLM | wiki sync (cron/timer/manual) |

| Level 2 | New entries → wiki article text | LLM cost per entry | wiki absorb (manual) |

Level 2 requires manual wiki absorb — see Phase 3 in the implementation plan.

ID Strategy

Project sources use source-prefixed IDs to prevent collisions:

sha1(f"{source_name}:{relative_path}")[:12]

Obsidian sources keep the original ID strategy (sha1(rel_path)[:12])

to preserve backward compatibility with existing article citations.

Deletion Handling

When a source file is deleted:

When to Run

See Also


Command: `wiki rebuild-index`

Rebuild _index.md and _backlinks.json from current wiki state. Exclude meta files, README.md, and optional .wikiignore entries. Generate index entries with [[filename_stem|Display Title]], preserve aliases in the index line, and verify that every wikilink resolves through a filename or alias.

See references/command-details.md for exclusions, required format, reference implementation, and verification steps.


Command: `wiki reorganize`

Step back and rethink wiki structure. Read the index, sample articles, and ask: merge, split, new categories, orphan articles, missing patterns. Execute changes, then rebuild index.

See references/command-details.md for the full reorganize command note.


Command: `wiki status`

Report current wiki state using the standard structure: Ingestion, Articles, Coverage, Quality, and See also.

See references/command-details.md for the exact output template.


Principles

  1. You are a writer. Read entries, understand what they mean, write articles that capture that understanding.
  2. Every entry ends up somewhere. Woven into the fabric of understanding, not mechanically filed.
  3. Articles are knowledge, not diary entries. Synthesize, don't summarize.
  4. Concept articles are essential. Patterns, themes, arcs. These are where the wiki becomes a map of a mind.
  5. Revise your work. Re-read articles. Rewrite the ones that read like event logs.
  6. Breadth and depth. Create pages aggressively, but every page must gain real substance. 40 stubs is as bad as 5 bloated articles.
  7. The structure is alive. Merge, split, rename, restructure freely.
  8. View photos. Understand what they show and integrate them into the narrative.
  9. Connect, don't just record. Find the web of meaning between entities.
  10. Cite sources. Every claim traces back to a raw entry ID.

Concurrency Rules


Migration from v1.0.0

See references/migration.md for backward-compatibility policy, recommended migration steps, when full migration is required, and lint warning versus error behavior.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.