from pathlib import Path SKILL_DIR = Path(__file__).resolve().parent.parent def test_imports(): from scripts import manifest # noqa: F401 def test_skill_documents_trivy_first_flow(): skill = (SKILL_DIR / "SKILL.md").read_text() aws_bp = (SKILL_DIR / "agents/aws-bp-reviewer.md").read_text() consistency = (SKILL_DIR / "agents/consistency-reviewer.md").read_text() design = (SKILL_DIR / "README.md").read_text() assert "trivy-findings.json" in skill assert "Agents: `walkthrough-reviewer`, `aws-bp-reviewer`, `consistency-reviewer`,\n`tf-hygiene-reviewer`." in skill assert "Trivy as the first-pass scanner" in aws_bp assert "`trivy config` first-pass scan" in design assert "CONSISTENCY_NORMS" in consistency assert "consistency_norms.json" in design assert "block_text" not in design