MR
Mayur Rathi
@mayurrathi
⭐ 5 GitHub stars

Conductor Revert

Git-aware undo by logical work unit (track, phase, or task)

mkdir -p ./skills/conductor-revert && curl -sfL https://raw.githubusercontent.com/mayurrathi/awesome-agent-skills/main/skills/conductor-revert/SKILL.md -o ./skills/conductor-revert/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# Revert Track


Revert changes by logical work unit with full git awareness. Supports reverting entire tracks, specific phases, or individual tasks.


Use this skill when


- Working on revert track tasks or workflows

- Needing guidance, best practices, or checklists for revert track


Do not use this skill when


- The task is unrelated to revert track

- You need a different domain or tool outside this scope


Instructions


- Clarify goals, constraints, and required inputs.

- Apply relevant best practices and validate outcomes.

- Provide actionable steps and verification.

- If detailed examples are required, open `resources/implementation-playbook.md`.


Pre-flight Checks


1. Verify Conductor is initialized:

- Check `conductor/tracks.md` exists

- If missing: Display error and suggest running `/conductor:setup` first


2. Verify git repository:

- Run `git status` to confirm git repo

- Check for uncommitted changes

- If uncommitted changes exist:


```

WARNING: Uncommitted changes detected


Files with changes:

{list of files}


Options:

1. Stash changes and continue

2. Commit changes first

3. Cancel revert

```


3. Verify git is clean enough to revert:

- No merge in progress

- No rebase in progress

- If issues found: Halt and explain resolution steps


Target Selection


If argument provided:


Parse the argument format:


**Full track:** `{trackId}`


- Example: `auth_20250115`

- Reverts all commits for the entire track


**Specific phase:** `{trackId}:phase{N}`


- Example: `auth_20250115:phase2`

- Reverts commits for phase N and all subsequent phases


**Specific task:** `{trackId}:task{X.Y}`


- Example: `auth_20250115:task2.3`

- Reverts commits for task X.Y only


If no argument:


Display guided selection menu:


```

What would you like to revert?


Currently In Progress:

1. [~] Task 2.3 in dashboard_20250112 (most recent)


Recently Completed:

2. [x] Task 2.2 in dashboard_20250112 (1 hour ago)

3. [x] Phase 1 in dashboard_20250112 (3 hours ago)

4. [x] Full track: auth_20250115 (yesterday)


Options:

5. Enter specific reference (track:phase or track:task)

6. Cancel


Select option:

```


Commit Discovery


For Task Revert


1. Search git log for task-specific commits:


```bash

git log --oneline --grep="{trackId}" --grep="Task {X.Y}" --all-match

```


2. Also find the plan.md update commit:


```bash

git log --oneline --grep="mark task {X.Y} complete" --grep="{trackId}" --all-match

```


3. Collect all matching commit SHAs


For Phase Revert


1. Determine task range for the phase by reading plan.md

2. Search for all task commits in that phase:


```bash

git log --oneline --grep="{trackId}" | grep -E "Task {N}\.[0-9]"

```


3. Find phase verification commit if exists

4. Find all plan.md update commits for phase tasks

5. Collect all matching commit SHAs in chronological order


For Full Track Revert


1. Find ALL commits mentioning the track:


```bash

git log --oneline --grep="{trackId}"

```


2. Find track creation commits:


```bash

git log --oneline -- "conductor/tracks/{trackId}/"

```


3. Collect all matching commit SHAs in chronological order


Execution Plan Display


Before any revert operations, display full plan:


```

================================================================================

REVERT EXECUTION PLAN

================================================================================


Target: {description of what's being reverted}


Commits to revert (in reverse chronological order):

1. abc1234 - feat: add chart rendering (dashboard_20250112)

2. def5678 - chore: mark task 2.3 complete (dashboard_20250112)

3. ghi9012 - feat: add data hooks (dashboard_20250112)

4. jkl3456 - chore: mark task 2.2 complete (dashboard_20250112)


Files that will be affected:

- src/components/Dashboard.tsx (modified)

- src/hooks/useData.ts (will be deleted - was created in thes

🎯 Best For

  • Claude users
  • Software engineers
  • Development teams
  • Tech leads

💡 Use Cases

  • Code quality improvement
  • Best practice enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Conductor Revert to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Is Conductor Revert compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Conductor Revert?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Conductor Revert?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/conductor-revert/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills