fix: skill description not fully loaded from SKILL.md frontmatter#140
Open
1thanMoon wants to merge 1 commit intoshareAI-lab:mainfrom
Open
fix: skill description not fully loaded from SKILL.md frontmatter#1401thanMoon wants to merge 1 commit intoshareAI-lab:mainfrom
1thanMoon wants to merge 1 commit intoshareAI-lab:mainfrom
Conversation
_parse_frontmatter used manual line splitting which only handled simple key: value pairs. Multi-line block scalars (|) returned only '|' as the value, dropping all subsequent indented lines. Replace with yaml.safe_load() to correctly parse all YAML syntax. Add pyyaml>=6.0 to requirements.txt.
|
@1thanMoon is attempting to deploy a commit to the crazyboym's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
Problem
_parse_frontmattersplits lines manually and only readskey: valuepairs.When a skill's
SKILL.mduses YAML block scalars (|), the descriptionis parsed as
"|"— all indented continuation lines are silently dropped.Root Cause
Fix
Replace manual parsing with
yaml.safe_load(), which correctly handlesall standard YAML syntax including multi-line block scalars.
Test
Skills with
description: |now load their full description correctly.For example,
agent-builder's full description is now visible in the system promptinstead of a single
|character.