{"id":"f11f2306-444c-43de-b89b-0e838de98b8c","shortId":"dmRYS3","kind":"skill","title":"conductor-revert","tagline":"Git-aware undo by logical work unit (track, phase, or task)","description":"# Revert Track\n\nRevert changes by logical work unit with full git awareness. Supports reverting entire tracks, specific phases, or individual tasks.\n\n## Use this skill when\n\n- Working on revert track tasks or workflows\n- Needing guidance, best practices, or checklists for revert track\n\n## Do not use this skill when\n\n- The task is unrelated to revert track\n- You need a different domain or tool outside this scope\n\n## Instructions\n\n- Clarify goals, constraints, and required inputs.\n- Apply relevant best practices and validate outcomes.\n- Provide actionable steps and verification.\n- If detailed examples are required, open `resources/implementation-playbook.md`.\n\n## Pre-flight Checks\n\n1. Verify Conductor is initialized:\n   - Check `conductor/tracks.md` exists\n   - If missing: Display error and suggest running `/conductor:setup` first\n\n2. Verify git repository:\n   - Run `git status` to confirm git repo\n   - Check for uncommitted changes\n   - If uncommitted changes exist:\n\n     ```\n     WARNING: Uncommitted changes detected\n\n     Files with changes:\n     {list of files}\n\n     Options:\n     1. Stash changes and continue\n     2. Commit changes first\n     3. Cancel revert\n     ```\n\n3. Verify git is clean enough to revert:\n   - No merge in progress\n   - No rebase in progress\n   - If issues found: Halt and explain resolution steps\n\n## Target Selection\n\n### If argument provided:\n\nParse the argument format:\n\n**Full track:** `{trackId}`\n\n- Example: `auth_20250115`\n- Reverts all commits for the entire track\n\n**Specific phase:** `{trackId}:phase{N}`\n\n- Example: `auth_20250115:phase2`\n- Reverts commits for phase N and all subsequent phases\n\n**Specific task:** `{trackId}:task{X.Y}`\n\n- Example: `auth_20250115:task2.3`\n- Reverts commits for task X.Y only\n\n### If no argument:\n\nDisplay guided selection menu:\n\n```\nWhat would you like to revert?\n\nCurrently In Progress:\n1. [~] Task 2.3 in dashboard_20250112 (most recent)\n\nRecently Completed:\n2. [x] Task 2.2 in dashboard_20250112 (1 hour ago)\n3. [x] Phase 1 in dashboard_20250112 (3 hours ago)\n4. [x] Full track: auth_20250115 (yesterday)\n\nOptions:\n5. Enter specific reference (track:phase or track:task)\n6. Cancel\n\nSelect option:\n```\n\n## Commit Discovery\n\n### For Task Revert\n\n1. Search git log for task-specific commits:\n\n   ```bash\n   git log --oneline --grep=\"{trackId}\" --grep=\"Task {X.Y}\" --all-match\n   ```\n\n2. Also find the plan.md update commit:\n\n   ```bash\n   git log --oneline --grep=\"mark task {X.Y} complete\" --grep=\"{trackId}\" --all-match\n   ```\n\n3. Collect all matching commit SHAs\n\n### For Phase Revert\n\n1. Determine task range for the phase by reading plan.md\n2. Search for all task commits in that phase:\n\n   ```bash\n   git log --oneline --grep=\"{trackId}\" | grep -E \"Task {N}\\.[0-9]\"\n   ```\n\n3. Find phase verification commit if exists\n4. Find all plan.md update commits for phase tasks\n5. Collect all matching commit SHAs in chronological order\n\n### For Full Track Revert\n\n1. Find ALL commits mentioning the track:\n\n   ```bash\n   git log --oneline --grep=\"{trackId}\"\n   ```\n\n2. Find track creation commits:\n\n   ```bash\n   git log --oneline -- \"conductor/tracks/{trackId}/\"\n   ```\n\n3. Collect all matching commit SHAs in chronological order\n\n## Execution Plan Display\n\nBefore any revert operations, display full plan:\n\n```\n================================================================================\n                           REVERT EXECUTION PLAN\n================================================================================\n\nTarget: {description of what's being reverted}\n\nCommits to revert (in reverse chronological order):\n  1. abc1234 - feat: add chart rendering (dashboard_20250112)\n  2. def5678 - chore: mark task 2.3 complete (dashboard_20250112)\n  3. ghi9012 - feat: add data hooks (dashboard_20250112)\n  4. jkl3456 - chore: mark task 2.2 complete (dashboard_20250112)\n\nFiles that will be affected:\n  - src/components/Dashboard.tsx (modified)\n  - src/hooks/useData.ts (will be deleted - was created in these commits)\n  - conductor/tracks/dashboard_20250112/plan.md (modified)\n\nPlan updates:\n  - Task 2.2: [x] -> [ ]\n  - Task 2.3: [~] -> [ ]\n\n================================================================================\n                              !! WARNING !!\n================================================================================\n\nThis operation will:\n- Create {N} revert commits\n- Modify {M} files\n- Reset {P} tasks to pending status\n\nThis CANNOT be easily undone without manual intervention.\n\n================================================================================\n\nType 'YES' to proceed, or anything else to cancel:\n```\n\n**CRITICAL: Require explicit 'YES' confirmation. Do not proceed on 'y', 'yes', or enter.**\n\n## Revert Execution\n\nExecute reverts in reverse chronological order (newest first):\n\n```\nExecuting revert plan...\n\n[1/4] Reverting abc1234...\n      git revert --no-edit abc1234\n      ✓ Success\n\n[2/4] Reverting def5678...\n      git revert --no-edit def5678\n      ✓ Success\n\n[3/4] Reverting ghi9012...\n      git revert --no-edit ghi9012\n      ✓ Success\n\n[4/4] Reverting jkl3456...\n      git revert --no-edit jkl3456\n      ✓ Success\n```\n\n### On Merge Conflict\n\nIf any revert produces a merge conflict:\n\n```\n================================================================================\n                           MERGE CONFLICT DETECTED\n================================================================================\n\nConflict occurred while reverting: {sha} - {message}\n\nConflicted files:\n  - src/components/Dashboard.tsx\n\nOptions:\n1. Show conflict details\n2. Abort revert sequence (keeps completed reverts)\n3. Open manual resolution guide\n\nIMPORTANT: Reverts 1-{N} have been completed. You may need to manually\nresolve this conflict before continuing or fully undo the revert sequence.\n\nSelect option:\n```\n\n**HALT immediately on any conflict. Do not attempt automatic resolution.**\n\n## Plan.md Updates\n\nAfter successful git reverts, update plan.md:\n\n1. Read current plan.md\n2. For each reverted task, change marker:\n   - `[x]` -> `[ ]`\n   - `[~]` -> `[ ]`\n3. Write updated plan.md\n4. Update metadata.json:\n   - Decrement `tasks.completed`\n   - Update `status` if needed\n   - Update `updated` timestamp\n\n**Do NOT commit plan.md changes** - they are part of the revert operation\n\n## Track Status Updates\n\n### If reverting entire track:\n\n- In tracks.md: Change `[x]` or `[~]` to `[ ]`\n- Consider offering to delete the track directory entirely\n\n### If reverting to incomplete state:\n\n- In tracks.md: Ensure marked as `[~]` if partially complete, `[ ]` if fully reverted\n\n## Verification\n\nAfter revert completion:\n\n```\n================================================================================\n                           REVERT COMPLETE\n================================================================================\n\nSummary:\n  - Reverted {N} commits\n  - Reset {P} tasks to pending\n  - {M} files affected\n\nGit log now shows:\n  {recent commit history}\n\nPlan.md status:\n  - Task 2.2: [ ] Pending\n  - Task 2.3: [ ] Pending\n\n================================================================================\n\nVerify the revert was successful:\n  1. Run tests: {test command}\n  2. Check application: {relevant check}\n\nIf issues are found, you may need to:\n  - Fix conflicts manually\n  - Re-implement the reverted tasks\n  - Use 'git revert HEAD~{N}..HEAD' to undo the reverts\n\n================================================================================\n```\n\n## Safety Rules\n\n1. **NEVER use `git reset --hard`** - Only use `git revert`\n2. **NEVER use `git push --force`** - Only safe push operations\n3. **NEVER auto-resolve conflicts** - Always halt for human intervention\n4. **ALWAYS show full plan** - User must see exactly what will happen\n5. **REQUIRE explicit 'YES'** - Not 'y', not enter, only 'YES'\n6. **HALT on ANY error** - Do not attempt to continue past failures\n7. **PRESERVE history** - Revert commits are preferred over history rewriting\n\n## Edge Cases\n\n### Track Never Committed\n\n```\nNo commits found for track: {trackId}\n\nThe track exists but has no associated commits. This may mean:\n- Implementation never started\n- Commits used different format\n\nOptions:\n1. Delete track directory only\n2. Cancel\n```\n\n### Commits Already Reverted\n\n```\nSome commits appear to already be reverted:\n  - abc1234 was reverted by xyz9876\n\nOptions:\n1. Skip already-reverted commits\n2. Cancel and investigate\n```\n\n### Remote Already Pushed\n\n```\nWARNING: Some commits have been pushed to remote\n\nCommits on remote:\n  - abc1234 (origin/main)\n  - def5678 (origin/main)\n\nReverting will create new revert commits that you'll need to push.\nThis is the safe approach (no force push required).\n\nContinue with revert? (YES/no):\n```\n\n## Undo the Revert\n\nIf user needs to undo the revert itself:\n\n```\nTo undo this revert operation:\n\n  git revert HEAD~{N}..HEAD\n\nThis will create new commits that restore the reverted changes.\n\nAlternatively, if not yet pushed:\n  git reset --soft HEAD~{N}\n  git checkout -- .\n\n(Use with caution - this discards the revert commits)\n```\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.","tags":["conductor","revert","antigravity","awesome","skills","sickn33","agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows"],"capabilities":["skill","source-sickn33","skill-conductor-revert","topic-agent-skills","topic-agentic-skills","topic-ai-agent-skills","topic-ai-agents","topic-ai-coding","topic-ai-workflows","topic-antigravity","topic-antigravity-skills","topic-claude-code","topic-claude-code-skills","topic-codex-cli","topic-codex-skills"],"categories":["antigravity-awesome-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/sickn33/antigravity-awesome-skills/conductor-revert","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add sickn33/antigravity-awesome-skills","source_repo":"https://github.com/sickn33/antigravity-awesome-skills","install_from":"skills.sh"}},"qualityScore":"0.700","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 34831 github stars · SKILL.md body (9,407 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-24T06:50:56.165Z","embedding":null,"createdAt":"2026-04-18T21:34:57.117Z","updatedAt":"2026-04-24T06:50:56.165Z","lastSeenAt":"2026-04-24T06:50:56.165Z","tsv":"'-9':402 '/conductor':125 '0':401 '1':110,158,265,282,288,321,372,432,492,674,692,733,848,887,992,1015 '1/4':611 '2':128,163,275,342,382,445,500,678,737,853,897,997,1021 '2.2':278,522,547,838 '2.3':267,505,550,841 '2/4':621 '20250112':270,281,291,499,508,516,525 '20250115':208,223,241,300 '3':167,170,285,292,363,403,456,509,685,745,907 '3/4':631 '4':295,410,517,749,918 '4/4':641 '5':303,419,930 '6':312,940 '7':952 'abc1234':493,613,619,1009,1039 'abort':679 'action':95 'add':495,512 'affect':530,827 'ago':284,294 'all-match':339,360 'alreadi':1000,1006,1018,1026 'already-revert':1017 'also':343 'altern':1099 'alway':913,919 'anyth':581 'appear':1004 'appli':87 'applic':855 'approach':1059 'argument':197,201,251 'ask':1152 'associ':979 'attempt':722,947 'auth':207,222,240,299 'auto':910 'auto-resolv':909 'automat':723 'awar':6,27 'bash':330,349,391,439,450 'best':50,89 'boundari':1160 'cancel':168,313,584,998,1022 'cannot':569 'case':963 'caution':1113 'chang':19,142,145,149,153,160,165,742,765,782,1098 'chart':496 'check':109,115,139,854,857 'checklist':53 'checkout':1110 'chore':502,519 'chronolog':426,463,490,604 'clarif':1154 'clarifi':81 'clean':174 'clear':1127 'collect':364,420,457 'command':852 'commit':164,211,226,244,316,329,348,367,387,407,415,423,435,449,460,485,541,558,763,819,833,956,966,968,980,987,999,1003,1020,1030,1036,1048,1093,1118 'complet':274,357,506,523,683,696,806,813,815 'conductor':2,112 'conductor-revert':1 'conductor/tracks':454 'conductor/tracks.md':116 'conductor/tracks/dashboard_20250112/plan.md':542 'confirm':136,589 'conflict':653,660,662,664,670,676,704,719,867,912 'consid':786 'constraint':83 'continu':162,706,949,1064 'creat':538,555,1045,1091 'creation':448 'criteria':1163 'critic':585 'current':262,735 'dashboard':269,280,290,498,507,515,524 'data':513 'decrement':752 'def5678':501,623,629,1041 'delet':536,789,993 'describ':1131 'descript':479 'detail':100,677 'detect':150,663 'determin':373 'differ':73,989 'directori':792,995 'discard':1115 'discoveri':317 'display':120,252,467,472 'domain':74 'e':398 'easili':571 'edg':962 'edit':618,628,638,648 'els':582 'enough':175 'ensur':801 'enter':304,597,937 'entir':30,214,778,793 'environ':1143 'environment-specif':1142 'error':121,944 'exact':926 'exampl':101,206,221,239 'execut':465,476,599,600,608 'exist':117,146,409,975 'expert':1148 'explain':191 'explicit':587,932 'failur':951 'feat':494,511 'file':151,156,526,561,671,826 'find':344,404,411,433,446 'first':127,166,607 'fix':866 'flight':108 'forc':902,1061 'format':202,990 'found':188,861,969 'full':25,203,297,429,473,921 'fulli':708,808 'ghi9012':510,633,639 'git':5,26,130,133,137,172,323,331,350,392,440,451,614,624,634,644,729,828,876,890,895,900,1084,1104,1109 'git-awar':4 'goal':82 'grep':334,336,353,358,395,397,443 'guid':253,689 'guidanc':49 'halt':189,715,914,941 'happen':929 'hard':892 'head':878,880,1086,1088,1107 'histori':834,954,960 'hook':514 'hour':283,293 'human':916 'immedi':716 'implement':871,984 'import':690 'incomplet':797 'individu':35 'initi':114 'input':86,1157 'instruct':80 'intervent':575,917 'investig':1024 'issu':187,859 'jkl3456':518,643,649 'keep':682 'like':259 'limit':1119 'list':154 'll':1051 'log':324,332,351,393,441,452,829 'logic':9,21 'm':560,825 'manual':574,687,701,868 'mark':354,503,520,802 'marker':743 'match':341,362,366,422,459,1128 'may':698,863,982 'mean':983 'mention':436 'menu':255 'merg':179,652,659,661 'messag':669 'metadata.json':751 'miss':119,1165 'modifi':532,543,559 'must':924 'n':220,229,400,556,693,818,879,1087,1108 'need':48,71,699,757,864,1052,1073 'never':888,898,908,965,985 'new':1046,1092 'newest':606 'no-edit':616,626,636,646 'occur':665 'offer':787 'onelin':333,352,394,442,453 'open':104,686 'oper':471,553,772,906,1083 'option':157,302,315,673,714,991,1014 'order':427,464,491,605 'origin/main':1040,1042 'outcom':93 'output':1137 'outsid':77 'p':563,821 'pars':199 'part':768 'partial':805 'past':950 'pend':566,824,839,842 'permiss':1158 'phase':13,33,217,219,228,233,287,308,370,378,390,405,417 'phase2':224 'plan':466,474,477,544,610,922 'plan.md':346,381,413,725,732,736,748,764,835 'practic':51,90 'pre':107 'pre-flight':106 'prefer':958 'preserv':953 'proceed':579,592 'produc':657 'progress':181,185,264 'provid':94,198 'push':901,905,1027,1033,1054,1062,1103 'rang':375 're':870 're-impl':869 'read':380,734 'rebas':183 'recent':272,273,832 'refer':306 'relev':88,856 'remot':1025,1035,1038 'render':497 'repo':138 'repositori':131 'requir':85,103,586,931,1063,1156 'reset':562,820,891,1105 'resolut':192,688,724 'resolv':702,911 'resources/implementation-playbook.md':105 'restor':1095 'revers':489,603 'revert':3,16,18,29,43,55,68,169,177,209,225,243,261,320,371,431,470,475,484,487,557,598,601,609,612,615,622,625,632,635,642,645,656,667,680,684,691,711,730,740,771,777,795,809,812,814,817,845,873,877,884,896,955,1001,1008,1011,1019,1043,1047,1066,1070,1077,1082,1085,1097,1117 'review':1149 'rewrit':961 'rule':886 'run':124,132,849 'safe':904,1058 'safeti':885,1159 'scope':79,1130 'search':322,383 'see':925 'select':195,254,314,713 'sequenc':681,712 'setup':126 'sha':668 'shas':368,424,461 'show':675,831,920 'skill':39,61,1122 'skill-conductor-revert' 'skip':1016 'soft':1106 'source-sickn33' 'specif':32,216,234,305,328,1144 'src/components/dashboard.tsx':531,672 'src/hooks/usedata.ts':533 'start':986 'stash':159 'state':798 'status':134,567,755,774,836 'step':96,193 'stop':1150 'subsequ':232 'substitut':1140 'success':620,630,640,650,728,847,1162 'suggest':123 'summari':816 'support':28 'target':194,478 'task':15,36,45,64,235,237,246,266,277,311,319,327,337,355,374,386,399,418,504,521,546,549,564,741,822,837,840,874,1126 'task-specif':326 'task2.3':242 'tasks.completed':753 'test':850,851,1146 'timestamp':760 'tool':76 'topic-agent-skills' 'topic-agentic-skills' 'topic-ai-agent-skills' 'topic-ai-agents' 'topic-ai-coding' 'topic-ai-workflows' 'topic-antigravity' 'topic-antigravity-skills' 'topic-claude-code' 'topic-claude-code-skills' 'topic-codex-cli' 'topic-codex-skills' 'track':12,17,31,44,56,69,204,215,298,307,310,430,438,447,773,779,791,964,971,974,994 'trackid':205,218,236,335,359,396,444,455,972 'tracks.md':781,800 'treat':1135 'type':576 'uncommit':141,144,148 'undo':7,709,882,1068,1075,1080 'undon':572 'unit':11,23 'unrel':66 'updat':347,414,545,726,731,747,750,754,758,759,775 'use':37,59,875,889,894,899,988,1111,1120 'user':923,1072 'valid':92,1145 'verif':98,406,810 'verifi':111,129,171,843 'warn':147,551,1028 'without':573 'work':10,22,41 'workflow':47 'would':257 'write':746 'x':276,286,296,548,744,783 'x.y':238,247,338,356 'xyz9876':1013 'y':594,935 'yes':577,588,595,933,939 'yes/no':1067 'yesterday':301 'yet':1102","prices":[{"id":"49165003-97af-4b45-8018-24383e2162f5","listingId":"f11f2306-444c-43de-b89b-0e838de98b8c","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"sickn33","category":"antigravity-awesome-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T21:34:57.117Z"}],"sources":[{"listingId":"f11f2306-444c-43de-b89b-0e838de98b8c","source":"github","sourceId":"sickn33/antigravity-awesome-skills/conductor-revert","sourceUrl":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/conductor-revert","isPrimary":false,"firstSeenAt":"2026-04-18T21:34:57.117Z","lastSeenAt":"2026-04-24T06:50:56.165Z"}],"details":{"listingId":"f11f2306-444c-43de-b89b-0e838de98b8c","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"sickn33","slug":"conductor-revert","github":{"repo":"sickn33/antigravity-awesome-skills","stars":34831,"topics":["agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows","antigravity","antigravity-skills","claude-code","claude-code-skills","codex-cli","codex-skills","cursor","cursor-skills","developer-tools","gemini-cli","gemini-skills","kiro","mcp","skill-library"],"license":"mit","html_url":"https://github.com/sickn33/antigravity-awesome-skills","pushed_at":"2026-04-24T06:41:17Z","description":"Installable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.","skill_md_sha":"6db48979b5fe6df2a73e55fe2ab9111148baa0a0","skill_md_path":"skills/conductor-revert/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/conductor-revert"},"layout":"multi","source":"github","category":"antigravity-awesome-skills","frontmatter":{"name":"conductor-revert","description":"Git-aware undo by logical work unit (track, phase, or task)"},"skills_sh_url":"https://skills.sh/sickn33/antigravity-awesome-skills/conductor-revert"},"updatedAt":"2026-04-24T06:50:56.165Z"}}