Back to all rules / Format and vendor rules
frontmatter-bom
A byte order mark comes before the frontmatter.
Source: RFC 3629: UTF-8 (rfc-editor.org), read 14 October 2026.
On GitHub: the rule doc and the tests.
Jump to another rule89
What it catches#
A byte order mark comes before the frontmatter.
The three bytes EF BB BF (a UTF-8 byte order mark) before the opening ---. Windows Notepad, PowerShell's Out-File and some IDE exports add it. Editors hide it, so the file looks right.
Why it matters#
Some parsers do not skip a UTF-8 BOM, so the opening --- is not recognised and the frontmatter is read as text.
Bad example#
$ head -c 8 SKILL.md | xxd
00000000: efbb bf2d 2d2d 0a6e ...---.n
The file starts with the BOM, then ---. A parser that compares the first three characters to --- sees the BOM instead and reads the whole frontmatter as text.
Good example#
$ head -c 8 SKILL.md | xxd
00000000: 2d2d 2d0a 6e61 6d65 ---.name
How to fix#
Save the file as UTF-8 without BOM. In VS Code, click the encoding in the status bar, choose "Save with Encoding", then "UTF-8". On the command line: sed -i '1s/^\xEF\xBB\xBF//' SKILL.md (GNU sed) or tail -c +4 SKILL.md > tmp && mv tmp SKILL.md. To stop it coming back from PowerShell, write files with Set-Content -Encoding utf8NoBOM (PowerShell 7) rather than Out-File.
Suppress or configure#
For one finding, put a comment on the line above it. The reason after -- is optional but worth writing:
<!-- asitis-disable-next-line frontmatter-bom -- why this one is fine -->
For a whole file:
<!-- asitis-disable-file frontmatter-bom -- why this file is an exception -->
For every file, turn it off or change its severity in .asitisrc.json:
{ "rules": { "frontmatter-bom": "off" } }
A .asitisrc.json overrides entry limits a change to some paths, and a baseline (asitis lint --format json --write-baseline) accepts today's findings so only new ones fail the build.
Source#
RFC 3629: UTF-8, read on 14 October 2026.
See what an agent changed in your CLAUDE.md. Keep or revert each change.
The linter is free and needs no signup. I'm also building a desktop editor for the markdown your agents write and read. It shows what an agent changed since you last looked, lets you keep or revert each change, and never touches a line you didn't edit. No release date yet. One email to confirm, one when the paid beta opens, one when 1.0 ships. $29 once for a founding licence, with 24 months of updates.
Or add the linter to CI, no email needed.
Your address is stored with Cloudflare, which hosts this site. No IP address is kept. See the privacy policy.
Related guides
Run the rule
- In your browser, on one file
- In Claude Code, on the project
- In CI, on every pull request
This page is generated from the plugin's rule registry. Edit it on GitHub. False positive? Open an issue with the line it fired on.