Skip to content

Commit 3e1546d

Browse files
fix(tooling): protect Codex skill frontmatter from mdformat
Exclude Codex SKILL.md files because mdformat rewrites their YAML frontmatter and breaks skill discovery. Refs: #1312 Co-Authored-By: Claude <claude@anthropic.com> Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
1 parent cf4dc21 commit 3e1546d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ repos:
3434
rev: 1.0.0
3535
hooks:
3636
- id: mdformat
37+
# mdformat treats Agent Skill YAML frontmatter as Markdown content.
38+
exclude: ^\.agents/skills/.*/SKILL\.md$
3739
additional_dependencies:
3840
- mdformat-gfm # GitHub Flavored Markdown support (tables, autolinks, etc.)
3941
- mdformat-simple-breaks # Use --- for thematic breaks instead of 70 underscores

0 commit comments

Comments
 (0)