mirror of
https://github.com/magnus919/agent-skills.git
synced 2026-09-12 03:56:53 +03:00
Issue #382: the 500-line cap alone lets dense prose slip through, so bodies are now measured in characters (~4 chars/token proxy for the ~5,000-token budget) after stripping YAML frontmatter. Bodies over 20,000 characters hard-error with split-into-references remediation, mirroring the existing oversized-reference gate (#277). Adds ReferenceFileScan.oversized_skill_md_errors next to oversized_reference_errors, wired into the per-skill loop, with Minitest coverage: under-limit passes, over-limit fails with path and size, exactly-at-limit passes (strict >), huge-frontmatter/tiny-body passes, missing-frontmatter stays silent (reported elsewhere), and missing SKILL.md is ignored. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>