Read SKILL.md files with Windows line endings in Elffuss Code #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
parseSkillin web/js/skills.js looks for front matter with^---\n. A SKILL.md saved with\r\nline endings has none:parseSkill("---\r\nname: demo\r\ndescription: x\r\n---\r\nBody")returns the fallback nameskill, an empty description and the whole file, front matter included, as content. Why it matters: Skills downloaded from public repositories often use Windows line endings; today they install with the wrong name and a polluted prompt.Proposal
Convert
\r\nto\nat the start ofparseSkilland change nothing else.Acceptance criteria
parseSkill("---\r\nname: demo\r\ndescription: x\r\n---\r\nBody")returns{ name: "demo", description: "x", content: "Body" }, and still returns{ name: "fallback", description: "", content: "Body only" }forparseSkill("Body only", "fallback").Files
web/js/skills.jsT2T-Issue: 0x33958ef2cc4d93a93649833be3a29f2b76bbd4080db691cff2473389671a252e
Number: 11
Kind: bug
Origin: imported
Proposer: 0x08809b42d05ae9526f4aa4c9670ce168aac68919
Ledger: elffuss/ledger, event 516