1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-02 00:20:30 +01:00

Add PR review Claude skill (#164626)

This commit is contained in:
Abílio Costa
2026-03-03 18:21:51 +00:00
committed by GitHub
parent 84c994ab80
commit 06cdf3c5d2
2 changed files with 51 additions and 0 deletions

5
script/gen_copilot_instructions.py Normal file → Executable file
View File

@@ -17,6 +17,8 @@ SKILLS_DIR = Path(".claude/skills")
AGENTS_FILE = Path("AGENTS.md")
OUTPUT_FILE = Path(".github/copilot-instructions.md")
EXCLUDED_SKILLS = {"github-pr-reviewer"}
def gather_skills() -> list[tuple[str, Path]]:
"""Gather all skills from the skills directory.
@@ -32,6 +34,9 @@ def gather_skills() -> list[tuple[str, Path]]:
if not skill_dir.is_dir():
continue
if skill_dir.name in EXCLUDED_SKILLS:
continue
skill_file = skill_dir / "SKILL.md"
if not skill_file.exists():
continue