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])
| 56 | |
| 57 | |
| 58 | def 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 | |
| 68 | def run_command( |
no outgoing calls
no test coverage detected