skills: Instructions file for Claude Code

CLAUDE.md

skills CLAUDE.md is an instructions file for Claude Code from homeassistant-ai/skills. It costs 2,880 tokens per session, scanned A, original, MIT.

Instructions for creating and maintaining CLAUDE.md files, which give coding agents project-specific guidance. They cover repository layout, skill files, plugin metadata, and evaluation cases.

In plain words
What is it for?
Use them when authoring agent skills, arranging plugin repositories, or checking how CLAUDE.md guidance and evaluation files should be structured.
Why use it?
They help keep agent instructions in the expected locations and formats, avoiding setup mistakes that can make tests or evaluations silently miss files.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions .claude-plugin; mentions CLAUDE.md; mentions Claude Code.

This is homeassistant-ai/skills's own configuration. It tells Claude Code how to work on skills 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 skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to homeassistant-ai/skills. 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/homeassistant-ai/skills/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/homeassistant-ai/skills

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 skills CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/homeassistant-ai/skills/claude-md/github.svg)](https://agentmods.dev/instructions/homeassistant-ai/skills/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/homeassistant-ai/skills/claude-md"><img src="https://agentmods.dev/badge/instructions/homeassistant-ai/skills/claude-md/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 skills CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/homeassistant-ai/skills/claude-md"><img src="https://agentmods.dev/badge/instructions/homeassistant-ai/skills/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,880 This file is loaded in full into every session.
When invoked 2,880 The same file — it is already loaded in full.
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.02880 $0.02880
Opus 5.5 $0.01152 $0.01152
Sonnet 5.5 $0.00576 $0.00576
Haiku 4.5 $0.00288 $0.00288

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

Security

Grade A, and why

skills CLAUDE.md 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 14d 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.md · 136 lines

How it starts

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

CLAUDE.md

Repo Layout

Eval cases live in a top-level evals/<case>/case.yaml, not under skills/. claude plugin eval rejects any eval directory whose first segment names a loaded component directory (commands, skills, agents, hooks, themes, output-styles, monitors, workflows, bin) — and rejects it softly: it warns, falls back to the default evals/, and finds nothing, so cases in the wrong place silently never run. evals/ at the plugin root is the default and needs no experimental.evals key.

SKILL.md is in context on every trigger; references/ load only when read. That is why SKILL.md body size is capped and why domain-niche content belongs in a reference file behind a single routing row, not in the always-loaded table.

Skill Format

Every skill is a SKILL.md with name/description frontmatter. Full authoring constraints: CONTRIBUTING.md. Two rules to check when editing a skill:

  • metadata.version must be "0" on new skills — do not edit manually; CI assigns the real version on merge and syncs it into .claude-plugin/plugin.json (.version) and .claude-plugin/marketplace.json (.metadata.version) — three files, one source of truth
  • description is capped at 1024 chars and runs close to it — measure the parsed length before adding trigger/symptom bullets: uvx --from skills-ref agentskills read-properties skills/<skill-name> | jq '.description | length'. Its first line tells agents to load the skill before answering or exploring; keep that line when trimming, because small models skip the skill without it (CONTRIBUTING.md has the numbers)

Skill Authoring Principles

The wording of these content-quality principles is mirrored in CONTRIBUTING.md (contributors); each file also carries guidance the other omits. When you change a shared principle, change both — they have drifted before.

  • Context window conservation — keep what is HA-specific, cut general programming advice; the test is the content itself, not whether a given model already knows it (skills run on frontier and small local models alike)
  • Conciseness — provide patterns and quick-reference tables, not tutorials
  • Consistent terminology — one term per concept throughout a skill; contrasting code blocks are # WRONG — why / # RIGHT — why (emoji only in table status columns). A renamed HA term uses the new name and cites the old one with its version ("named Developer Tools before 2026.8") — never a bare swap, since readers on older releases still see the old label
  • Symptom-based triggering — the description frontmatter should describe observable agent behaviors that signal the skill is needed
  • No tool names — reference HA REST APIs and concepts, never specific MCP tool names (e.g. ha_rename_entity); tool names vary by agent setup

Read the full file on GitHub · 136 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. 14d ago Changed · +6 lines · +158 tokens per session 16b3c87ffc24
  2. 28d ago Changed · -73 lines · -1,272 tokens per session 26c98772ee78
  3. 29d ago Changed · +39 tokens per session 57b02bf338b9
  4. 1mo ago Changed · +14 lines · +325 tokens per session e49b73a35f67
  5. 1mo ago Changed · +7 lines · +134 tokens per session 2a66e33fcd4e
  6. 1mo ago Changed · +29 lines · +503 tokens per session 66842fa6c5fd
  7. 1mo ago Changed · +53 lines · +1,049 tokens per session edd564eaaaa2
  8. 2mo ago First seen · 100 lines · 1,944 tokens per session scan A f40719162035

Subscribe to this mod's changes

skills CLAUDE.md is an instructions file published in the GitHub repository homeassistant-ai/skills (947 stars, last pushed 8d ago), licensed MIT. It adds 2,880 tokens to every session, about $0.0115 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-08-30.

Related

skills CLAUDE.md compared with instructions from other repositories

skills CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
skills CLAUDE.mdhomeassistant-ai/skillsInstructions file9478d agoMITA2,880Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode