wiki-fold

Roll up wiki log entries into a deterministic extractive meta-fold with citations.

Updated Jun 1, 2026
One-click install
npx skills add https://github.com/deox420/second-brain --skill wiki-fold-deox420
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wiki-fold
Source: https://github.com/deox420/second-brain/tree/main/skills/wiki-fold
Command: npx skills add https://github.com/deox420/second-brain --skill wiki-fold-deox420

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rolls up wiki log entries into a single meta-fold that preserves traceability to each source entry and prevents invention beyond what's stated in the logs.

Core Features & Use Cases

  • Reads the last 2^k entries from wiki/log.md and generates a deterministic fold page under wiki/folds/ that references each contributing log entry.
  • Ensures extractive summarization with explicit citations to source entries; no content is invented beyond the logs.
  • Supports dry-run mode (stdout-only) by default and a commit mode that writes to wiki/folds and triggers the repository's auto-commit hooks.
  • Enforces concurrency control via wiki-lock.sh to prevent write races and duplicates.

Quick Start

Fold the log, dry-run k=3 to preview the fold.

Frequently Asked Questions about wiki-fold

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I summarize markdown wiki log entries while preserving traceability to source pages?

You can use extractive summarization to roll up wiki log entries into a single meta-fold page. This process preserves traceability by generating deterministic fold IDs with explicit citations referencing each contributing source entry from the original markdown logs.

Can I preview a markdown log fold before committing changes to my knowledge vault?

Yes, you can run the wiki fold process in dry-run mode to preview the extractive summary on stdout. This default mode prevents file writes, allowing you to verify the generated meta-page content before executing a commit to the repository.

Does this markdown summarization approach work with Obsidian version-control workflows?

Yes, the summarization process integrates with version-control workflows by triggering repository auto-commit hooks via a PostToolUse hook. It enforces concurrency control through a wiki-lock script to prevent write races when updating your knowledge vault.

What is the maximum number of child pages supported for an extractive markdown summarization fold?

The extractive summarization fold supports bounded reads of 0 to 15 child pages. It typically reads the last 2^k entries from wiki/log.md to generate the deterministic meta-page, ensuring a strict limit on processed log entries.

How do I prevent duplicate entries when rolling up markdown wiki logs into a meta-page?

You prevent duplicates during a wiki log fold by enforcing concurrency control via a wiki-lock script. This lock mechanism blocks write races, while deterministic fold IDs and idempotent writes ensure no repeated meta-pages are generated.