From 3e1546df86e125485b92be6d78ed43d2f998ed46 Mon Sep 17 00:00:00 2001 From: Lalatendu Mohanty Date: Wed, 2 Sep 2026 18:17:11 -0400 Subject: [PATCH] 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 Signed-off-by: Lalatendu Mohanty --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 96cd917a8..ae94642ad 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,6 +34,8 @@ repos: rev: 1.0.0 hooks: - id: mdformat + # mdformat treats Agent Skill YAML frontmatter as Markdown content. + exclude: ^\.agents/skills/.*/SKILL\.md$ additional_dependencies: - mdformat-gfm # GitHub Flavored Markdown support (tables, autolinks, etc.) - mdformat-simple-breaks # Use --- for thematic breaks instead of 70 underscores