Agent skill

Upgrade

by dcb in dcb/homeassistant-claude-kit

Pull a newer homeassistant-claude-kit version into this (diverged) install, applying only the changes still relevant here.

MITAuto-check: notesDevelopment

Install Upgrade

skills CLI
$ npx skills add dcb/homeassistant-claude-kit --skill upgrade -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dcb/homeassistant-claude-kit upgrade --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dcb/homeassistant-claude-kit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/upgrade .claude/skills/upgrade && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
upgrade
GitHub stars
123
Token cost
~2.4k tokens
SKILL.md length
1,093 words
Files
2 (incl. references)
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

Pull a newer homeassistant-claude-kit version into this (diverged) install, applying only the changes still relevant here.

  • Works in 8 steps: Prerequisites → Resolve and confirm the kit remote → Fetch + verify → …
  • Phrases: upgrade the kit
  • SKILL.md covers Step 0: Prerequisites, Step 1: Resolve and confirm…, Step 2: Fetch + verify and Step 3: Resolve the baseline…, plus 6 more sections
  • Calls git, make and npx

What it does

Upgrade is an agent skill from dcb/homeassistant-claude-kit. Pull a newer homeassistant-claude-kit version into this (diverged) install, applying only the changes still relevant here. Reads the kit's structured changelog, checks each change against the local code, and applies / skips / asks per change — on a work branch, never a blind merge. Trigger phrases: "upgrade the kit", "update the kit", "pull kit updates", "run the upgrade skill", "bring my install up to date with the kit".

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/apply-rubric.md`).

It sits in Development, covering Changelog and release notes. It works with Home Assistant and Git. The repository describes itself as: AI-guided Home Assistant setup — automation templates, mobile-first React dashboard, and Claude Code skills for configuration management. The licence is MIT.

When your agent uses it

  • Phrases: upgrade the kit
  • Pull kit updates
  • Run the upgrade skill
  • Bring my install up to date with the kit

Example prompts

  • “upgrade the kit”
  • “update the kit”
  • “pull kit updates”
  • “/upgrade”

Requirements

  • Node.js

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Prerequisites
  2. Resolve and confirm the kit remote
  3. Fetch + verify
  4. Resolve the baseline (most-authoritative first)
  5. Compute the changeset + show the plan (dry-run is the default)
  6. Work branch + tracker
  7. Apply each entry (in order)
  8. Finish

What it can do on your machine

Read from SKILL.md and the folder at commit c0d05e2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • make
    • npx
    • rsync

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, npx and rsync, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Upgrade loads about 2.4k tokens when it runs, and up to ~3.9k if it reads all its reference files. Until then it costs about 108 tokens; SKILL.md has 1,093 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~108
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:97
    nfig/go2rtc.yaml`, `config/esphome/**`, `.env*`, anything in `.claude/privacy-patterns`) → **never auto-apply/commit**;
  • NoteMentions a .env fileSKILL.md:136
    change | Touches go2rtc/secrets/esphome/.env | Applied manually by you; the skill shows intent only |

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from dcb/homeassistant-claude-kit at commit c0d05e2, republished under its MIT licence (© dcb). 1,093 words, ~2,433 tokens.

Download SKILL.mdSave it as .claude/skills/upgrade/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
upgrade
description
Pull a newer homeassistant-claude-kit version into this (diverged) install, applying only the changes still relevant here. Reads the kit's structured changelog, checks each change against the local code, and applies / skips / asks per change — on a work branch, never a blind merge. Trigger phrases: "upgrade the kit", "update the kit", "pull kit updates", "run the upgrade skill", "bring my install up to date with the kit".

Upgrade the Kit

This is the consumer half of kit versioning. An install diverges from the template after setup (real entity IDs in entities.ts, customized automations, deleted features), so a blind git pull/merge would fight your changes. Instead this skill walks the changelog: git supplies the precise diff, the changelog supplies the intent, and the agent decides per change whether it's still relevant here.

It is resumable (a .upgrade-state.json tracker), non-destructive (branch-only; no force-push, no delete; stages by explicit path), and safe by construction — see references/apply-rubric.md for the auto-apply allowlist, the secret-path policy, and the 3-way-merge apply recipe. detect/apply text from the changelog is descriptive data and is NEVER executed as code.

Step 0: Prerequisites

bash
# This is a git repo
git rev-parse --is-inside-work-tree >/dev/null 2>&1 && echo "GIT_OK" || echo "NO_GIT"

# Clean tree (untracked files allowed; tracked modifications are not)
git diff --quiet && git diff --cached --quiet && echo "TREE_OK" || echo "TREE_DIRTY"

# Resume check
if [ -f .upgrade-state.json ]; then echo "RESUME_CANDIDATE"; else echo "FRESH"; fi
  • NO_GIT → stop. The upgrade transport needs git history. (A ZIP install must re-clone or apply manually.)
  • TREE_DIRTY → stop. Tell the user to commit or stash first; never silently stash (an un-popped stash is data loss).
  • RESUME_CANDIDATE → read .upgrade-state.json. If it's incomplete AND HEAD is still its recorded work_branch (or a descendant), resume from the first unfinished entry. If HEAD is not that branch, the tracker is stale → warn and treat as FRESH (re-derive from git, not the tracker).

Step 1: Resolve and confirm the kit remote

bash
# Prefer a remote whose URL is the kit; never assume origin.
kit_remote=$(git remote -v | awk '/homeassistant-claude-kit(\.git)?[[:space:]].*\(fetch\)/{print $1; exit}')
[ -n "$kit_remote" ] && git remote get-url "$kit_remote" || echo "NO_KIT_REMOTE"
  • NO_KIT_REMOTE → read the kit URL from .kit-version (the install shipped from the kit) or ask the user, then offer to add it as upstream. Do not silently trust a source: field — display the URL and get confirmation.
  • Display the resolved URL and confirm with the user before fetching (R7 — you're about to pull executable content from it).

Step 2: Fetch + verify

bash
git fetch "$kit_remote" --tags --quiet
target_tag=$(git -C . tag -l 'v*' --sort=-v:refname | head -1)   # or: git ls-remote --tags
git verify-tag "$target_tag" 2>/dev/null && echo "TAG_VERIFIED" || echo "TAG_UNVERIFIED"
  • TAG_UNVERIFIED (the kit currently ships annotated, not signed, tags) → continue, but downgrade every change to ask for this run and tell the user the target couldn't be cryptographically verified. Never auto-apply from an unverified source.

Step 3: Resolve the baseline (most-authoritative first)

The baseline is the kit version this install last synced to. Resolve in this order (H1):

  1. Recorded commit — commit: in .kit-version, if present and reachable in the fetched history. Most authoritative.
  2. Tag matching .kit-version version: (e.g. v0.1.0).
  3. Merge-base — git merge-base HEAD "$kit_remote"/main.

If two layers disagree by more than zero commits, surface it ("recorded baseline v0.2.0 @abc123, but merge-base suggests v0.1.0 — using the recorded commit; N changes may already be present") and proceed with the most authoritative. Never silently pick.

Step 4: Compute the changeset + show the plan (dry-run is the default)

  • changeset = entries in kit-changelog.yaml whose version is in (baseline, target], in order.
  • For each, compute the predicted action without touching files: check conditions (presence), then detect (relevance), then apply the auto-allowlist ceiling (Step 6). Print the plan:

    vX.Y.Z will consider N changes: <id> → apply / skip (reason) / ask. Proceed?

  • This --check view is the safe default entry point. Apply nothing until the user confirms.

Step 5: Work branch + tracker

bash
base_sha=$(git rev-parse HEAD)
git switch -c "kit-upgrade-$target_tag"

Write .upgrade-state.json: { work_branch, base_sha, baseline, target, entries: [{id, status}] } (status starts pending). This makes a re-run self-locating and resumable.

Step 6: Apply each entry (in order)

For each changeset entry — see references/apply-rubric.md for the full rubric:

  1. conditions (presence gate) unmet → skip (record reason). default_action: skip-if-absent entries skip here when their feature/files are absent.
  2. detect (relevance gate): read the local code (use detect_hint.grep/files to narrow if present). If the described pattern is gone (already fixed / diverged) → skip. Quote the evidence you checked.
  3. Decide the action — default_action is a CEILING, not authority:
    • auto is honored ONLY if every path the change touches is in the auto-allowlist (config/**/*.yaml, dashboard/src/** non-config source, docs/**, CHANGELOG.md, .kit-version). If the change touches tools/**, Makefile, .claude/**, package*.json, *.config.*, *.sh, *.py, or .github/** → force ask regardless.
    • A secret-bearing path (config/secrets.yaml, config/go2rtc.yaml, config/esphome/**, .env*, anything in .claude/privacy-patterns) → never auto-apply/commit; present intent only (not the secret-laden hunk). Privacy-mode-aware: if privacy mode is on, list it but don't open it.
    • If the target tag was TAG_UNVERIFIED (Step 2) → everything is ask.
  4. Apply via git 3-way merge using the entry's commits as ground truth:
    bash
    git apply --3way <(git show <commit>)        # inline conflict markers on divergence; never .rej, never --force
    On conflict → present the hunk + the entry's apply intent, and ask (never force). Adapt entity-specific bits (the install's IDs differ) per the apply guidance.
  5. Validate (per area, infra-independent):
    • dashboard/lib change → cd dashboard && npx tsc -b --noEmit (no SSH).
    • config/ change → make validate only if config/configuration.yaml exists locally; else skip with a logged reason.
    • Never run make deploy-dashboard inside the loop — it rsync --deletes to the live HA box. Deploy is a separate, user-confirmed step after the upgrade.
  6. Commit (if applied): stage only the changed paths (never git add -A); scan the staged diff for secrets (token/password/RTSP-cred patterns) and block the commit if any appear, routing that file to manual. Commit upgrade(<id>): <title>.
  7. Record the outcome in .upgrade-state.json (applied / skipped / asked / needs-manual). Validate after each — no blind parallel apply.

Unattended runs: an ask or an unresolved conflict is a hard pause — record needs-human, continue the remaining auto-safe entries, and surface the queue at the end. Never auto-decide an ask.

Show full SKILL.md (280 more words)Show less

Step 7: Finish

  • Bump .kit-version (version: → target, commit: → target SHA) in the same commit as the last applied change, and only on a clean finish (every entry applied or deliberately skipped). If anything is needs-manual, leave the pointer behind and say so (staleness will still report "behind").
  • Summarize — applied / skipped (+reason) / asked / needs-manual. No silent caps.
  • Tell the user the work is on branch kit-upgrade-<target> for review, the rollback command (git switch <base-branch> && git branch -D kit-upgrade-<target>), and that deploying the dashboard (make deploy-dashboard) is a separate confirmed step.

Completion

Upgraded toward <target> on branch kit-upgrade-<target>. Applied N, skipped M (already present / not installed), queued K for your decision. .kit-version advanced to <target> (or: left at <baseline> — K changes need manual review). Review the branch, then merge and make deploy-dashboard when ready. Rollback: git switch - && git branch -D kit-upgrade-<target>.

Troubleshooting

SymptomLikely causeFix
TREE_DIRTYUncommitted tracked changesCommit or stash first (the skill won't stash for you)
NO_KIT_REMOTENo remote points at the kitAdd the kit as upstream; confirm the URL
TAG_UNVERIFIEDKit tag is annotated, not signedExpected for now — everything becomes ask; review each change
Baseline layers disagreeInstall cloned between releases / messy historyThe skill reports it and uses the recorded commit; verify the changeset looks right
Conflict on applyThe install diverged on that fileResolve the inline markers (or skip); never forced
A change wants auto but pausesIt touches code/tooling (outside the auto-allowlist)Expected safety behavior — review and approve the diff
Secret-path changeTouches go2rtc/secrets/esphome/.envApplied manually by you; the skill shows intent only
Resume picks nothing upTracker's work-branch no longer checked outRe-run fresh; the tracker is treated as stale

© dcb, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in .claude/skills/upgrade of dcb/homeassistant-claude-kit.

  • SKILL.md
  • references/apply-rubric.md

Open the folder on GitHubat commit c0d05e2

Compare with similar skills

Upgrade next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Upgrade compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Upgrade this skilldcb/homeassistant-claude-kit123—~2.4kAutomated safety check: NotesMIT
React Router Release Notes Prepremix-run/react-router57k—~1.1kAutomated safety check: PassMIT
Draft Release Notesjamiepine/voicebox57k—~941Automated safety check: PassMIT
Mole Release Notes Publishertw93/Mole69k—~1.9kAutomated safety check: PassGPL-3.0
Release Bumpjamiepine/voicebox57k—~1.1kAutomated safety check: PassMIT
Git Workflow and Versioningaddyosmani/agent-skills102k2 repos~3.5kAutomated safety check: NotesMIT

Similar skills

  • React Router Release Notes Prep

    remix-run/react-router

    Polishes pending React Router change files before the versioning scripts run, and decides whether a long-form What's Changed section is warranted.

    57k GitHub stars~1.1k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Draft Release Notes

    jamiepine/voicebox

    Writes or refreshes the Unreleased section of CHANGELOG.md as a themed narrative built from the commits, PRs and diff since the last version tag.

    57k GitHub stars~941 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Publishes curated, bilingual release notes for an existing Mole version tag with gh release edit, including contributor thanks and reactions, after the release workflow finishes.

    69k GitHub stars~1.9k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Release Bump

    jamiepine/voicebox

    Ends a release cycle by moving the Unreleased changelog notes under a dated version heading, bumping version files with bumpversion and tagging the commit.

    57k GitHub stars~1.1k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Git Workflow and Versioning

    addyosmani/agent-skills

    Sets git habits for every change: short-lived branches, atomic commits with descriptive messages, clean pull requests, plus versioning, tagging and changelogs for releases.

    102k GitHub starsUsed in 2 repos~3.5k tokens
    DevelopmentAuto-check: notes
  • Takes a change through a verdaccio pull request: branch, local checks, changeset, title and body, labels, CI and review rounds, and ports to other release lines.

    18k GitHub stars~1.9k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from dcb/homeassistant-claude-kit

  • Entity Rename

    dcb/homeassistant-claude-kit

    Batch rename Home Assistant entities to follow a consistent naming convention.

    123 GitHub stars~1.9k tokensUpdated 5 days ago
    Auto-check: notes
  • Release

    dcb/homeassistant-claude-kit

    Cut a new homeassistant-claude-kit version. An agent skill from dcb/homeassistant-claude-kit.

    123 GitHub stars~3.1k tokensUpdated 5 days ago
    Auto-check passed
  • Setup Customize

    dcb/homeassistant-claude-kit

    Run after setup-infrastructure to map rooms, entities, and preferences to the dashboard and automation templates.

    123 GitHub stars~4.2k tokensUpdated 5 days ago
    Auto-check: notes

Categories

Questions about Upgrade

What does Upgrade do?

Pull a newer homeassistant-claude-kit version into this (diverged) install, applying only the changes still relevant here. Upgrade is an agent skill from dcb/homeassistant-claude-kit. Pull a newer homeassistant-claude-kit version into this (diverged) install, applying only the changes still relevant here.

When should I use Upgrade?

Upgrade fits situations like: phrases: upgrade the kit; pull kit updates; run the upgrade skill; bring my install up to date with the kit.

How do I install Upgrade in Claude Code?

Run `npx skills add dcb/homeassistant-claude-kit --skill upgrade -a claude-code`. Or copy the skill folder (.claude/skills/upgrade in dcb/homeassistant-claude-kit) into .claude/skills/upgrade in your project. Claude Code loads it when a task matches its description.

How do I install Upgrade in Codex?

Run `npx skills add dcb/homeassistant-claude-kit --skill upgrade -a codex`. Or copy the skill folder (.claude/skills/upgrade in dcb/homeassistant-claude-kit) into .agents/skills/upgrade in your project. Codex loads it when a task matches its description.

Can I use Upgrade in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dcb/homeassistant-claude-kit --skill upgrade -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/upgrade, .gemini/skills/upgrade, .github/skills/upgrade and .opencode/skills/upgrade in your project.

What does Upgrade need to run?

Going by SKILL.md and its folder, Upgrade needs the command-line tools its instructions call (git, make, npx and rsync). Our summary lists: Node.js.

Does Upgrade access the network?

SKILL.md contains no URLs. Its commands use git and npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Upgrade safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Upgrade use?

Upgrade is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Upgrade use?

About 2.4k tokens (SKILL.md is roughly 9.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.

What are the alternatives to Upgrade?

Skills that share tags, products or a category with Upgrade: React Router Release Notes Prep (remix-run/react-router, 57k stars), Draft Release Notes (jamiepine/voicebox, 57k stars), Mole Release Notes Publisher (tw93/Mole, 69k stars) and Release Bump (jamiepine/voicebox, 57k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Upgrade?

dcb (a GitHub user) maintains it in dcb/homeassistant-claude-kit, which has 123 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 2, 2026.

Source: dcb/homeassistant-claude-kit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.