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.
- License 许可
- MIT
- 所属仓库
- amg0/ha_ksenia
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- ha-grill
- description
- 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.
02 资源文件 1
- 参考文档references/question-bank.md21.3 KB
03 SKILL.md 正文
Grill the developer before writing code
An agent that builds exactly what was asked builds the wrong thing surprisingly often. The request is the tip of a decision tree, and every branch left unasked gets guessed.
Here the guesses are expensive in a specific way: unique IDs, entity IDs, entry.data and the coordinator's data
shape reach users with the first release and are breaking to change afterwards
(ha-breaking-changes). A question costs a minute now; the same question answered
by a migration costs a release. Interrogate first — that is the whole point of this skill.
When to run it
| Situation | Grill? |
|---|---|
| Fresh blueprint, no real code yet | Yes — it produces the facts blueprint-scaffold demands |
| An existing integration about to be imported | Yes — before its baseline is taken; the install base decides how much of the import is affordable |
| First real feature after an import or migration | Yes — the imported code answers less than it looks like |
| A new platform, entity set, service action or flow step | Yes, once more than two or three decisions are open |
| A one-line request whose scope you cannot state back in one sentence | Yes |
| A bug with a known cause | No — debug it (ha-coordinator-debug) |
| A complete spec is already on the table | No. Say so, name the two or three real gaps, ask only those. |
Do not run it as a ritual. If nothing you could ask would change a file, you are stalling, not scoping.
The loop
- Read before you ask. Every question the repository already answers spends the developer's patience on
nothing. Check
manifest.json, the coordinator's_async_update_data, the existingEntityDescriptionsets,translations/en.json,docs/development/DECISIONS.mdand recent commits first. Then state what you found and ask for confirmation instead — "you poll every 30 s and there is no push path; still true?" is one word to answer. - One question at a time. A numbered list of twelve gets one reply covering three of them, and the other nine turn into assumptions. Ask, wait, use the answer to pick the next question.
- Every question carries your recommendation. "A, B or C? I would take B, because the payload already gives us the serial." The developer confirms in a word or corrects you in a sentence — either way you learn more than an open question would have got you.
- Follow the dependencies, do not tour the topics. Resolve what other decisions hang off first: push or poll before the update interval, one device or many before the unique ID scheme, library or own client before anything about the API surface. A decided branch usually kills three questions further down.
- Say it when you disagree. If an answer creates a problem later — a unique ID that will not survive a router swap, an attribute that should be an entity — name it in the same turn, with the consequence. Silent compliance here is the failure this skill exists to prevent.
- Show the running state every few questions, read back from the brief file you are already appending to. A short "settled so far" list lets the developer catch a misunderstanding at question 8 instead of in the diff.
Stop when no remaining question would change a file — not at a question count, and not when the developer sounds tired. A new integration usually takes twenty to forty questions; a second sensor takes four. If they break off early, that is their call: record what is unresolved under Open and say what it blocks.
Ask in the developer's language
The bank below is written in this project's vocabulary because it is a working list for you. The question you
actually put to the developer is not. Someone can know their device or service inside out and never have met a
coordinator — see "Do not assume the developer speaks Home Assistant's vocabulary" in
AGENTS.md. Translate on the way out, and translate the answer back yourself.
| Do not ask | Ask |
|---|---|
| Push or poll, and at what interval? | Does it tell us when something changes, or do we have to ask? How often does the value really move? |
| What should the unique ID be derived from? | Is there a number or code on it that stays the same even after a reset? |
Should this be assumed_state? |
After we send a command, can we read back whether it actually happened? |
Which values need a state_class? |
Which of these numbers should Home Assistant keep long-term history and statistics for? |
| Entity or attribute? | Should this stand on its own in a dashboard and in automations, or is it just extra detail? |
| Does this need an options flow? | Which settings must be changeable later, without deleting the integration and adding it again? |
When the decision has to be recorded in this project's terms, give both: "that means local_push — Home Assistant
will not poll it." The developer picks up the word from a decision they just made, which is the only way it sticks.
What has to be closed before code
The question bank is the working list — do not improvise it from memory:
| File | When to read |
|---|---|
references/question-bank.md |
Every grill. Pick the section matching the change, and the "never ask" list. |
The bank is organised by change type: new integration, new platform or entity, new service action, setup and config flow change, anything touching existing installs, and importing an integration that already has users. It also lists what not to ask — questions this project's rules have already decided, where asking invites an answer you would have to overrule anyway.
Tone
Default: direct. No opening praise, no "great question", no agreeing with something you can see a problem with. "Sounds good" is not information — if part of the idea is genuinely right, say which part and move on. Equally: do not manufacture objections to look rigorous. Direct means the assessment is honest in both directions.
--roast — the developer asked for it, in the invocation or in plain words ("roast me", "be brutal", "don't be
nice"). It changes the wording, never the substance:
- Every jab still lands on something concrete — a file, a line, a decision, a consequence. A roast without a reference is just noise, and the developer cannot act on it.
- The design, the code and the plan get roasted. The developer never does.
- The questions do not get fewer or softer. Harder tone, same rigour, same recommendations.
Both modes obey AI_POLICY.md: do not claim to have verified something you did not run.
The brief — written as you go, not at the end
An interview that produces no artefact was a chat. Open .agents/scratch/grill-<topic>.md at the first settled
decision and append to it as each one lands — the same gitignored directory plans live in
(ha-planning).
Writing it up at the end is the failure mode this section exists to prevent. Forty questions outlast a context window: what is on disk survives a summarisation, a crash, and tomorrow, and what is only in the conversation does not. Appending also forces the decision to be stated in one line at the moment it is made, which is when it is still possible to notice that it was never actually settled.
The file, not your memory, is the "settled so far" list that loop rule 6 shows the developer.
# Brief: <what is being built>
## Decided
- <decision> — <the reason, one line>
## Rejected
- <option> — <why it lost>
## Open
- <what the developer deferred> — blocks <what>
## Terms
- <the developer's word> — <what it means here, one line>
## Next
<skill to load, and the first file to touch>
Being wrong in the Decided list is the cheapest bug this project has — but only while it is still a list. Read it back to the developer before implementing.
Words that outlive the conversation
The developer's domain has words of its own — what the vendor calls a zone, a session, a profile, a slot; which of five readings is "the" temperature; what "presence" means in this product. These end up in translation keys, entity names and the documentation, where they become user-visible and breaking to change — so a term used loosely in the grill is a rename in six months.
Pin one the moment it is settled, in one tight line, in the brief. Once three or four have accumulated and they will
outlive this feature, offer the developer a docs/development/GLOSSARY.md and move them there — permanent
documentation is created on their yes, never silently ("Documentation" in AGENTS.md).
Two things do not belong in it: Home Assistant's own vocabulary, which is one lookup away and is handled by explaining it in the conversation instead, and anything that is a specification rather than a definition. A glossary entry says what a word means, not what the code does with it.
Hand off
| The brief describes | Continue with |
|---|---|
| A whole integration on the fresh blueprint | blueprint-scaffold |
| An integration that already has users, being migrated in | blueprint-import — the brief feeds its phase 0 |
| More than ~10 files, or a structural change | ha-planning — plan, then confirm |
| A choice that is expensive to reverse | ha-planning → an entry in docs/development/DECISIONS.md |
| Entities or a platform | ha-entity-platform |
| A service action | ha-service-action |
| Setup, options, reauth or discovery | ha-config-flow |
| Anything reaching installs that already exist | ha-breaking-changes first |
Small and fully settled goes straight to implementation — the brief has already done the planning a plan would repeat.
Do not
- Do not ask what the repository, the manifest or a decision record already states. Confirm it in one line instead.
- Do not send a wall of questions, and do not ask one without a recommendation attached.
- Do not ask in vocabulary the developer never signed up for, and do not read a vague answer as agreement — it more often means the question was in the wrong language.
- Do not accept "like the example one" as an answer. The blueprint's demo platforms are demonstrations of the file layout, not of anyone's device; carrying their shape over ships entities nobody wanted.
- Do not accept an invented payload. If nobody has seen a real response, that goes under Open, not into a guess.
- Do not hold the brief in your head until the end. Append as each decision lands, or a long grill loses the early half of itself to a context window.
- Do not close a grill without a brief and a named next step.
- Do not create
docs/development/GLOSSARY.mdunasked, and do not fill it with Home Assistant's vocabulary. - Do not grill a bug report, and do not grill again over a spec that is already complete.
- Do not soften a finding because the developer sounds attached to the idea, and do not turn
--roastinto an insult with no file attached to it.
04 同仓库更多 Skills
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.