Repository navigation
[SSR Agent] Issue Fix (25693): Robust skill frontmatter parsing with simple fallback string coercion - #7
Closed
joneba-google wants to merge 1 commit into
Closed
[SSR Agent] Issue Fix (25693): Robust skill frontmatter parsing with simple fallback string coercion#7joneba-google wants to merge 1 commit into
joneba-google wants to merge 1 commit into
Conversation
joneba-google
force-pushed
the
ssr-agent-25693
branch
4 times, most recently
from
July 15, 2026 20:38
d6dbe90 to
5ad0841
Compare
…d description parsing
joneba-google
force-pushed
the
ssr-agent-25693
branch
from
July 15, 2026 20:40
5ad0841 to
4f9e253
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context & Problem
The Gemini CLI skill discovery mechanism failed to recognize local skills when skill metadata in the
SKILL.mdfrontmatter had variations like UTF-8 BOM, trailing spaces, spaces around colons, case-insensitive keys, or non-string YAML values like numbers/booleans.Detailed Changes
FRONTMATTER_REGEXin skillLoader.ts to match optional UTF-8 BOM (\uFEFF?) and allow trailing horizontal whitespace after the triple-dash markers.parseFrontmatterto fall back to the simple key-value parser when frontmatter is parsed as non-string YAML values (like numbers or booleans), ensuring they are parsed as strings instead of failing.parseSimpleFrontmatterto perform case-insensitive key matches and accept optional spacing around the colon.name).Verification
Passed existing and newly added Vitest unit tests covering UTF-8 BOM, trailing spaces, case insensitivity, escaped keys, simple fallback coercion for numbers/booleans, and multi-line descriptions.