ha-android-committing
home-assistant/android/.agents/skills/ha-android-committing/SKILL.md
Home Assistant Android change finalization. Use when finishing a change, preparing to commit, updating the changelog, naming a branch, or opening a pull request.
Skill4k starsChanged 2 days ago
What's in it
- HA Android Committing
- Before Committing
- Pull Requests
--- name: ha-android-committing description: Home Assistant Android change finalization. Use when finishing a change, preparing to commit, updating the changelog, naming a branch, or opening a pull request. --- # HA Android Committing Use this skill when finalizing a change and preparing it for commit or a pull request. For evaluating the code itself, use the `ha-android-review` skill. ## Before Committing 1. Format: `./gradlew :build-logic:convention:ktlintFormat ktlintFormat` 2. Detekt: `./gradlew detektMain :build-logic:convention:detektMain --continue`. Fix findings in the code you touched; never add them to a `detekt-baseline*.xml` (baselines only shrink as legacy findings get fixed). Refresh baselines with `./gradlew detektBaselineMain` only when a rule change or detekt update invalidates them. 3. Tests: `./gradlew test` 4. If the change adds a feature or changes behavior visibly for end users, add it to `app/src/main/kotlin/io/homeassistant/companion/android/changelog/ChangelogContent.kt`. Small bug fixes don't get their own entry — the standing "Bug fixes and dependency updates" entry already covers them. 5. After adding or updating any dependency (in `gradle/libs.versions.toml` or module declarations), run `./gradlew alldependencies --write-locks`. 6. Run the `ha-android-review` skill over the diff before handing it off. Branch naming: `feature/add-dark-mode`, `fix/crash-on-rotation`. ## Pull Requests - Use `.github/pull_request_template.md` as the PR body. - Keep PRs small — easier to review, faster to merge. Break large changes into logical chunks; a reusable component (a new `HA*` composable, a shared utility) deserves its own PR before the feature that uses it. - A PR must not contain changes unrelated to its purpose. Found a bug on the way? Open an issue and a separate PR. Revert incidental edits to files the change doesn't need. - Pure refactor or code-move PRs must not change behavior — keep copied code as it was and fix pre-existing issues in follow-ups. - Once a PR is open, merge `main` into the branch instead of rebasing. - Keep the PR description and screenshots up to date as the implementation evolves. - Tests belong in the same PR as the implementation they cover, including tests moved along with moved logic. - Features visible in `:app` must be verified on (or hidden from) Automotive and other form factors like Meta Quest. - When the Android Gradle Plugin is updated, refresh the lint baseline with `./gradlew updateLintBaseline`. Never grow the baseline to silence an issue introduced by your change — fix the source or delete the unused resource instead.
More agent context in home-assistant/android
13 other files this repository gives its agents.
AGENTS.md
CLAUDE.md
Copilot instructions
Skill
- ha-android-architecture.agents/skills/ha-android-architecture/SKILL.md
- ha-android-concurrency.agents/skills/ha-android-concurrency/SKILL.md
- ha-android-e2e-debugging.agents/skills/ha-android-e2e-debugging/SKILL.md
- ha-android-kotlin-style.agents/skills/ha-android-kotlin-style/SKILL.md
- ha-android-logging-errors.agents/skills/ha-android-logging-errors/SKILL.md
- ha-android-review.agents/skills/ha-android-review/SKILL.md
- ha-android-skill-maintenance.agents/skills/ha-android-skill-maintenance/SKILL.md
- ha-android-testing.agents/skills/ha-android-testing/SKILL.md
- ha-android-ui.agents/skills/ha-android-ui/SKILL.md
- agentic-workflows.github/skills/agentic-workflows/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
Reports can't be read right now.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

