Skip to content

Allow sync-agent-skills.mjs to match Windows line ends#5477

Merged
clockwork-labs-bot merged 1 commit into
masterfrom
rekhoff/agent-docs-windows-line-ends
Jul 3, 2026
Merged

Allow sync-agent-skills.mjs to match Windows line ends#5477
clockwork-labs-bot merged 1 commit into
masterfrom
rekhoff/agent-docs-windows-line-ends

Conversation

@rekhoff

@rekhoff rekhoff commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Description of Changes

The readFrontmatter regex in docs/scripts/sync-agent-skills.mjs uses \n to match line endings, which fails on Windows where files have CRLF (\r\n) endings. This causes pnpm run build to fail with:

Error: skills\cli\SKILL.md is missing YAML frontmatter

Fix: change \n\r?\n in the frontmatter regex and use /\r?\n/ for line splitting so the script works on both Unix and Windows.

API and ABI breaking changes

No API or ABI changes

Expected complexity level and risk

1 - Trivial

Testing

  • When used along side bump-versions, this prevents Windows from having the outlined issue.

@rekhoff rekhoff requested a review from bfops July 2, 2026 21:58
@rekhoff rekhoff self-assigned this Jul 2, 2026
@rekhoff rekhoff marked this pull request as ready for review July 2, 2026 21:58

@bfops bfops left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

seems reasonable to me!

@clockwork-labs-bot clockwork-labs-bot added this pull request to the merge queue Jul 3, 2026
Merged via the queue into master with commit 16aadbf Jul 3, 2026
37 checks passed
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.

3 participants