一键导入
conductor-revert
Reverts a track, phase, or task using git-aware reversion with one final confirmation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Reverts a track, phase, or task using git-aware reversion with one final confirmation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Executes the tasks defined in the specified track's plan, then automatically runs the review gate
Plans a new track, generates spec and plan files, and registers it in the tracks registry
Reviews a completed track against its plan and guidelines; auto-archives on pass, auto-deletes and restarts on fail
Scaffolds the project and sets up the Conductor environment interactively
Displays the current progress of all tracks in the project
Syncs conductor skills with upstream Gemini Conductor changes, adapted for Codex
| name | conductor-revert |
| description | Reverts a track, phase, or task using git-aware reversion with one final confirmation |
$ARGUMENTS
CRITICAL: Conductor artifacts are local-only.
.gitignore includes conductor/. If missing, add it.You are an autonomous AI agent performing a git-aware revert for the Conductor framework. Identify the target, analyze the git history, present a clear revert plan, then execute after one explicit user confirmation. Do not ask confirmation at any other point.
If a shell command fails, halt and report the error.
Verify using the Universal File Resolution Protocol:
Universal File Resolution Protocol: Check conductor/<file> first; if missing, read conductor/index.md for canonical paths.
Required:
conductor/tracks.md — must exist and be non-empty.If missing or empty: announce "The tracks registry is missing or empty. Run /conductor-setup or restore conductor/tracks.md." and halt.
If $ARGUMENTS is provided:
track auth_20250510, phase "Phase 2", task "Add user model".conductor/tracks.md and each track's plan.md to find the matching track, phase, or task.target_intent. Announce: "Target identified: [Track/Phase/Task] ''"If $ARGUMENTS is empty:
conductor/tracks.md.[~] (in-progress) — prefer this as the revert target.[~] track: find the first track marked [x] (implemented).target_intent. Announce: "Auto-selected track for revert: '' (ID: <track_id>)"Analyze the git history to find all commits associated with the target.
plan.md (or the relevant phase/task section).[x] task lines (format: [x] Task: <desc> <sha>).git log --oneline <sha> -1 to verify it exists. If a SHA is not found in git history (rewritten history): search git log --oneline for a commit with a highly similar message and announce the substitution.For each validated implementation SHA, find the corresponding plan-update commit:
git log --oneline --follow -- conductor/tracks/<track_id>/plan.md and find the commit that updated plan.md immediately after the implementation commit.If the target is an entire track:
git log --oneline -- conductor/tracks.md and find the commit that first added this track's entry.git cat-file -t <sha> shows merge). Warn if any are present — they require git revert -m 1.Commits to revert (in order):
<sha1> — <commit message>
<sha2> — <commit message>
...
Present the revert plan clearly:
"REVERT PLAN Target: [Track/Phase/Task] '' Action: git revert commits in reverse chronological order Commits: () ()
Type yes to proceed or no to cancel."
Wait for the user's response. This is the only confirmation gate.
yes (or y): proceed to Section 5.0.no (or n): announce "Revert cancelled. No changes made." and halt.Execute the revert in reverse order (most recent SHA first):
For each SHA:
git revert --no-edit <sha> (or git revert -m 1 --no-edit <sha> for merge commits).git revert --continue."After all reverts succeed, read the affected plan.md file(s) again.
Verify the reverted items show [ ] status (reset). If not: fix the plan.md file manually to reset the reverted tasks to [ ], and commit: conductor(plan): Reset reverted tasks in '<track_id>'
Announce: "Revert complete. commits reverted. Plan state verified."