split-into-references
Use when
Use when skill-check reports body.max_lines and you need to modularize a long SKILL.md into maintainable references/*.md docs after running split-body.
Workflow
- Run preview first:
npx skill-check split-body <skill-dir-or-file>
- Apply deterministic split:
npx skill-check split-body <skill-dir-or-file> --write
- Edit generated references docs to improve readability:
- tighten headings so each file has one clear purpose
- add a 1-3 line summary at the top of each references file
- remove duplicated steps across references files
- Keep
SKILL.mdconcise:- preserve "Use when", constraints, and expected outcomes
- keep
## Referenceslinks current and descriptive
- Validate:
npx skill-check check <skill-dir-or-file> --no-security-scan
Quality checklist
- The main
SKILL.mdstays short and scannable. - Each references file is focused and linkable.
- Links under
## Referencesresolve and match file names. - No critical instruction is lost during extraction.
Before/After pattern
Before:
- one very long
SKILL.mdcontaining all operational details.
After:
- concise
SKILL.mdwith intent + constraints +## References - multiple
references/*.mdfiles for detailed procedures.