- Skills
- 20
- 仓库
- 1
- 职业覆盖
- 0
- 场景覆盖
- 0
- Stars
- ★ 0
amg0 的 Skills 20
issues
Triage/fix the GitHub issue backlog via branch + PR, with auto-merge on green CI for this session.
ha-translations
Add or fix user-facing strings for this Home Assistant custom integration — translations/en.json and other languages, icons.json, entity names and states, config flow labels and errors, service action descriptions, exception messages, and repair issue text. Use when asked to "update translations", "add a translation key", "translate", "fix the entity name", "add strings for the new sensor/action/option", "add icons", or when hassfest reports a missing or unused translation key. Covers the key structure, which keys each feature needs, placeholders, the icons.json contract, and the project's strict rule about only touching en.json. SYMPTOMS — load this if you are about to: write user-facing English into Python; edit a language file other than `en.json`; add an entity without its `entity.<platform>.<key>.name` key; skip `data_description` on a config flow field; or set `icon=` instead of using `icons.json`.
ha-testing
Write, fix, or extend automated tests for this Home Assistant custom integration using pytest and pytest-homeassistant-custom-component. Use when asked to "add tests", "write a test", "the tests fail", "improve coverage", "add a regression test", "test the config flow", "update snapshots", or when a behavioural change needs verification before it can be called done. Covers the tests/ layout, the conftest.py fixtures this project needs, mocking the API client, config flow and entity test patterns, registry assertions, syrupy snapshots, freezing time, and the script/test commands. SYMPTOMS — load this if you are about to: instantiate an entity class directly instead of asserting on `hass.states`; write a test without `enable_custom_integrations`; use `time.sleep` instead of `async_fire_time_changed`; silence a DeprecationWarning to make the suite pass; or commit a snapshot you have not read.
ha-service-action
Add, change, or remove a Home Assistant service action (also called a "service" or "action") in this custom integration. Use when asked to "add a service", "add an action", "expose X as a service call", "add a service that returns data", "make this callable from an automation", or when editing services.yaml, the service_actions/ package, service schemas, service response data, or the async_setup() registration. Covers the services.yaml contract, probatio schemas, selectors, entity/device targeting, response data, translated error messages, and the Bronze quality-scale rule that actions must be registered in async_setup(). SYMPTOMS — load this if you are about to: register an action in `async_setup_entry()`; add a `services.yaml` field without a selector; add an `entity_id` field where `target:` belongs; raise a plain English `HomeAssistantError`; or swallow an action failure into a log line.
ha-release
Cut a release of this Home Assistant custom integration, or prepare the commits that feed it. Use when asked to "release", "cut a version", "bump the version", "prepare release notes", "what will the next version be", "write a commit message", "why didn't release-please pick this up", or when reviewing whether a change is user-facing. Covers the Conventional Commits rules commitlint enforces here, how release-please derives the version and changelog, the pre-1.0 bump rules, script/version and script/release-notes, skipping a commit from the notes, and the commit rules this project enforces for agents. SYMPTOMS — load this if you are about to: commit without an explicit request; offer to `git push`; label a user-facing fix as `chore` (chore, like every hidden type, never reaches the changelog and never triggers a release); write a commit subject over 100 characters or in sentence case; or edit the version in `manifest.json` by hand.
ha-quality-review
Perform a structured quality review of this Home Assistant custom integration, either as a full audit or scoped to a diff. Use when asked to "review the integration", "audit the code", "check quality scale", "are we bronze/silver/gold", "is this ready to release", "review my changes", "what's missing before publishing", or before opening a pull request that touches integration code. Covers running the automated gates first, then auditing architecture, the Integration Quality Scale rules, error handling, security, performance, user experience, and documentation — and reporting findings ranked by severity with concrete fixes. SYMPTOMS — load this if you are about to: report a review that only restates linter output; claim real-device testing that did not happen; give a finding without a file path and a fix; or judge quality without running `script/hassfest` and the test suite first.
ha-planning
Plan a large change to this Home Assistant custom integration before writing code, or record an architectural decision. Use when asked to "create a plan", "plan this feature", "how should we approach", "propose an architecture", "write an ADR", "document this decision", "should we use library X or write our own client", or whenever a change would touch more than about ten files or alter the integration's structure. Covers when a plan is mandatory, the phased plan format, where plans live, when a decision is worth recording, and the DECISIONS.md entry format used by this project. SYMPTOMS — load this if you are about to: start a refactor spanning more than ten files without confirmation; write a plan whose phases name no files; write one in prose nobody will finish reading; create a planning markdown file outside `.agents/scratch/`; or make a hard-to-reverse architectural choice without recording why.
ha-modern-apis
Verify that Home Assistant APIs used in this custom integration are current, and replace deprecated ones. Use when a DeprecationWarning, "Detected that custom integration", or "will be removed in HA Core X.Y" appears in logs or tests, when asked to "modernize", "update to the latest HA version", "fix deprecations", "is this still the right API", "bump the HA version", or before copying a pattern from an older integration, blog post, or model memory. Covers checking the installed Home Assistant source instead of guessing, the device registry single-owner rules, runtime_data, config flow helpers, entity metadata, async I/O, and the version bump procedure. SYMPTOMS — load this if you are about to: write `hass.data[DOMAIN]` instead of `runtime_data`; call the unscoped `async_get_device()`; use `FlowResult`, `DEVICE_CLASS_*`, or `async_timeout`; create your own aiohttp session; add a warning filter to make a deprecation go away; or adopt an undocumented API or config key on an issue's say-so.
ha-marketplace
Publish this Home Assistant custom integration through the Marketplace and HACS, and keep it listed — repository preconditions, hacs.json, brand images, the CI gates the catalog requires, the hacs/default pull request, the My links in the README, how a release reaches users, and renaming, archiving or removing a listed repository. Use when asked to "publish the integration", "get it into HACS", "submit to the Marketplace", "add it to the default repositories", "why doesn't the update show up", "keep files across updates", "rename or archive the repository", or when editing hacs.json or the brand/ folder. SYMPTOMS — load this if you are about to: open the hacs/default pull request yourself; add an `ignore` to the HACS action to make it pass; delete a repository that is in the catalog; delete an old release; write user data into the integration folder; set `zip_release`; ship Home Assistant's own logo as the brand icon; or raise `homeassistant` in hacs.json without treating it as a breaking change.
ha-issue-triage
Work through a backlog of GitHub issues on this repository — categorize, then walk bugs and feature requests one at a time, fixing approved ones on a branch through a pull request instead of committing straight to main. Use when asked to "triage my issues", "go through the issue backlog", "work through the issues", "let's triage", or invoked via the `/issues` command. This is opt-in tooling for backlog work, not a replacement for the normal ad-hoc flow in AGENTS.md — a single "fix this bug" request in conversation still goes through that flow, not this one. SYMPTOMS — load this if you are about to: fix several issues in a row by committing each straight to main with nobody reviewing between commits; dump the whole backlog in one message instead of walking it one issue at a time; merge a pull request this flow opened without either explicit confirmation or an explicit full-autonomy invocation; bump a version by hand; or skip the breaking-changes warn-first check on an issue fix that needs it.
ha-grill
Interview the developer until the requirements of a change are actually settled, before any code is written. Use when asked to "grill me", "roast me", "interview me", "ask me what you need to know", "I want to build an integration for <device>", "let's add <feature>", "challenge my idea", or whenever a request names a goal but none of the decisions underneath it. Covers when to run the interview, the one-question-at-a-time loop, the Home Assistant decisions that must be closed before code, the tone switch between direct and roast, when to stop, and the brief that hands off to the other skills. SYMPTOMS — load this if you are about to: start implementing from a one-line feature request; send a wall of numbered questions; ask something the repository already answers; ask in Home Assistant vocabulary the developer has no reason to know; accept "like the example one" as a requirement; agree with a design you can already see a problem with; or keep the brief in your head until the end.
ha-entity-platform
Add or change a Home Assistant entity platform or an individual entity in this custom integration — sensor, binary_sensor, switch, button, number, select, fan, climate, cover, light, lock, and friends. Use when asked to "add a sensor", "add a new entity", "add a platform", "expose <value> as an entity", "add an entity to the device", "make this entity diagnostic", or when changing EntityDescription metadata, device classes, state classes, entity categories, or availability. Covers the platform directory layout, the coordinator-backed entity contract, unique IDs, device grouping, and the translation and validation steps that must follow. SYMPTOMS — load this if you are about to: hardcode `name=` or `icon=` in an EntityDescription instead of `translation_key`; omit `state_class` on a numeric measurement; call the API client from an entity property; set `_attr_unique_id` or `_attr_device_info` in a platform entity; or put two entity classes in one file.
ha-coordinator-debug
Diagnose and fix runtime problems in this Home Assistant custom integration — entities showing "unavailable" or "unknown", stale data, the integration failing to set up, "Config entry not ready", repeated reauth prompts, coordinator update failures, timeouts, or blocking-call warnings. Use when asked to "debug", "why is my sensor unavailable", "the integration won't load", "data isn't updating", "check the logs", "restart Home Assistant", or when investigating anything in coordinator/, api/, or the setup path. Covers the run loop, `script/ha`, when to read `config/.storage/` instead, and the coordinator failure contract. SYMPTOMS — load this if you are about to: invent your own `hass`/`pytest` command instead of the project scripts; read or write `config/.storage/` while Home Assistant is running; ask the developer to read a state or download diagnostics from the UI for you; return None from `_async_update_data` to signal failure; or catch Exception broadly in the coordinator.
ha-config-flow
Work on the Home Assistant config flow of this custom integration — the setup UI, options flow, reauthentication, reconfigure, discovery (zeroconf, dhcp, ssdp, bluetooth, usb, mqtt, homekit), subentries, unique IDs, and config entry version migration. Use when asked to "add a config option", "add a setting", "ask the user for X during setup", "add an options flow", "support reauth", "add discovery", "make the host configurable", "migrate the config entry", or when editing config_flow_handler/, its schemas/ and validators/, or manifest discovery matchers. Covers reserved step names, acceptable unique IDs, abort reasons, validation, and the migration contract. SYMPTOMS — load this if you are about to: use a host or IP as the unique ID; create a config entry without validating the connection; store a credential in `entry.options`; read `entry.data[key]` for a key old entries will not have; or change entry data without bumping VERSION/MINOR_VERSION.
ha-breaking-changes
Handle any change to this Home Assistant custom integration that could break existing installations — unique IDs and entity IDs, config entry data, config options, service actions, state values, units, device classes, the minimum Home Assistant version, or removing entities and devices. Use when asked to "rename", "restructure", "clean up the unique IDs", "remove this option", "change the state format", or whenever a planned change would invalidate an existing install. Covers the warn-first policy, unique ID and config entry migration, repair issues, deprecation periods, how the bar differs before 1.0.0, and documenting the change. SYMPTOMS — load this if you are about to: rename an `EntityDescription.key`, unique ID, or entity ID; remove a config option because it looks unused; change a unit, device class, or state class; treat a prior approval as standing permission; write a migration or bump `VERSION` before 1.0.0; or fold a breaking change into an unrelated commit.
blueprint-update
Carry over the blueprint changes the weekly template sync cannot deliver — the steps an integration repository has to take by hand, and the blueprint's edits to the files .templatesyncignore keeps out of the sync, such as AGENTS.md, the sync workflow and the developer documentation. Use when asked to "update from the blueprint", "what changed in the blueprint", "pull in the blueprint changes", "are we up to date with the template", after merging a template sync pull request, or when a sync pull request or the tooling skill says a step has to be copied by hand. Covers the manual-steps list, script/blueprint-update, merging a blueprint change into a file the project owns, and recording what was gone through. SYMPTOMS — load this if you are about to: copy a whole blueprint file over a project-owned one; remove a path from .templatesyncignore to get one change through; port a blueprint change with the blueprint's domain or class prefix still in it; or run this in the blueprint itself.
blueprint-tooling
Use this repository's development tooling correctly — the script/ validation and formatting commands, the fix-versus-check distinction, hassfest, adding a Python dependency in both manifest.json and requirements.txt, the mise toolchain and which dependency bot raises what, extending scripts with pre/post hook scripts, devcontainer environment variables, and template sync from the upstream blueprint. Use when asked to "run the checks", "fix the lint errors", "why is CI failing", "add a dependency", "add a package", "add a tool", "update mise", "add a hook", "customize the setup", "exclude a file from template sync", or when a validation command fails and you need to know which script to reach for. SYMPTOMS — load this if you are about to: run `ruff`, `pyright`, `pytest`, or `hass` directly instead of the project script; run a `-check` script after a fix script; add a dependency to only one of `manifest.json` and `requirements.txt`; or edit a template-managed script instead of adding a hook.
blueprint-skill-maintenance
Maintain the agent skill set that this blueprint template ships to downstream integration repositories. Use when asked to "add a skill", "update the skills", "this skill is out of date", "split this skill", "remove a skill", "the skills disagree with the instructions", or after bumping the pinned Home Assistant version, which can invalidate advice in several skills at once. Covers the shipped-set checklist, the rule-versus-procedure seam against .agents/instructions, the pointers that must exist on both sides of it, where the catalogue is duplicated, template-sync safety, and the validation loop. SYMPTOMS — load this if you are about to: write a concrete domain or class name into a skill; add a skill without listing it in the catalogue or without a pointer from its partner instructions file; restate in a skill a rule that already lives in an instructions file; or edit a skill through one of the symlinked paths instead of .agents/skills/.