Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: skills not detected on Windows due to CRLF line endings#369

Merged
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
fix/issue-361-windows-crlfbreaking-brake/cc-wf-studio:fix/issue-361-windows-crlfCopy head branch name to clipboard
Jan 5, 2026
Merged

fix: skills not detected on Windows due to CRLF line endings#369
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
fix/issue-361-windows-crlfbreaking-brake/cc-wf-studio:fix/issue-361-windows-crlfCopy head branch name to clipboard

Conversation

@breaking-brake
Copy link
Copy Markdown
Owner

Problem

Skills located in ~/.claude/skills/ were not being detected on Windows.

Root Cause

The YAML frontmatter parser regex only supported LF (\n) line endings:

const frontmatterRegex = /^---\n([\s\S]*?)\n---/;

On Windows, SKILL.md files may use CRLF (\r\n) line endings, causing the regex to fail and return null, which resulted in skills being silently skipped.

Solution

Updated the regex to support both LF and CRLF line endings:

const frontmatterRegex = /^---\r?\n([\s\S]*?)\r?\n---/;

Testing

  • Verified on Windows: Skills now detected correctly
  • Verified on Mac: No regression, skills still work

Impact

  • Fixes skill detection for all scopes (user, project, plugin) on Windows
  • No breaking changes

Closes #361

- Updated frontmatter regex to support both LF and CRLF
- Fixes Issue #361
@breaking-brake breaking-brake merged commit f453576 into main Jan 5, 2026
3 checks passed
@breaking-brake breaking-brake mentioned this pull request Jan 5, 2026
braking-brake-semantic-release Bot pushed a commit that referenced this pull request Jan 5, 2026
## [3.12.3](v3.12.2...v3.12.3) (2026-01-05)

### Bug Fixes

* skills not detected on Windows due to CRLF line endings ([#369](#369)) ([f453576](f453576)), closes [#361](#361)
@braking-brake-semantic-release
Copy link
Copy Markdown

🎉 This PR is included in version 3.12.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@breaking-brake breaking-brake deleted the fix/issue-361-windows-crlf branch January 24, 2026 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Only loading two skills

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.