Agent Skills
› home-assistant/core
› ha-pr-reviewer
ha-pr-reviewer
GitHub用于审查 Home Assistant GitHub 拉取请求,检查代码变更并验证架构批准状态。通过 gh CLI 获取 PR 详情和差异,调用 ha-review 进行代码审查,并行执行评论审计,确保符合规范并提供控制台反馈。
触发场景
需要审查 GitHub 拉取请求
验证 PR 是否符合架构讨论批准要求
安装
npx skills add home-assistant/core --skill ha-pr-reviewer -g -y
SKILL.md
Frontmatter
{
"name": "ha-pr-reviewer",
"description": "Reviews Home Assistant GitHub pull requests and provides feedback comments. This is the top skill to use for reviewing Pull Requests from GitHub."
}
Review GitHub Pull Request
Instructions:
- Use 'gh pr view' to get the PR details and description.
- Use 'gh pr diff' to see all the changes in the PR.
- Review the changes following the
ha-reviewskill. It is VERY IMPORTANT to follow theha-reviewskill instructions. Explicitly pass the PR's target/base branch to theha-reviewskill (obtained viagh pr view) so it diffs against the correct base. - Run a subagent in parallel to check the PR review comments following the
ha-pr-comment-auditskill. - If the PR changes the behavior or interface of an entity platform integration listed in
homeassistant/generated/entity_platforms.py, it requires an approved architecture discussion (https://github.com/home-assistant/architecture/discussions) linked in the PR body:- If no discussion is linked, flag it as blocking.
- If linked, fetch it and check that it has a comment stating the approval as the marked answer. Flag it as blocking if not approved.
- Verify the implementation matches the approved proposal, including any changes or conditions stated in the approval. Flag any deviation.
- Bug fixes and internal platform refactorings are exempt from the architecture requirement.
IMPORTANT:
- Only provide review feedback in the CONSOLE. DO NOT ACT ON GITHUB.
版本历史
-
779c7a7
当前 2026-11-03 04:20
新增指令以验证 PR 是否包含架构讨论的批准链接及批准状态,若未链接或未获批则标记为阻塞项。
- 702a9cb 2026-07-25 09:23


