Files
Open_Ultra_SAST/tests/test_agent_skills.py
T
Marius CiepluchandClaude Fable 5.1 3344b1fc45 chore(skills): repoint the remaining references to .agents/skills
The previous commit moved the directory but a failed git add left these seven
reference edits unstaged.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EmM1j46qgKMh3zqD1QMwEo
2026-10-02 19:30:48 +02:00

22 lines
767 B
Python

from pathlib import Path
def test_project_agent_skills_have_required_frontmatter() -> None:
skills_root = Path(".agents/skills")
# Scope to the project's own skills; third-party tooling (e.g. kiro-*) lives
# alongside them and uses a different frontmatter convention.
skill_files = sorted(skills_root.glob("openultrasast-*/SKILL.md"))
assert {path.parent.name for path in skill_files} == {
"openultrasast-fix-audit",
"openultrasast-scan",
"openultrasast-triage",
}
for skill_file in skill_files:
text = skill_file.read_text()
header = text.split("---", 2)[1]
assert f"name: {skill_file.parent.name}" in header
assert "description: " in header
assert "Use when" in header