wiki-rebuild is the recovery tool for a wiki that needs a full restart. It has three modes: archive only, archive then clear for a rebuild, and restore from a previous archive.
Each archive is a timestamped folder with a copy of the category pages, index, log, manifest and an archive-meta file. The skill always archives first, asks before clearing the live wiki, and leaves the Obsidian settings folder alone.
What You Get
- A timestamped archive folder with pages, index, log, manifest and metadata
- A cleared vault ready for a selective full re-ingest
- A restore from any earlier archive after a safety snapshot
- Log entries for each archive, rebuild or restore
- A final report that includes the state of the QMD search index
Common Use Cases
- Taking a snapshot of a wiki before a risky bulk operation
- Starting a wiki again from its sources after the structure has drifted
- Rolling a vault back to an earlier archive
What Makes It Unique
It treats archiving as a rule with no exceptions and makes the user choose what to re-ingest and in what order, since some sources may no longer matter. Restore takes a pre-restore snapshot first, so the restore itself can be undone. It also keeps the search index in step, because a cleared wiki would otherwise return results for deleted pages.
Under The Hood
The skill is instructions for the agent. It copies and deletes markdown files inside the vault, writes the archive metadata and appends to the log. It never touches the Obsidian settings folder or an env file in the vault. When a QMD collection is configured it runs the qmd command line tool to update, embed and verify the search index. It does not fetch web pages or call remote APIs.