Create a minimal SKILL.md and return the skill directory.
(tmp_path: Path, *, description: str | None = "Triggers for foo questions.")
| 32 | |
| 33 | |
| 34 | def _make_skill(tmp_path: Path, *, description: str | None = "Triggers for foo questions.") -> Path: |
| 35 | """Create a minimal SKILL.md and return the skill directory.""" |
| 36 | skill_dir = tmp_path / "output" / "skills" / "demo" |
| 37 | skill_dir.mkdir(parents=True) |
| 38 | if description is None: |
| 39 | body = "---\nname: demo\n---\n\n# demo\n" |
| 40 | else: |
| 41 | body = f"---\nname: demo\ndescription: {description}\n---\n\n# demo\n" |
| 42 | (skill_dir / "SKILL.md").write_text(body, encoding="utf-8") |
| 43 | return skill_dir |
| 44 | |
| 45 | |
| 46 | # -------- _read_description --------------------------------------------------- |
no outgoing calls
no test coverage detected