Fix YAML formatting in SKILL.md files and Jinja templates#175
Merged
Conversation
The Jinja template for generating SKILL.md files was using {%- tags
that stripped necessary newlines in the YAML frontmatter. This caused
fields like `user-invocable` and `hooks` to be concatenated onto single
lines instead of being properly formatted.
Changes:
- Remove `-` from `{%- if not exposed %}` to preserve newline after description
- Remove `-` from `{%- endif %}` to preserve newline after user-invocable
- Remove `-` from comment start `{#-` to preserve newline before hooks section
- Remove `-` from for loops in hooks section to preserve proper YAML structure
https://claude.ai/code/session_01DmwZm5TgeeoR4sxp7GBtBE
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.
Summary
This PR fixes YAML formatting issues across skill definition files and Jinja templates to ensure proper parsing and readability.
Key Changes
SKILL.md files: Fixed malformed YAML frontmatter by adding proper line breaks between metadata fields
descriptionanduser-invocablefields onto distinct linesadd_platform.implementwhich had severely malformed YAML with hooks configuration on single lines.claude/skills/Jinja template: Improved whitespace control in
skill-job-step.md.jinja{%- ifto{% iffor better readability where appropriate{#-to{#for consistencyImplementation Details
The changes ensure that:
add_platform.implement) is correctly structured with proper nestinghttps://claude.ai/code/session_01DmwZm5TgeeoR4sxp7GBtBE