Agent Skills › home-assistant/core › ha-pr-reviewer

ha-pr-reviewer

GitHub

用于审查 Home Assistant GitHub 拉取请求,检查代码变更并验证架构批准状态。通过 gh CLI 获取 PR 详情和差异,调用 ha-review 进行代码审查,并行执行评论审计,确保符合规范并提供控制台反馈。

.claude/skills/ha-pr-reviewer/SKILL.md home-assistant/core

触发场景

需要审查 GitHub 拉取请求 验证 PR 是否符合架构讨论批准要求

安装

npx skills add home-assistant/core --skill ha-pr-reviewer -g -y
更多选项

非标准路径

npx skills add https://github.com/home-assistant/core/tree/dev/.claude/skills/ha-pr-reviewer -g -y

不安装直接使用

npx skills use home-assistant/core@ha-pr-reviewer

指定 Agent (Claude Code)

npx skills add home-assistant/core --skill ha-pr-reviewer -a claude-code -g -y

安装 repo 全部 skill

npx skills add home-assistant/core --all -g -y

预览 repo 内 skill

npx skills add home-assistant/core --list

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-review skill. It is VERY IMPORTANT to follow the ha-review skill instructions. Explicitly pass the PR's target/base branch to the ha-review skill (obtained via gh 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-audit skill.
  • 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

同 Skill 集合

.claude/skills/bump-dependency/SKILL.md
.claude/skills/custom-integration-sources/SKILL.md
.claude/skills/ha-deprecation-cleanup/SKILL.md
.claude/skills/ha-integration-knowledge/SKILL.md
.claude/skills/ha-merge-queue/SKILL.md
.claude/skills/ha-pr-comment-audit/SKILL.md
.claude/skills/ha-quality-scale-verify/SKILL.md
.claude/skills/ha-review/SKILL.md

元信息

文件数
0
版本
779c7a7
Hash
0e84e2a8
收录时间
2026-07-25 09:23

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-06 11:18
浙ICP备14020137号-1