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:
5
script/gen_copilot_instructions.py
Normal file → Executable file
5
script/gen_copilot_instructions.py
Normal file → Executable 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
|
||||
|
||||
Reference in New Issue
Block a user