Skip to content

fix(tooling): protect Codex skill frontmatter from mdformat - #1313

Merged
mergify[bot] merged 1 commit into
python-wheel-build:mainfrom
LalatenduMohanty:fix/mdformat-skill-frontmatter
Sep 3, 2026
Merged

fix(tooling): protect Codex skill frontmatter from mdformat#1313
mergify[bot] merged 1 commit into
python-wheel-build:mainfrom
LalatenduMohanty:fix/mdformat-skill-frontmatter

Conversation

@LalatenduMohanty

@LalatenduMohanty LalatenduMohanty commented Sep 2, 2026

Copy link
Copy Markdown
Member

Exclude Codex SKILL.md files because mdformat rewrites their YAML frontmatter and breaks skill discovery.

Closes: #1312

Exclude Codex SKILL.md files because mdformat rewrites their YAML frontmatter and breaks skill discovery.

Refs: python-wheel-build#1312

Co-Authored-By: Claude <claude@anthropic.com>
Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
@LalatenduMohanty
LalatenduMohanty requested a review from a team as a code owner September 2, 2026 22:19
@coderabbitai

coderabbitai Bot commented Sep 2, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: ee20d693-ff41-4f46-8b86-706036ad493e

📥 Commits

Reviewing files that changed from the base of the PR and between cf4dc21 and 3e1546d.

📒 Files selected for processing (1)
  • .pre-commit-config.yaml

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The mdformat pre-commit hook now excludes Agent Skill Markdown files matching ^\.agents/skills/.*/SKILL\.md$. This prevents the formatter from processing their YAML frontmatter.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 3e154

This narrowly scoped change prevents formatting of Codex skill frontmatter so skill discovery is preserved; no actionable merge-blocking risk remains after normal checks and review.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The description clearly explains that the change excludes Codex SKILL.md files from mdformat because mdformat rewrites YAML frontmatter and breaks skill discovery.
Title check ✅ Passed The title clearly and concisely describes the main tooling fix: protecting Codex skill frontmatter from mdformat.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@rd4398 rd4398 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mergify
mergify Bot merged commit 4eeb0f4 into python-wheel-build:main Sep 3, 2026
39 checks passed
@mergify

mergify Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exclude Codex SKILL.md files from mdformat

2 participants