Skip to content

Fix null bytes in style.md skill rule#727

Merged
pushpak1300 merged 1 commit intolaravel:mainfrom
reed1:fix/null-bytes-in-style-skill
Mar 28, 2026
Merged

Fix null bytes in style.md skill rule#727
pushpak1300 merged 1 commit intolaravel:mainfrom
reed1:fix/null-bytes-in-style-skill

Conversation

@reed1
Copy link
Copy Markdown
Contributor

@reed1 reed1 commented Mar 27, 2026

Summary

  • The laravel-best-practices skill rule file style.md contains two null bytes (\x00) where \U in App\Models\User should be, causing git and other tools to detect the file as binary
  • This was introduced in Add laravel-best-practices skill #628 — the file shows as Bin 0 -> 4444 bytes in that commit's diff

Fix

Replace the two null bytes with the correct \U character so the string reads App\Models\User as intended (lines 47 and 52).

Verification

# Before fix
$ python3 -c "print(open('.ai/laravel/skill/laravel-best-practices/rules/style.md','rb').read().count(b'\x00'))"
2

# After fix
$ python3 -c "print(open('.ai/laravel/skill/laravel-best-practices/rules/style.md','rb').read().count(b'\x00'))"
0

🤖 Generated with Claude Code

The style.md file contained two null bytes (`\x00`) where `\U` in
`App\Models\User` should have been. This caused git and other tools
to detect the file as binary.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pushpak1300 pushpak1300 merged commit 61d745a into laravel:main Mar 28, 2026
23 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.

2 participants