Back to Skills

wiki-rebuild

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.

1,769stars194forksUpdated 6/9/2026

Security Assessment

Low Risk(80/100)

Detected risks:

Sensitive File Access([SKILL.md] .env)
Security Score80/100

About wiki-rebuild

The wiki-rebuild skill is designed to manage and maintain a knowledge wiki by providing capabilities to archive, rebuild, or restore the entire wiki. It addresses situations where the wiki has become inconsistent, outdated, or overly complex, making incremental updates insufficient. By using this skill, users can start fresh while preserving historical states, ensuring that no valuable information is permanently lost. The skill emphasizes safe operations, always prompting for confirmation and performing archival before any destructive actions, mitigating the risk of accidental data loss.

This skill offers three main modes of operation: 'Archive Only,' 'Archive + Rebuild,' and 'Restore.' The Archive Only mode creates a snapshot of the current wiki state, storing all categories, project files, and manifest information in a timestamped archive directory. Archive + Rebuild not only snapshots the existing wiki but also clears live content to allow a complete re-ingestion from all sources, providing a clean slate. The Restore mode enables users to revert the wiki to a previous state using the archived snapshots. Each archive includes metadata such as the number of pages, sources, and projects, ensuring traceability and easy rollback. The skill integrates with configuration protocols and optional QMD indexing to maintain a consistent and searchable wiki environment.

Typical use cases include rebuilding a wiki that has drifted too far from its source materials, performing major structural changes, or restoring content after accidental deletions. Target users are knowledge managers, technical writers, and developers who maintain large-scale wikis in environments like Obsidian. The skill is particularly valuable in scenarios requiring careful change management, allowing users to experiment, restructure, or reprocess content without fear of losing historical data. It supports controlled workflows, giving users the flexibility to choose which data sources to re-ingest after a rebuild.

FAQ

How do I perform a full rebuild of the wiki?

Use the 'Archive + Rebuild' mode. First, the skill will archive the current state, then it will clear the live wiki while keeping archives and configuration files intact. Afterward, you can manually re-ingest sources such as Claude or Codex histories, documents, and other data.

Can I restore a previous version of my wiki?

Yes. The 'Restore' mode allows you to revert to any existing archive stored in the '_archives/' directory. Each archive contains a full snapshot of the wiki at the time it was created.

Where are wiki archives stored?

Archives are stored in the '_archives/' directory inside your Obsidian vault path. Each archive is timestamped and includes all category directories, project files, and metadata.

Do I need to configure anything before using wiki-rebuild?

Yes. You should resolve the configuration following the Config Resolution Protocol to set paths such as OBSIDIAN_VAULT_PATH and optional QMD settings. Also, review the '.manifest.json' to understand the current wiki state.

Are there any risks when using this skill?

This skill performs destructive operations on the live wiki. Always archive first and confirm actions before proceeding. Only 'Archive Only' mode is non-destructive; other modes clear live content and require careful handling.

Install wiki-rebuild

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill