MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / _make_skill

Function _make_skill

tests/test_skill_evaluator.py:34–43  ·  view source on GitHub ↗

Create a minimal SKILL.md and return the skill directory.

(tmp_path: Path, *, description: str | None = "Triggers for foo questions.")

Source from the content-addressed store, hash-verified

32
33
34def _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 ---------------------------------------------------

Calls

no outgoing calls

Tested by

no test coverage detected