Agent skill

Integrate Upstream

by Apocrathia in Apocrathia/home-assistant-config

Pull changes from the prime-context core into Home Assistant Homelab's .agents/ tree — diff shared rules, skills, and scripts, reconcile layer 1 and 2 changes, and preserve project-specific content.

No licenceAuto-check passedDevelopment

Install Integrate Upstream

skills CLI
$ npx skills add Apocrathia/home-assistant-config --skill integrate-upstream -a claude-code

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

GitHub CLI
$ gh skill install Apocrathia/home-assistant-config integrate-upstream --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/Apocrathia/home-assistant-config.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/integrate-upstream .claude/skills/integrate-upstream && 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
integrate-upstream
GitHub stars
179
Token cost
~2.4k tokens
SKILL.md length
649 words
Files
1
Skills in repo
22
Repo updated
First seen
Licence
None found

At a glance

Pull changes from the prime-context core into Home Assistant Homelab's .agents/ tree — diff shared rules, skills, and scripts, reconcile layer 1 and 2 changes, and preserve project-specific content.

  • Works in 8 steps: Locate and load the upstream core → Baseline from upstream-ref → Inventory this project's .agents/ → …
  • The user says sync upstream
  • SKILL.md covers When to run, Defaults for this project, Workflow and Do not
  • Calls git and python3

What it does

Integrate Upstream is an agent skill from Apocrathia/home-assistant-config. Pull changes from the prime-context core into Home Assistant Homelab's .agents/ tree — diff shared rules, skills, and scripts, reconcile layer 1 and 2 changes, and preserve project-specific content. Use when the user says sync upstream, integrate upstream changes, pull updates from the core, or update .agents/ from prime-context.

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. It works with Home Assistant and Git. The repository describes itself as: Apocrathia's Home Assistant Configuration Files.

When your agent uses it

  • The user says sync upstream
  • Integrate upstream changes
  • Pull updates from the core
  • Update .agents/ from prime-context

Example prompts

  • “/integrate-upstream”

Requirements

  • Python 3

Workflow steps

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

  1. Locate and load the upstream core
  2. Baseline from upstream-ref
  3. Inventory this project's .agents/
  4. Surface the change set (required gate)
  5. Apply after confirmation
  6. Update the pin
  7. Checks
  8. Report and hand off

What it can do on your machine

Read from SKILL.md and the folder at commit e28308a. 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
    • python3

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

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    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

Integrate Upstream loads about 2.4k tokens when it runs. Until then it costs about 88 tokens; SKILL.md has 649 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~88
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k

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 passed

The automated check found no risky patterns in SKILL.md.

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

Without a licence we can't republish the file, so here is its outline and opening line. It has 649 words (~2,363 tokens).

“This repo's .agents/ is built from the prime-context core. The core evolves — new rules, improved skills, better scripts, new templates. This skill pulls those upstream changes in while preserving Homelab-specific content (layer 3).”

— opening of SKILL.md by Apocrathia
name
integrate-upstream
disable-model-invocation
true

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/integrate-upstream of Apocrathia/home-assistant-config.

Open the folder on GitHubat commit e28308a

Compare with similar skills

Integrate Upstream 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.

Integrate Upstream compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Integrate Upstream this skillApocrathia/home-assistant-config179—~2.4kAutomated safety check: PassNone
PR Bodyandrew-blake/melcloudhome142—~3.3kAutomated safety check: PassMIT
Releasedcb/homeassistant-claude-kit123—~3.1kAutomated safety check: PassMIT
Upgradedcb/homeassistant-claude-kit123—~2.4kAutomated safety check: NotesMIT
Bump Versionroryeckel/wyoming_openai218—~349Automated safety check: PassApache-2.0
Releaservdbreemen/OTGW-firmware207—~2.5kAutomated safety check: PassGPL-3.0

Similar skills

  • PR Body

    andrew-blake/melcloudhome

    A skill your agent uses when composing or revising a pull request description in this repo, including PRs that sit in a stack.

    142 GitHub stars~3.3k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • 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 6 days ago
    DevelopmentAuto-check passed
  • Upgrade

    dcb/homeassistant-claude-kit

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

    123 GitHub stars~2.4k tokensUpdated 6 days ago
    DevelopmentAuto-check: notes
  • Bump Version

    roryeckel/wyoming_openai

    Bump the version number of wyoming-openai. An agent skill from roryeckel/wyoming_openai.

    218 GitHub stars~349 tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • Release

    rvdbreemen/OTGW-firmware

    Prepare and execute a full OTGW-firmware release following the documented release process

    207 GitHub stars~2.5k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed

More from Apocrathia/home-assistant-config

All 22 skills in this repo
  • Reconcile Context

    Apocrathia/home-assistant-config

    Fix drift in Home Assistant Homelab agent context (AGENTS.md, CLAUDE.md, .agents/context/, rules, skills, agents) against the repo.

    179 GitHub stars~931 tokensUpdated 17 days ago
    Auto-check passed
  • Alignment

    Apocrathia/home-assistant-config

    Interview the operator about a topic until shared understanding, walking each branch of the decision tree one at a time.

    179 GitHub stars~1.4k tokensUpdated 17 days ago
    Auto-check passed
  • Architecture Review

    Apocrathia/home-assistant-config

    Explore packages/, layout, and .agents/ for architectural friction (coupling, shallow packages, missing boundaries) and file or recommend agent issues under docs/issues/.

    179 GitHub stars~764 tokensUpdated 17 days ago
    Auto-check passed
  • Automation Debug

    Apocrathia/home-assistant-config

    Systematically diagnose and fix broken Home Assistant automations with a structured reproduce → triggers → conditions → actions workflow.

    179 GitHub stars~1.2k tokensUpdated 17 days ago
    Auto-check passed
  • Config Validate

    Apocrathia/home-assistant-config

    Validate Home Assistant YAML configuration for syntax, structure, entity references, duplicates, and secrets usage before applying changes.

    179 GitHub stars~932 tokensUpdated 17 days ago
    Auto-check passed
  • Create Agent

    Apocrathia/home-assistant-config

    Create a new agent persona under .agents/agents/. An agent skill from Apocrathia/home-assistant-config.

    179 GitHub stars~1.1k tokensUpdated 17 days ago
    Auto-check passed

Categories

Questions about Integrate Upstream

What does Integrate Upstream do?

Pull changes from the prime-context core into Home Assistant Homelab's .agents/ tree — diff shared rules, skills, and scripts, reconcile layer 1 and 2 changes, and preserve project-specific content. Integrate Upstream is an agent skill from Apocrathia/home-assistant-config.agents/ tree — diff shared rules, skills, and scripts, reconcile layer 1 and 2 changes, and preserve project-specific content.

When should I use Integrate Upstream?

Integrate Upstream fits situations like: the user says sync upstream; integrate upstream changes; pull updates from the core; update .agents/ from prime-context.

How do I install Integrate Upstream in Claude Code?

Run `npx skills add Apocrathia/home-assistant-config --skill integrate-upstream -a claude-code`. Or copy the skill folder (.agents/skills/integrate-upstream in Apocrathia/home-assistant-config) into .claude/skills/integrate-upstream in your project. Claude Code loads it when a task matches its description.

How do I install Integrate Upstream in Codex?

Run `npx skills add Apocrathia/home-assistant-config --skill integrate-upstream -a codex`. Or copy the skill folder (.agents/skills/integrate-upstream in Apocrathia/home-assistant-config) into .agents/skills/integrate-upstream in your project. Codex loads it when a task matches its description.

Can I use Integrate Upstream 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 Apocrathia/home-assistant-config --skill integrate-upstream -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/integrate-upstream, .gemini/skills/integrate-upstream, .github/skills/integrate-upstream and .opencode/skills/integrate-upstream in your project.

What does Integrate Upstream need to run?

Going by SKILL.md and its folder, Integrate Upstream needs the command-line tools its instructions call (git and python3). Our summary lists: Python 3.

Does Integrate Upstream access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Integrate Upstream safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Integrate Upstream use?

No licence was found for Integrate Upstream or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Integrate Upstream use?

About 2.4k tokens (SKILL.md is roughly 9.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Integrate Upstream?

Skills that share tags, products or a category with Integrate Upstream: PR Body (andrew-blake/melcloudhome, 142 stars), Release (dcb/homeassistant-claude-kit, 123 stars), Upgrade (dcb/homeassistant-claude-kit, 123 stars) and Bump Version (roryeckel/wyoming_openai, 218 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Integrate Upstream?

Apocrathia (a GitHub user) maintains it in Apocrathia/home-assistant-config, which has 179 GitHub stars. The repository holds 22 skills in this directory. The repository was last updated on September 21, 2026.

Source: Apocrathia/home-assistant-config on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.