Repository navigation
feat(iss-63): ./sync.sh uninstall [--dry-run] - #66
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…older Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rename to a free .devflow-gone sibling before deleting, delete the marker last, and rename back on a partial failure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New command
./sync.sh uninstall [--dry-run]: removes every managed skill from every provider's skills folder and the devflow section from every provider's instructions file. It reads onlymanifest.json: no vendor clones, no network.It keeps the git ignore lines,
devflow.local.json,vendor/, and each project's.devflow/and.worktrees/. The README gains a Commands line and an Uninstall note: dry run, uninstall, then delete the clone. "Uninstall, then./sync.sh" is the documented clean reinstall. The glossary defines Managed skill.The final review found that a removal failing partway could delete the marker and leave the folder behind. A rerun of uninstall then reported "nothing to remove", and a sync skipped that skill as unmanaged. The fix changes the removal step that
remove_managedshares withpruneandcleanup:Evidence
./sync.sh uninstallprinted the usage. Removing devflow meant deleting skills and sections by hand.After: 32 new tests in SyncSandbox (25 for the command, 7 for the README) cover install
claude,codexthen uninstall, the dry run snapshot (nothing changes), the second run ("nothing to remove", exit 0), unmanaged and symlinked folders and user text around the markers surviving, incomplete markers (SKIP plus closing count), shared folders and files, a marked skill no longer in the manifest, novendor/, FAIL with exit 1, and bad arguments.uninstall(FAIL), restore permissions, thenuninstallprinted "nothing to remove", and./sync.shprintedSKIP (exists, not managed by devflow) tdd.After: markers survive the failed run, the rerun removes everything, and a sync reinstalls with no SKIP. 7 tests in
tests/test_uninstall_failures.py; the three read-only cases fail on the old code.Merge Danger
Door: two-way
The command is additive and only runs when called by name. The one change to existing behaviour, the safer
remove_managed, prints the same output.Blast Radius: sync
pruneandcleanup(deselecting providers, dropped skills) now go through the rename-then-delete path. Their output is unchanged, and the full sync suite passes.Tickets
Final review fix: 40ebcbd.
Follow-ups
Minor findings, none blocking:
~/.gemini/GEMINI.mdthe sync created, is left as an empty file.remove_instructions, or an unreadable skills folder, ends in a traceback. The sync has the same gap.remove_instructions' printed lines (removed / would remove / SKIP), so rewording those lines would break the counts.uninstall_notesandsync_git_ignore;seendict mixes path and(dev, ino)keys;_writeand_readtest helpers are redefined per module.<k> folder(s) could not be removedclosing line, and "if you added it" in the Cursor reminder.Closes #63
Closes #64
Closes #65
Closes #47
🤖 Generated with Claude Code