core: Skill for Claude Code

.claude/skills/custom-integration-sources/SKILL.md

custom-integration-sources is a skill for Claude Code from home-assistant/core. It costs 73 tokens per session (2,507 once invoked), scanned A, original, Apache-2.0.

A local, searchable copy of the custom integrations listed by HACS, the Home Assistant Community Store. It lets you inspect their code to see how changes in Home Assistant core may affect them.

In plain words
What is it for?
Use it to find which integrations use a core feature, estimate the impact of a change, and inspect matching code or Git history.
Why use it?
It avoids manually checking many separate repositories when assessing a deprecation, removal, rename, or changed function signature. A local snapshot also supports code searches and history checks without fetching each repository during the task.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

This is home-assistant/core's own configuration. It tells Claude Code how to work on core itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything core configures →

About the project

Home Assistant is open-source home automation software that lets people control devices and actions locally through a modular system. It is used by home-automation enthusiasts and DIY users, often on a Raspberry Pi or local server; the catalogue entries support operating or developing its integrations and codebase.

home-assistant/core · 91,801 stars · on GitHub · home-assistant.io

Reuse

Borrowing it

Nothing to install: this file belongs to home-assistant/core. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/home-assistant/core/dev/.claude/skills/custom-integration-sources/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/home-assistant/core

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for custom-integration-sources

README.md
[![agentmods](https://agentmods.dev/badge/skills/home-assistant/core/custom-integration-sources/github.svg)](https://agentmods.dev/skills/home-assistant/core/custom-integration-sources)
Your own site
<a href="https://agentmods.dev/skills/home-assistant/core/custom-integration-sources"><img src="https://agentmods.dev/badge/skills/home-assistant/core/custom-integration-sources/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for custom-integration-sources

Your own site · 80×15
<a href="https://agentmods.dev/skills/home-assistant/core/custom-integration-sources"><img src="https://agentmods.dev/badge/skills/home-assistant/core/custom-integration-sources.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,507 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.02507
Opus 5.5 $0.00029 $0.01003
Sonnet 5.5 $0.00015 $0.00501
Haiku 4.5 $0.00007 $0.00251

Measured 7d ago against content hash 7fc523b8bffd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

custom-integration-sources scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/custom-integration-sources/SKILL.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Custom integration sources

A local snapshot of every repository in the HACS default integration list, at the HEAD of each default branch. Each repo is a blobless git clone: full commit history, with file contents downloaded only when needed. Its sparse checkout holds what HACS installs (custom_components/, plus the root hacs.json), minus common binary file types (~3.3 GB for ~3,250 repos, about 1.9 GB of it git history). Repos with content_in_root set in hacs.json (or with no custom_components/ at all) are checked out whole.

The copy is made by script/sync_custom_integrations.py. Layout: <copy>/<owner>/<repo>/..., each a git repository with an origin remote, and <copy>/.state.json mapping each owner/repo to the synced commit SHA under repos. Repos can be opened in an editor for blame and GitHub permalinks.

Locate the copy

  • Use the directory the user names, if any. Otherwise use .custom_integration_sources/ in the main worktree, which all git worktrees share: "$(dirname "$(git rev-parse --path-format=absolute --git-common-dir)")/.custom_integration_sources". In a linked worktree, use that copy; never create a second one there.
  • A directory is a valid copy only if its .state.json has "format": "custom-integration-sources/1".
  • If there is no valid copy, ask the user where theirs is, or whether to create one (a first sync takes about 5 minutes), or whether a quick GitHub code search is enough (see below). Never start a sync unprompted.
  • Before offering a first sync, check free space on the destination's filesystem (df -h on the destination's parent directory) and tell the user the copy needs about 3.5 GB, so they can pick another location with --dest or free up space first.
  • Before searching, state how old the snapshot is, from synced_at in .state.json: the time the last full sync without failures finished. Targeted, failed or interrupted runs don't update it, so never use the file's modification time. If synced_at is missing, say the age is unknown. Do not refresh the copy unless the user asks; suggest a refresh if it is more than a few days old, or of unknown age.

Read the full file on GitHub · 92 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 92 lines · 73 tokens per session scan A 7fc523b8bffd

Subscribe to this mod's changes

custom-integration-sources is a skill published in the GitHub repository home-assistant/core (91,801 stars, last pushed today), licensed Apache-2.0. It adds 73 tokens to every session and 2,507 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-22.

Related

Other skills, from other repositories