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

Function dump_frontmatter

src/specify_cli/_utils.py:58–65  ·  view source on GitHub ↗

Serialize skill/command frontmatter to a YAML string. Centralizes the dump options used for SKILL.md frontmatter: ``allow_unicode`` preserves Unicode descriptions and ``sort_keys=False`` keeps key order, so no call site can silently drop either.

(data: dict[str, Any])

Source from the content-addressed store, hash-verified

56
57
58def dump_frontmatter(data: dict[str, Any]) -> str:
59 """Serialize skill/command frontmatter to a YAML string.
60
61 Centralizes the dump options used for SKILL.md frontmatter: ``allow_unicode``
62 preserves Unicode descriptions and ``sort_keys=False`` keeps key order, so no
63 call site can silently drop either.
64 """
65 return yaml.safe_dump(data, sort_keys=False, allow_unicode=True).strip()
66
67
68def run_command(

Callers 6

_reconcile_skillsMethod · 0.85
_register_skillsMethod · 0.85
_unregister_skillsMethod · 0.85
resolve_contentMethod · 0.85
_render_skillMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected