How this skill is triggered — by the user, by Claude, or both
Slash command
/git-tools:refresh-forkThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Refresh fork to match upstream, preparing for new contributions.
Refresh fork to match upstream, preparing for new contributions.
Check upstream exists
git remote get-url upstream
If fails: stop with error "No upstream remote configured. This doesn't look like a fork."
Determine default branch
git remote show upstream | grep 'HEAD branch' | awk '{print $NF}'
Fallback: try main, then master
Discard local state
git checkout <default-branch>
git reset --hard
git clean --force -d
Sync with upstream
git fetch upstream
git reset --hard upstream/<default-branch>
Push to origin
git push origin <default-branch> --force
Confirm
Report: synced to which commit (short sha + message), now on <default-branch>
npx claudepluginhub lexfrei/ccc --plugin git-toolsGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.