ai-driven-development icon indicating copy to clipboard operation
ai-driven-development copied to clipboard

Skill size and structure against the authoring guidelines (one SKILL.md over 500 lines, 21 long references without a TOC)

Open kasparovabi opened this issue 1 month ago • 0 comments

Measured at abac3b3 against the skill authoring best practices. None of these stop a skill from loading. They are size and structure guidelines, and each costs context or read coverage once the skill triggers.

SKILL.md body over 500 lines (1)

skills/ubiquitous-language/SKILL.md is 563 lines after the frontmatter (591 in total). The guide recommends keeping the body under 500 lines and moving detail into reference files, since the whole body loads as soon as the skill triggers. The skill already has a references/ directory, so a section or two could move there.

Long reference files without a table of contents (21)

The guide asks for a table of contents at the top of reference files longer than 100 lines, so that a partial read (for example head -100) still shows everything the file covers. 21 files are over 100 lines with none. The five largest:

File Lines
skills/prompt-engineering/references/prompting-techniques.md 1056
skills/prompt-engineering/references/gpt5-family-prompting.md 937
skills/prompt-engineering/references/claude-family-prompting.md 862
skills/prompt-engineering/references/prompting-introduction.md 602
skills/ubiquitous-language/references/generating-thesaurus.md 538

14 of the 21 are in skills/prompt-engineering/references/. The others are in ubiquitous-language (3), bug-fix-protocol, agentic-readiness, skills-management and hooks-management (1 each).

Dated instructions (2)

skills/settings-management/SKILL.md:138 (# As of April 2026; gpt-5.4 is a valid fallback) and skills/hooks-management/SKILL.md:297 ("As of June 2026, Codex hooks are enabled by default") will go stale. The guide suggests keeping current behaviour in the main text and moving older behaviour into an "old patterns" section.

References two levels deep (11)

Each skills/fpf-problem-solving/sections/*/_index.md links on to its section files, so those files sit two hops from SKILL.md. The guide says to keep references one level deep, because Claude may only partly read a file it reaches through another reference. This looks like a deliberate index layout for a large spec, so it may be fine as it is. I am listing it so the count is complete.

Happy to send a PR for the tables of contents if that would help. Otherwise feel free to close this.

kasparovabi avatar Oct 23 '26 12:10 kasparovabi