Forumics logo Forumics
Issue 01

Back to issue

All Claude Code known issues

CLAIM C137 Supported 2026-11-15

GitHub issue #47482 in anthropics/claude-code, opened 2026-04-13 by alberduris, records a report that output styles with YAML frontmatter are recognized by Claude Code, shown in the statusline and /config, but the content is not injected into the system prompt, while removing the frontmatter entirely fixes the issue; the reporter found the frontmatter parser appears to recognize and strip the YAML block but fails to inject the remaining content into the system prompt, the style name is correctly extracted yet the instructions after the --- delimiter are lost, and the reporter notes this contradicts the official documentation stating custom output styles are Markdown files with frontmatter and the text that will be added to the system prompt; the report was filed against Claude Code 2.1.104 on macOS.

Verbatim Excerpts from Cited Records
“Output styles with YAML frontmatter are recognized by Claude Code (shown in statusline and `/config`) but **the content is NOT injected into the system prompt**.”
— alberduris · anthropics/claude-code (issue 47482 opening body, Bug Description section) · 2026-04-13T15:52:20Z ·GitHub Issue ↗
“Removing the frontmatter entirely fixes the issue.”
— alberduris · anthropics/claude-code (issue 47482 opening body, Bug Description section) · 2026-04-13T15:52:20Z ·GitHub Issue ↗
“The frontmatter parser appears to recognize and strip the YAML block, but fails to inject the remaining content into the system prompt.”
— alberduris · anthropics/claude-code (issue 47482 opening body, Root Cause section) · 2026-04-13T15:52:20Z ·GitHub Issue ↗
“The style name is correctly extracted (visible in statusline), but the actual instructions after the `---` delimiter are lost.”
— alberduris · anthropics/claude-code (issue 47482 opening body, Root Cause section) · 2026-04-13T15:52:20Z ·GitHub Issue ↗
Counter-record: Issue closed 2026-09-13 by github-actions[bot] for inactivity ("Closing for now — inactive for too long"); marcindulak (2026-09-14) said it was incorrectly closed by the bot despite having reproduction steps and a Claude Code version, tracking the bot behavior in #87647; github-actions[bot] locked the issue 2026-11-14 after 7 days without activity. The closure records inactivity, not a fix or a refutation of the original report. 41 comments were read. alberduris retested and confirmed the bug present across v2.1.107 through v2.1.205, about 50 releases, and supplied a case-only reproduction on 2026-07-09: name CcBugCheck with filename ccbugcheck.md does not inject, while name ccbugcheck does. dcrn (2026-05-28) found that using the exact same name as the filename makes it work, for example setting name: canary instead of name: Canary. alberduris (2026-06-04) confirmed this as the root cause: the loader matches the frontmatter name against the filename case-sensitively and silently drops the body on mismatch. justin-zeno (2026-06-02) confirmed the same and dcrn's finding. Maintainer bcherny (2026-08-16) re-ran the exact steps on 2.1.233 and confirmed it is a name mismatch, not a lost frontmatter body: the outputStyle setting must equal the style's name, the file name only becomes the name when the frontmatter has no name field, and Claude Code silently falls back to the default style; the team agreed this is confusing, is considering surfacing a warning when outputStyle does not resolve to a known style, and possibly matching names case-insensitively or by file name as a fallback. No fix release and no retraction of the original report appear in the surveyed thread. The claim documents only the original report, not a verified current state. Falsification probe: If GitHub issue #47482 is deleted without archive, if the author edits the opening body so the quoted sentences no longer match verbatim, or if the author posts a retraction of the report, this claim drops to Withdrawn. Audit verification: Verified 100% continuous verbatim substring against official GitHub REST API by scripts/verify_claim_verbatim.py.