update-devroot
Installation
SKILL.md
Update devroot
A devroot made by install.sh is a copy of devroot-template-latest/ in huntie/setup-devroot at one commit, recorded in .devroot-version. This skill brings the template files up to that directory's latest commit as one commit titled Update devroot to <sha>, merging the template's changes three-way with the user's own edits so those survive. The mechanics live in this skill's scripts/update-devroot; read its --help first.
- Check the GitHub CLI:
gh auth status. Withoutgh, or signed out, stop and give thegh auth loginstep; the template is fetched through it. - Confirm the session is inside the devroot to update, a git checkout with
AGENTS.mdandscripts/, with a clean tree. Uncommitted changes are the user's to commit first; never stash or discard them. - Run the script with
--dry-runand show the range it found and the files it will change. A devroot without.devroot-versionresolves its base from the initial commit's date; say which commit that chose, and offer--from <sha>if the user knows better. - Run it for real. On exit 0, it has committed. On exit 3, list the conflicted files it named, resolve each with the user, keeping their intent where the template and their edit overlap, then
git addand commit with the title the script printed;git reset --hard HEADabandons the run. - Run
npx skills update -yfrom the devroot root, so the skills installed in the workspace move too, this one included, and report what changed. Where this skill is installed globally instead, suggestnpx skills update -gwhen it looks stale.
End with the update commit, the template range it covered, and what the skills update changed.