MCPcopy Index your code
hub / github.com/github/spec-kit / skills_dest

Method skills_dest

src/specify_cli/integrations/base.py:1300–1316  ·  view source on GitHub ↗

Return the absolute path to the skills output directory. Derived from ``config["folder"]`` and the configured ``commands_subdir`` (defaults to ``"skills"``). Raises ``ValueError`` when ``config`` or ``folder`` is missing.

(self, project_root: Path)

Source from the content-addressed store, hash-verified

1298 return args
1299
1300 def skills_dest(self, project_root: Path) -> Path:
1301 """Return the absolute path to the skills output directory.
1302
1303 Derived from ``config["folder"]`` and the configured
1304 ``commands_subdir`` (defaults to ``"skills"``).
1305
1306 Raises ``ValueError`` when ``config`` or ``folder`` is missing.
1307 """
1308 if not self.config:
1309 raise ValueError(f"{type(self).__name__}.config is not set.")
1310 folder = self.config.get("folder")
1311 if not folder:
1312 raise ValueError(
1313 f"{type(self).__name__}.config is missing required 'folder' entry."
1314 )
1315 subdir = self.config.get("commands_subdir", "skills")
1316 return project_root / folder / subdir
1317
1318 def build_command_invocation(self, command_name: str, args: str = "") -> str:
1319 """Skills use ``/speckit-<stem>`` (hyphenated directory name)."""

Calls 1

getMethod · 0.45