Index of every page on this site: llms.txt
All skills
thedaviddias avatar

/split-into-references

@923aaee
Run it yourself

Linter for agent skill files

  • 1 file
  • 1.3 KB
  • Updated 9 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/thedaviddias/skill-check/split-into-references

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈13 tokens for metadata: the name and description. ≈326 when used: this file.

SKILL.md has missing or invalid fields
  • The name in the SKILL.md header is missing or is not text.
  • The description in the SKILL.md header is missing or is not text.
Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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

  1. Run preview first:
    • npx skill-check split-body <skill-dir-or-file>
  2. Apply deterministic split:
    • npx skill-check split-body <skill-dir-or-file> --write
  3. 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
  4. Keep SKILL.md concise:
    • preserve "Use when", constraints, and expected outcomes
    • keep ## References links current and descriptive
  5. Validate:
    • npx skill-check check <skill-dir-or-file> --no-security-scan

Quality checklist

  • The main SKILL.md stays short and scannable.
  • Each references file is focused and linkable.
  • Links under ## References resolve and match file names.
  • No critical instruction is lost during extraction.

Before/After pattern

Before:

  • one very long SKILL.md containing all operational details.

After:

  • concise SKILL.md with intent + constraints + ## References
  • multiple references/*.md files for detailed procedures.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 923aaee. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Dormantupdated 9 months ago

README badge

README badge for thedaviddias/skill-check/split-into-references