Skip to main content
Every topic article in your wiki follows the same section structure. You control that structure through the article_sections array in .wiki-compiler.json.

How sections are generated

When you run /wiki-init, the compiler samples 10–15 representative files from your source directories and reads the title and opening content of each. Based on what it finds — meeting notes, research papers, strategy docs, journal entries, technical specs — it proposes a set of sections that fit your domain. You review the proposal and can add, remove, or rename any section before the config is written. Once you approve, the structure is saved to .wiki-compiler.json.

The article_sections config

Each entry has three fields:

Rules

  • Summary is always first. It must be a standalone briefing — someone reading only that section should understand the current state of the topic without opening any source file.
  • Sources is always last. It contains backlinks to every source file that contributed to the article, so you and Claude can trace the wiki back to raw files when needed.
  • Summary and Sources cannot be removed. They are marked "required": true and the compiler enforces this on every run.
  • All other sections are yours to define. You can add, remove, or rename them freely.
Removing a section from article_sections does not delete existing content from already-compiled articles. It stops the compiler from populating that section in future runs. Run /wiki-compile after editing to rebuild articles with the updated structure.

Domain examples

The sections that work well depend on the kind of content you’re compiling. /wiki-init proposes sections based on your actual files — the examples below show what that looks like in practice.
Good for teams tracking experiments, metrics, and evolving strategy.
Good for literature reviews, experiment logs, and academic notes.
Good for daily notes, reflections, and personal knowledge bases.
Good for reading logs, book summaries, and literary analysis.
Good for engineering wikis, API references, and system documentation.
Good for team wikis, meeting digests, and decision logs.

Editing sections after init

You can edit article_sections in .wiki-compiler.json at any time. The updated structure takes effect on the next /wiki-compile run.
The description field matters — it guides the compiler’s content decisions, not just the section label. Be specific: “decisions that shaped the current approach, with rationale” produces better output than just “decisions”.