google-gemini/gemini-cli
View on GitHub[Bug] Skills discovery fails when 'description' in SKILL.md frontmatter is a single line
Open
#25693 opened on Apr 20, 2026
area/extensionseffort/smallgood first issuehelp wantedkind/bugpriority/p2status/bot-triagedtype/bug
Description
title: "[Bug] Skills discovery fails when description in SKILL.md frontmatter is a single line"
labels: ["area/extensions", "status/need-triage"]
Description
The Gemini CLI skill discovery mechanism fails to recognize local skills in .agents/skills/ or .gemini/skills/ if the description field in the SKILL.md YAML frontmatter is written as a single line.
Changing the description to a multi-line block (using the YAML > operator) immediately resolves the issue and allows the skill to be discovered by /skills list.
Steps to Reproduce
- Create a folder
.agents/skills/test-skill/. - Create a
SKILL.mdwith the following content:--- name: test-skill description: A single line description that is relatively long and contains some punctuation. --- # Test Skill Content here. - Run
gemini chatand type/skills list. - Actual Result:
test-skillis missing from the list. - Modify
SKILL.mdto use multi-line YAML scalar:--- name: test-skill description: > A multi-line description that is relatively long and contains some punctuation. --- # Test Skill Content here. - Run
/skills listagain. - Expected Result:
test-skillshould be visible in both cases. Currently, it only works with the multi-line format.
Environment
- OS: Windows 11 (PowerShell 7)
- Gemini CLI Version: 0.38.2
- Runtime: Node.js / Bun
Additional Context
This bug significantly impacts the developer experience as many users intuitively write short, single-line descriptions. The workaround (using >) suggests a specific issue in how the CLI parses YAML frontmatter in SKILL.md files during the initial scanning phase.