wiki-rebuild

Archive and rebuild wikis from multiple sources while preserving historical states.

Updated Feb 2, 2016
One-click install
npx skills add https://github.com/zjykzk/blog --skill wiki-rebuild-zjykzk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wiki-rebuild
Source: https://github.com/zjykzk/blog/tree/main/.agents/skills/wiki-rebuild
Command: npx skills add https://github.com/zjykzk/blog --skill wiki-rebuild-zjykzk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Archive existing wiki knowledge and rebuild from scratch, or restore from a previous archive. Use this skill when the user wants to start fresh, rebuild the wiki from all sources, archive current knowledge before a major change, or restore an older version. Triggers on "rebuild the wiki", "start over", "archive and rebuild", "restore from archive", "nuke and repave", "clean rebuild". Also use when the wiki has drifted too far from sources and incremental fixes won't cut it.

Core Features & Use Cases

  • Supports three modes: archive only, archive + rebuild, and restore from an archive.
  • Archives live at $OBSIDIAN_VAULT_PATH/_archives/ with timestamped folders containing a full copy of the wiki state plus archive-meta.json, log.md, and the manifest.
  • Mode 1 archives the current state; Mode 2 archives, clears the live wiki, then rebuilds from sources; Mode 3 restores a chosen archive onto the live wiki after archiving the current state.
  • After operations, the system updates archive-meta.json and log.md, and recommends optional QMD refresh steps when configured.

Quick Start

Archive the current wiki state, then proceed with the selected mode (archive only, archive + rebuild, or restore) and follow the prompts to complete the operation.

Frequently Asked Questions about wiki-rebuild

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

FAQPage Schema
How do I archive and rebuild a wiki from scratch?

To archive and rebuild a wiki, trigger a full rebuild to archive the current state, clear the live wiki with explicit confirmation, and ingest fresh content from all configured sources.

Can I restore a wiki from a previous archive?

Yes, you can restore a wiki from a previous archive by selecting the restore mode, which archives the current live state first before applying the chosen historical archive folder onto the live wiki.

What is the best way to preserve historical wiki states before major changes?

The best way to preserve historical wiki states is using the archive-only mode, which creates a timestamped folder containing the full wiki copy, archive-meta.json, and log.md for traceability.

Where are wiki archives stored and what metadata is included?

Wiki archives are stored in timestamped folders at $OBSIDIAN_VAULT_PATH/_archives/, containing a full copy of the wiki state, an archive-meta.json file, a log.md, and a manifest for traceability.

When should I do a clean rebuild instead of incremental wiki fixes?

A clean wiki rebuild is necessary when the wiki has drifted too far from its sources and incremental fixes won't cut it, requiring you to archive existing knowledge and rebuild from all sources.

Does the wiki rebuild process require user confirmation before clearing data?

Yes, the wiki rebuild process requires explicit user confirmation before clearing the live wiki, ensuring you authorize the deletion of current content prior to the fresh ingest steps.