MCPcopy Index your code
hub / github.com/github/copilot-sdk / _create_skill_directory

Function _create_skill_directory

python/e2e/test_rpc_server_e2e.py:55–68  ·  view source on GitHub ↗
(work_dir: str, skill_name: str, description: str)

Source from the content-addressed store, hash-verified

53
54
55def _create_skill_directory(work_dir: str, skill_name: str, description: str) -> str:
56 skills_dir = Path(work_dir) / "server-rpc-skills" / uuid.uuid4().hex
57 skill_subdir = skills_dir / skill_name
58 skill_subdir.mkdir(parents=True, exist_ok=True)
59 skill_md = (
60 f"---\n"
61 f"name: {skill_name}\n"
62 f"description: {description}\n"
63 f"---\n\n"
64 f"# {skill_name}\n\n"
65 f"This skill is used by RPC E2E tests.\n"
66 )
67 (skill_subdir / "SKILL.md").write_text(skill_md, encoding="utf-8", newline="\n")
68 return str(skills_dir)
69
70
71@pytest.fixture(scope="module")

Calls 2

PathFunction · 0.85
mkdirMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…