robsonfelix-hass-addons
CLAUDE.md134 starsChanged 29 days agoMITView on GitHub
This file contains instructions for Claude Code when working on this repository. IMPORTANT: Update claudecode/CHANGELOG.md with the changes being committed before making any commit. Follow the existing format: Run make test from the repo root: it installs the test dependencies (claudecode/tests/requirements.txt) and runs unittest discovery from the right directory. A single module: make test P=test_login_url.py. Dotted module names (python3 -m unittest tests.test_login_url) do not work. Every add-on declares image: ghcr.io/robsonfelix/<addon>-{arch} in its config.yaml, so the Supervisor pulls that image and…
- Commits and pushes
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 7
IMPORTANT: Update claudecode/CHANGELOG.md with the changes being committed before making any commit.
- Very specific: line 18
Run make test from the repo root: it installs the test dependencies (claudecode/tests/requirements.txt) and runs unittest discovery from …
- Very specific: line 38
Every add-on declares image: ghcr.io/robsonfelix/<addon>-{arch} in its config.yaml, so the Supervisor pulls that image and never builds …
- Very specific: line 46
Update the version in <addon>/config.yaml
- Very specific: line 47
Add an entry to <addon>/CHANGELOG.md
- Distinctive: line 48
Commit, but do not push the branch yet
- Distinctive: line 51
Wait for that workflow to go green, then git push origin main
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Code Instructions
This file contains instructions for Claude Code when working on this repository.
Before Every Commit
IMPORTANT: Update claudecode/CHANGELOG.md with the changes being committed before making any commit. Follow the existing format:
## [VERSION] - YYYY-MM-DD
### Added/Changed/Fixed
- Description of changeRunning Tests
Run make test from the repo root: it installs the test dependencies
(claudecode/tests/requirements.txt) and runs unittest discovery from the right
directory. A single module: make test P=test_login_url.py. Dotted module names
(python3 -m unittest tests.test_login_url) do not work.
Project Structure
Makefile-make test/make depsfor the test-suiterepository.yaml- Add-on repository metadataclaudecode/- Claude Code add-onconfig.yaml- Add-on configuration (bump version here)Dockerfile- Container build instructionsbuild.yaml- Multi-architecture build settingsREADME.md- User documentation (shown as the add-on's Documentation tab)tests/- Test-suite (make test)CHANGELOG.md- Version history (update before commits)apparmor.txt- Security profile
Version Bumping
Every add-on declares image: ghcr.io/robsonfelix/<addon>-{arch} in its
config.yaml, so the Supervisor pulls that image and never builds locally.
That makes the release order load-bearing: if main announces a version whose
image is not in the registry yet, every install and update of that add-on fails
outright, with no local-build fallback to save it.
So push the tag before the branch:
- Update the version in
<addon>/config.yaml - Add an entry to
<addon>/CHANGELOG.md - Commit, but do not push the branch yet
git push origin <addon>/v<version>- the tag carries the commit, CI builds it and publishes<addon>-{arch}:<version>to ghcr.io- Wait for that workflow to go green, then
git push origin main
Done in this order nobody ever sees a version whose image does not exist. Confirm the image landed before step 5:
t=$(curl -s "https://ghcr.io/token?scope=repository:robsonfelix/<addon>-amd64:pull&service=ghcr.io" | jq -r .token)
curl -s -H "Authorization: Bearer $t" "https://ghcr.io/v2/robsonfelix/<addon>-amd64/tags/list" | jq .tagsA change that touches only config.yaml (and not the image contents) needs no
bump at all - the Supervisor reads config.yaml from the store, so it reaches
new installs on the next repository refresh.
Home Assistant Add-on Notes
- Rebuild button only rebuilds from cached config
- To pick up config.yaml changes: uninstall/reinstall or bump version and update
- Base images use s6-overlay v3 - be careful with init configuration
init: trueuses Docker's tini,init: falseuses s6-overlay's /init
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

