Logo di Conductor Revert

Conductor Revert

OrganizzazionePopolare
gemini-cli-extensions
conductor-revert

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

Panoramica

Autoregemini-cli-extensions
Repositoryconductor
Nome della skillconductor-revert
Stelle
3.7K
Fork
295
File inclusi
Solo istruzioni
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da gemini-cli-extensions su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Conductor Revert in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/gemini-cli-extensions/conductor/tree/main/skills/conductor-revert
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/gemini-cli-extensions/conductor.git /tmp/conductor
mkdir -p .claude/skills
cp -r /tmp/conductor/skills/conductor-revert .claude/skills/conductor-revert
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Conductor Revert in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Conductor Revert non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Conductor Revert non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

Domande frequenti

Cosa fa la skill IA Conductor Revert?

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

Perché usare Conductor Revert su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Conductor Revert è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Conductor Revert in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/gemini-cli-extensions/conductor/tree/main/skills/conductor-revert. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Conductor Revert?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Conductor Revert?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Conductor Revert: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Conductor Revert è gratuita?

Sì. È pubblicata su GitHub da gemini-cli-extensions con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇