rollback-gate

Enforce rollback checkpoints before multi-file phases and block partial commits on validation failure.

Updated Oct 9, 2025
One-click install
npx skills add https://github.com/Siamese001/Agentic-Workflow --skill rollback-gate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rollback-gate
Source: https://github.com/Siamese001/Agentic-Workflow/tree/main/.windsurf/skills/rollback-gate
Command: npx skills add https://github.com/Siamese001/Agentic-Workflow --skill rollback-gate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill prevents your repository from being left in an unstable or broken state by enforcing strict rollback checkpoints before complex changes and automatically reverting if validation fails.

Core Features & Use Cases

  • Pre-Phase Checkpointing: Records baseline commit, declares rollback command, and defines acceptance criteria before any significant phase of work begins.
  • Automatic Rollback: If post-phase validation fails, the Skill automatically reverts to the recorded baseline, preventing partial or broken commits.
  • Use Case: Before refactoring a core module that touches multiple files, use this Skill to ensure you have a safe rollback point and clear criteria for success, preventing a broken build.

Quick Start

Use the rollback-gate skill to establish a checkpoint before starting a refactor that will modify more than three files.

Frequently Asked Questions about rollback-gate

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

FAQPage Schema
How do I prevent partial commits during a multi-file refactoring phase in git?

To prevent partial commits during multi-file refactoring, you enforce explicit rollback checkpoints that record a baseline commit and block commits if phase validation fails, automatically reverting to maintain code integrity.

What is a git rollback checkpoint and when do I need one for module-spanning changes?

A git rollback checkpoint is a recorded baseline commit combined with declared acceptance criteria. You need one before module-spanning changes or import path migrations to automatically revert and prevent broken repository states if validation fails.

How do I set up a safe rollback point before starting a multi-file refactor?

You set up a safe rollback point by recording the baseline commit, declaring a specific rollback command, and defining acceptance criteria before beginning the multi-file refactor phase to ensure repository integrity.

Can I use automatic git rollback to block broken states during import path migrations?

Yes, you can use automatic git rollback to block broken states during import path migrations by enforcing pre-phase checkpointing, which automatically reverts to the baseline commit if post-phase validation fails.

Does enforcing strict rollback protocols work for multi-file refactors touching more than three files?

Yes, enforcing strict rollback protocols works for multi-file refactors touching more than three files. It requires declaring a baseline commit and validation criteria to automatically revert partial changes if the phase validation fails.