mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
On main these two readers scanned SKILL.md line by line and returned at the line they were looking for, keeping nothing. After the refactor they first collected the whole frontmatter block, so a large block cost its full size on every call even when name came first, and an unclosed one cost the rest of the file. Sync, target naming and listing call them once per skill or agent. Reported by Codex review on #457. The per-line rule (which line opens and which closes the block) moves into blockWalk, which locateFrontmatter and the new scanLenientBlock both use, so the streaming path and the byte locator cannot drift. ParseSkillName and ParseFrontmatterField stop at their key again; the list and fields readers collect the block as they always did. Results are unchanged for every entry point. Refs #449