Files
Open_Ultra_SAST/tests/test_opencode_skills.py
T
Marius CiepluchandClaude Opus 4.8 6699f1f8f9 chore: add kiro spec-driven tooling and steering docs
Add the Kiro-style agentic SDLC tooling used to drive this project: the
.opencode/skills/kiro-* skill set (discovery, spec init/requirements/design/
tasks, validation, implementation, review, steering), the .kiro/settings
templates, and AGENTS.md describing the workflow. Update the spec docs
(assessment/design/requirements/tasks) to current state.

Scope tests/test_opencode_skills.py to the project's own openultrasast-*
skills so the third-party kiro-* tooling (which uses a different frontmatter
convention) no longer breaks the frontmatter check.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-21 14:28:19 +02:00

23 lines
807 B
Python

from pathlib import Path
def test_project_opencode_skills_have_required_frontmatter() -> None:
skills_root = Path(".opencode/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-kiro-impl",
"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