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.

  1. Check the GitHub CLI: gh auth status. Without gh, or signed out, stop and give the gh auth login step; the template is fetched through it.
  2. Confirm the session is inside the devroot to update, a git checkout with AGENTS.md and scripts/, with a clean tree. Uncommitted changes are the user's to commit first; never stash or discard them.
  3. Run the script with --dry-run and show the range it found and the files it will change. A devroot without .devroot-version resolves its base from the initial commit's date; say which commit that chose, and offer --from <sha> if the user knows better.
  4. 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 add and commit with the title the script printed; git reset --hard HEAD abandons the run.
  5. Run npx skills update -y from 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, suggest npx skills update -g when it looks stale.

End with the update commit, the template range it covered, and what the skills update changed.

Installs
14
GitHub Stars
4
First Seen
Oct 27, 2026