conductor-revert
Conductor Revert
Overview
This skill is a Git-aware assistant. Unlike a standard git revert, it understands the relationship between implementation commits and the Conductor documentation. It ensures that when code is reverted, the corresponding plan.md and tracks.md files are also reset to their previous states.
It is designed to handle common non-linear Git histories, such as rewritten commits (from rebase/squash) and merge commits, with robust "Ghost" commit detection and plan-update commit association.
When to Use
- When a user says "Undo that task," "Revert the last phase," or "I want to delete this track and its changes."
- To cleanly roll back a feature that isn't working as expected.
Workflow
The revert process follows 4 phases:
Phase 1: Interactive Target Selection & Confirmation
Two interaction paths:
- Path A (Direct Confirmation): When the user provides a specific target (e.g., track ID). Confirm the selection and proceed.
- Path B (Guided Selection Menu): When no target is provided. Scan all plans for in-progress items (top 3), or fallback to the 3 most recently completed items. Present a unified hierarchical menu with a max of 4 choices plus an automatically-added "Other" option.
Phase 2: Git Reconciliation & Verification
Map the logical Conductor item to specific Git commit SHAs:
- Implementation Commits - primary SHAs from
plan.md. - Ghost Commits - if a SHA is missing, search for similar commit messages.
- Plan-Update Commits -
conductor(plan):commits after each implementation commit. - Track Creation Commit - only for full Track reverts; supports both new and legacy Track Registry formats.
Phase 3: Final Execution Plan Confirmation
Present a detailed summary of the revert plan including target, commit count, and each commit with its message. Offer Approve/Revise choice.
Phase 4: Execution & Verification
Execute reverts in reverse chronological order, handle conflicts, verify plan state, and announce completion.
Implementation Details
Refer to the following protocols for detailed procedural instructions:
- Resolution Protocol: references/resolution-protocol.md - How to find Conductor artifacts.
- Revert Protocol: references/revert-protocol.md - The logic for mapping Conductor items to Git history and executing reverts.
Mandatory Constraints
- Double Confirmation: Always confirm the target selection AND the final execution plan before running
git revert. - Reverse Order: Reverts MUST be performed in reverse chronological order.
- Plan Sync: The final step MUST be verifying that
plan.mdortracks.mdreflects the reverted state. - Tool Call Validation: Every tool call must be validated for success. If any fails, halt immediately and await instructions.
More from airclear/skills
bmad-tea
Enterprise Test Architecture (TEA) framework for quality engineering. Includes workflows for testing education (TEA Academy), risk-based test design, framework scaffolding, ATDD (Red-phase), CI/CD pipeline configuration, NFR (Non-functional) assessment, and quality auditing (0-100 scoring). Use for establishing or executing comprehensive testing strategies.
14conductor-setup
Scaffolds the project and sets up the Conductor environment for Context-Driven Development. Use when starting a new project or initializing the Conductor workflow in an existing (brownfield) project. This skill guides the user through project discovery, product definition, tech stack configuration, and initial track planning.
14conductor-status
Provides a comprehensive status overview of the Conductor project. Use when the user wants to know the current progress, active tasks, next steps, or overall health of the project tracks and plans.
12conductor-implement
Executes the tasks defined in a specified track's plan. Use when the user wants to start or continue implementing a feature or bug fix. This skill manages the task lifecycle, adheres to the project's workflow, synchronizes project documentation upon completion, and offers track cleanup options.
11conductor-review
Acts as a Principal Software Engineer and Code Review Architect to review completed or in-progress work against project standards, style guides, and the implementation plan. Use when the user wants a quality check on their code or before finalizing a track.
10conductor-newtrack
Initiates a new unit of work (Track) in a Conductor-managed project. Use when the user wants to start a new feature, fix a bug, or perform maintenance. This skill guides the user through interactive specification building and detailed implementation planning.
9