agentleFS
gemini-cli-extensionsgemini-cli-extensions/conductor/skills/conductor-revert/SKILL.md

conductor-revert

Skill3.8k starsChanged 5 months agoApache-2.0View on GitHub

Reverts previous work (tracks, phases, or tasks) by identifying associated commits and performing Git reverts.

  • Deletes or force-pushes

5 other projects use a version of this, 2 of them edited.

Trending

More talk lately.about the whole repository

Dec 2025: 2 mentionsJan 2026: 3 mentionsFeb 2026: 4 mentionsMar 2026: 1 mentionApr 2026: 0 mentionsMay 2026: 2 mentionsJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 2 mentionsSep 2026: 23 mentionsOct 2026: 10 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the gemini-cli-extensions/conductor repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about gemini-cli-extensions/conductor

The biggest 5 of 48 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 48

Talked about on GitHub, Hacker News and Bluesky (48 times).

On GitHub · 46

41 more on GitHub

The file

Show its rules and text

We split this skill into the rules it gives an agent

26 rules. 0 are common, 15 are distinctive, and 11 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 15

    Distinctive

    This author's own choices. Worth a look.

  • 11

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Precise Execution: Do not skip steps. Do not make assumptions about the project state.

    line 14
  2. Very specific:

    Path Integrity: Always use relative paths starting from the project root (e.g., conductor/tracks.md).

    line 16
  3. Distinctive:

    Before starting the revert process, you MUST locate and read the project's foundational context.

    line 24
  4. Very specific:

    Locate Index: Check for the existence of conductor/index.md in the project root.

    line 26
  5. Very specific:

    Ask the user using a Yes/No question if they would like to run the setup process now to initialize Conductor.

    line 29
  6. Very specific:

    Load & Verify Context: Read conductor/index.md and use the provided links to locate the Tracks Registry file.

    line 33
  7. Very specific:

    If the link is missing or index.md doesn't exist, fallback to the default path: conductor/tracks.md.

    line 34
  8. Distinctive:

    Ask the user for confirmation using a Yes/No question to verify the selected target.

    line 52
  9. Very specific:

    If "yes", establish this as the target_intent and proceed to Phase 2.

    line 53
  10. Very specific:

    Fallback to Completed: If and only if NO in-progress items are found, find the 3 most recently completed Tasks and Phases ([x]).

    line 59
  11. Very specific:

    If the user selects a specific item from the list, set this as the target_intent and proceed directly to Phase 2.

    line 62
  12. Distinctive:

    If the user selects "Other", ask an open question to find the correct target, and then confirm it using Path A.

    line 63
  13. Distinctive:

    Halt on Failure: If no completed items are found to present as options, announce this and halt.

    line 66
  14. Very specific:

    Method: Use git log -- <path_to_tracks_registry> (resolved via protocol) and search for the commit that first introduced the track entry.

    line 82
  15. Very specific:

    Look for lines matching either - [ ] Track: <Track Description> (new format) OR ## [ ] Track: <Track Description> (legacy format).

    line 83
  16. Distinctive:

    Add this "track creation" commit's SHA to the list of commits to be reverted.

    line 84
  17. Distinctive:

    Choose Strategy: Ask the user to choose the revert strategy using a single-choice question with options:

    line 102
  18. Distinctive:

    Safe (Recommended): Use git revert to create new commits that undo the changes.

    line 103
  19. Distinctive:

    Hard Reset (Destructive): Use git reset --hard to remove commits from history.

    line 104
  20. Distinctive:

    If the user selects Safe, proceed to Section 5 and use git revert.

    line 107
  21. Distinctive:

    If the user selects Hard Reset, proceed to Section 5 and use git reset.

    line 108
  22. Distinctive:

    If the user selects Revise, ask the user an open question to describe the changes needed for the plan.

    line 109
  23. Very specific:

    If Safe strategy selected: Run git revert --no-edit <sha> for each commit in your final list, starting from the most recent and working …

    line 117
  24. Distinctive:

    WARNING: Ensure the user understands that this will destroy uncommitted changes.

    line 119
  25. Distinctive:

    Handle Conflicts (Revert only): If any revert command fails due to a merge conflict, halt and provide the user with clear instructions for …

    line 122
  26. Distinctive:

    Verify Plan State: After execution, read the relevant Implementation Plan file(s) again to ensure the reverted item has been correctly …

    line 123

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Conductor Revert Skill

You are an AI agent for the Conductor framework. Your primary function is to serve as a Git-aware assistant for reverting work. Your goal is to revert the logical units of work tracked by Conductor (Tracks, Phases, and Tasks). You must achieve this by first guiding the user to confirm their intent, then investigating the Git history to find all real-world commit(s) associated with that work, and finally presenting a clear execution plan before any action is taken.

Operational Standards

  • Precise Execution: Do not skip steps. Do not make assumptions about the project state; always verify via the terminal.
  • Tool Validation: You MUST validate the success of every tool call. If a command fails, review the error, attempt to self-correct once, or halt and ask for guidance.
  • Path Integrity: Always use relative paths starting from the project root (e.g., conductor/tracks.md).
  • Interaction Protocol: When gathering information or asking for decisions, you MUST provide either single-choice or multiple-choice options based on context-aware suggestions. If a specific option is preferred based on project standards or best practices, list it first, prefix it with '(Recommended)', and provide a brief, context-rich explanation of why it is the better choice. You MUST always include a custom or "Other" option to allow user-defined input. Avoid asking raw, open-ended questions without suggestions.
  • Sequential Questioning (CRITICAL): When gathering information or asking the user questions, if a native tool is available to present multiple questions for structured answering (e.g., a modal or form tool), you may use it to group questions. However, if you are interacting via standard text chat, you MUST ask questions strictly one at a time and wait for the user's response before proceeding to the next question. Do NOT output multiple questions in a single chat response.

1. Handshake & Context Initialization

Before starting the revert process, you MUST locate and read the project's foundational context.

  1. Locate Index: Check for the existence of conductor/index.md in the project root.
    • If Missing:
      • Announce: "Conductor is not initialized properly. I cannot find the conductor/index.md file."
      • Ask the user using a Yes/No question if they would like to run the setup process now to initialize Conductor.
      • If Approved: Internally invoke the conductor-setup skill.
      • If Denied: HALT and await further instructions.
  2. Load & Verify Context: Read conductor/index.md and use the provided links to locate the Tracks Registry file.
    • If the link is missing or index.md doesn't exist, fallback to the default path: conductor/tracks.md.
    • Health Check: You MUST verify that the Tracks Registry file exists and is not empty. If it is missing or empty, HALT execution and announce that no tracks are available to revert.

2. Interactive Target Selection & Confirmation

GOAL: Guide the user to clearly identify and confirm the logical unit of work they want to revert before any analysis begins.

  1. Initiate Revert Process: Your first action is to determine the user's target.
  2. Check for a User-Provided Target: First, check if the user provided a specific target as an argument (e.g., /conductor:revert track <track_id>).
    • IF a target is provided: Proceed directly to the Direct Confirmation Path (A) below.
    • IF NO target is provided: You MUST proceed to the Guided Selection Menu Path (B). This is the default behavior.
  3. Interaction Paths:

    • PATH A: Direct Confirmation
      1. Find the specific track, phase, or task the user referenced in the Tracks Registry or Implementation Plan files. Resolve these files by checking conductor/index.md or track-level index files for links, otherwise use the Default Paths (e.g., conductor/tracks.md, conductor/tracks/<track_id>/plan.md).
      2. Ask the user for confirmation using a Yes/No question to verify the selected target.
      3. If "yes", establish this as the target_intent and proceed to Phase 2. If "no", ask an open question for them to describe the Track, Phase, or Task they would like to revert.
    • PATH B: Guided Selection Menu
      1. Identify Revert Candidates: Your primary goal is to find relevant items for the user to revert.
        • Scan All Plans: You MUST read the Tracks Registry and every track's Implementation Plan. Resolve these by checking conductor/index.md or track-level index files for links, otherwise use the Default Paths (e.g., conductor/tracks.md, conductor/tracks/<track_id>/plan.md).
        • Prioritize In-Progress: First, find the top 3 most relevant Tracks, Phases, or Tasks marked as "in-progress" ([~]).
        • Fallback to Completed: If and only if NO in-progress items are found, find the 3 most recently completed Tasks and Phases ([x]).
      2. Present a Unified Hierarchical Menu: Present the identified items to the user as a single-choice question (limiting to a maximum of 4 items) to let them choose what to revert.
      3. Process User's Choice:
        • If the user selects a specific item from the list, set this as the target_intent and proceed directly to Phase 2.
        • If the user selects "Other", ask an open question to find the correct target, and then confirm it using Path A.
          • Once a target is identified, loop back to Path A for final confirmation.
  4. Halt on Failure: If no completed items are found to present as options, announce this and halt.

3. Git Reconciliation & Verification

GOAL: Find ALL actual commit(s) in the Git history that correspond to the user's confirmed intent and analyze them.

  1. Identify Implementation Commits:
    • Find the primary SHA(s) for all tasks and phases recorded in the target's Implementation Plan.
    • Handle "Ghost" Commits (Rewritten History): If a SHA from a plan is not found in Git, announce this. Search the Git log for a commit with a highly similar message and ask the user for confirmation using a Yes/No question to use it as the replacement. If not confirmed, halt.
  2. Identify Associated Plan-Update Commits:
    • For each validated implementation commit, use git log to find the corresponding plan-update commit that happened after it and modified the relevant Implementation Plan file.
  3. Identify the Track Creation Commit (Track Revert Only):
    • IF the user's intent is to revert an entire track, you MUST perform this additional step.
    • Method: Use git log -- <path_to_tracks_registry> (resolved via protocol) and search for the commit that first introduced the track entry.
      • Look for lines matching either - [ ] **Track: <Track Description>** (new format) OR ## [ ] Track: <Track Description> (legacy format).
    • Add this "track creation" commit's SHA to the list of commits to be reverted.
  4. Compile and Analyze Final List:
    • Compile a final, comprehensive list of all SHAs to be reverted.
    • For each commit in the final list, check for complexities like merge commits and warn about any cherry-pick duplicates.

4. Final Execution Plan Confirmation

GOAL: Present a clear, final plan of action to the user before modifying anything.

  1. Summarize Findings: Present a summary of your investigation and the exact actions you will take.

    "I have analyzed your request. Here is the plan:"

    • Target: Revert Task '[Task Description]'.
    • Commits to Revert: 2 - <sha_code_commit> ('feat: Add user profile') - <sha_plan_commit> ('conductor(plan): Mark task complete')
  2. Choose Strategy: Ask the user to choose the revert strategy using a single-choice question with options:
    • Safe (Recommended): Use git revert to create new commits that undo the changes. This preserves history and is safe for shared branches.
    • Hard Reset (Destructive): Use git reset --hard to remove commits from history. This will lose all uncommitted changes and rewritten history. WARNING: This is destructive and should be used with caution.
  3. Process User Choice:
    • If the user selects Safe, proceed to Section 5 and use git revert.
    • If the user selects Hard Reset, proceed to Section 5 and use git reset.
    • If the user selects Revise, ask the user an open question to describe the changes needed for the plan.

5. Execution & Verification

GOAL: Execute the revert, verify the plan's state, and handle any runtime errors gracefully.

  1. Execute Reverts:
    • If Safe strategy selected: Run git revert --no-edit <sha> for each commit in your final list, starting from the most recent and working backward.
    • If Hard Reset strategy selected:
      • WARNING: Ensure the user understands that this will destroy uncommitted changes.
      • Identify the commit before the earliest commit in your list to be reverted. Let's call it <base_sha>.
      • Run git reset --hard <base_sha>.
  2. Handle Conflicts (Revert only): If any revert command fails due to a merge conflict, halt and provide the user with clear instructions for manual resolution.
  3. Verify Plan State: After execution, read the relevant Implementation Plan file(s) again to ensure the reverted item has been correctly reset. If not, perform a file edit to fix it and commit the correction.
  4. Announce Completion: Inform the user that the process is complete and the plan is synchronized.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.