feat: add update skill for safe cc10x upgrades#15
Open
IdoGil-boop wants to merge 1 commit intoromiluz13:mainfrom
Open
feat: add update skill for safe cc10x upgrades#15IdoGil-boop wants to merge 1 commit intoromiluz13:mainfrom
IdoGil-boop wants to merge 1 commit intoromiluz13:mainfrom
Conversation
Adds a new skill that automates the cc10x update cycle while preserving local modifications to cached skill files. The workflow: 1. Discovery — reads registry + marketplace, fetches upstream, shows status 2. Stash — diffs cache vs marketplace source (before pull), saves patches 3. Pull & Rebuild — git pull, copies to new cache, updates registry JSON 4. Rebase — dry-run patches, applies clean ones, asks user per conflict 5. Verify — validates cache structure + registry, shows summary Key design decisions: - diff/patch over git stash (cache isn't a git repo) - python3 for JSON mutation (portable, no jq dependency) - AskUserQuestion at 3 gates only (proceed, cleanup, conflicts) - Move-never-delete: old caches go to timestamped backup dir Co-Authored-By: Claude Opus 4.6 <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
Adds a new
updateskill (plugins/cc10x/skills/update/SKILL.md) that automates the cc10x update cycle while preserving local modifications to cached skill files.Problem
Users who customize cached skill files (especially
cc10x-router/SKILL.md) lose their modifications every time the plugin updates, since the update overwrites the cache with fresh files from the marketplace repo.Solution
A 5-phase workflow:
installed_plugins.json+marketplace.json, fetches upstream, displays version status table + changelog previewgit pull), saves unified patches + full backups to a timestamped directorygit pull --ff-only, copies plugin files to new cache directory, updates registry JSON viapython3patch --dry-runeach saved diff; applies clean patches automatically, asks user per conflict viaAskUserQuestionDesign decisions
diff/patchovergit stashpython3for JSON mutationjqdependency (requires Homebrew on macOS)AskUserQuestionat 3 gates onlyrm -rfTriggers
update cc10x,upgrade cc10x,pull cc10x,sync plugin,refresh cc10x,check for updatesTest plan
installed_plugins.jsonis correctly updated after run🤖 Generated with Claude Code