wiki-rollback

Rolls back a wiki entry to its verified ancestor by walking the revises chain.

Updated May 14, 2026
One-click install
npx skills add https://github.com/dadlabs-io/llm-wiki-bootstrap --skill wiki-rollback-dadlabs-io
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: wiki-rollback
Source: https://github.com/dadlabs-io/llm-wiki-bootstrap/tree/main/bootstrap/skills/wiki-rollback
Command: npx skills add https://github.com/dadlabs-io/llm-wiki-bootstrap --skill wiki-rollback-dadlabs-io

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When a wiki entry turns out to be wrong, you need a safe way to restore the last trusted state without deleting content or corrupting the revision lineage. This Skill reverts an entry to its verified ancestor while keeping a full audit trail. ## Core Features & Use Cases - Non-destructive rollback: Walks the revises: chain backward to the first verified: verified ancestor, marks intermediates as verified: rolled_back in their sidecars, and never mutates frontmatter or deletes content. - Audit entry generation: Writes a new type: rollback entry documenting what was rolled back and why, with a mandatory --reason justification. - Safety guards: Refuses to run when no verified ancestor exists, supports --dry-run previews, and offers --cluster-walk to flag sibling entries for human review. - Use Case: You discover a wiki entry about a framework decision contains incorrect information. Run the rollback with a reason, and the Skill restores the verified ancestor, marks the bad revisions as rolled back, re-indexes the wiki, and commits the change. ## Quick Start Ask the AI to roll back the wiki entry with slug foo-2026 to its last verified version, giving the reason that the entry contains incorrect information.

Frequently Asked Questions about wiki-rollback

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

FAQPage Schema
How do I roll back a wiki entry to a previous version?▼

Run the rollback with the entry's slug or path plus a required --reason flag. The script walks the revises chain to the first verified ancestor, marks intermediates as rolled_back in their sidecars, and writes a new type: rollback audit entry.

Does rolling back a wiki entry delete the old content?▼

No, rollback is non-destructive. Rolled-back entries stay on disk with untouched frontmatter; only their sidecar verified status flips to rolled_back. They remain searchable with the --include-rolled-back flag.

Why does wiki rollback fail with exit code 1?▼

Exit 1 means the revises chain has no verified ancestor, so rollback is refused rather than guessing where to stop. Verify an ancestor first with the wiki-verify skill, then re-run the rollback.

Can I preview a wiki rollback before applying it?▼

Yes, pass the --dry-run flag to preview the chain walk without writing anything. You can also use --cluster-walk to list sibling entries in affected folders for human review, though it never rolls them back automatically.

What happens after a successful wiki rollback?▼

The skill runs the backlink, index, and map scripts so the new rollback entry is cross-linked, then creates one commit per rollback. The commit message records the target, restored ancestor, reason, and count of marked entries.