Skip to content

feat(api): raise skill description cap to 1536 + richer manual description#1190

Merged
chronoai-shining merged 3 commits into
developfrom
feat/raise-skill-description-cap
Jul 1, 2026
Merged

feat(api): raise skill description cap to 1536 + richer manual description#1190
chronoai-shining merged 3 commits into
developfrom
feat/raise-skill-description-cap

Conversation

@chronoai-shining

Copy link
Copy Markdown
Collaborator

Summary

Raises the skill frontmatter description cap from 1024 → 1536 chars — aligning Ornn with Claude Code's skill-listing truncation limit (skillListingMaxDescChars, default 1536) — and uses that budget for a richer, trigger-oriented ornn-agent-manual-cli description (v1.5).

Why

Claude Code routes to a skill by matching its description, truncating the combined description + when_to_use at 1536. Our 1024 cap meant a description rich enough to use that full budget couldn't validate — you had to smuggle it past with skip_validation, which also downgrades all frontmatter checks to best-effort. Raising the cap lets a rich description validate normally.

Changes

Verification

  • ornn-api schema + format tests: 26 pass. ornn-web schema test: 9 pass. Typecheck clean. Lint 0 errors.
  • Ran the API's own yaml.parse + validateSkillFrontmatter on the new SKILL.md: ✓ parse, ✓ validate (len 1472).

Closes #1189. Follow-up to #1180; hardens against #1185.

… Code)

Claude Code truncates the combined `description` (+ optional `when_to_use`)
at 1536 chars when deciding whether to auto-invoke a skill (the
`skillListingMaxDescChars` default). Our schema capped `description` at
1024, so a description rich enough to use Claude Code's full routing budget
could not validate — the only way to ship one was `skip_validation`, which
also downgrades every other frontmatter check to best-effort.

Raise the cap to 1536 in the api schema (new `SKILL_DESCRIPTION_MAX`
constant), the ornn-web mirror schema, and the format-rules text, so a
richer description validates normally. Add a boundary test (1536 passes,
1537 fails). Skillset `description` caps are intentionally left at 1024 —
different field, different surface.

Part of #1180.
With the cap raised to 1536 (prior commit), expand the description to use
Claude Code's full routing budget: enumerate the skill triggers (search /
pull / run / build / publish / visibility / audit / deprecate / diff /
analytics / service-bind / GitHub sync / dist-tags / transfer) AND the
skillset triggers (bundle / create / publish / closure / plugin-export /
transfer / derived-visibility), plus natural-language phrases. 1472 chars,
under the 1536 cap with margin.

Double-quoted the YAML value so an embedded colon can never break the
frontmatter parse again (the v1.4 regression, #1185). Verified with the
API's yaml.parse + validateSkillFrontmatter. Bump 1.4 → 1.5.

Part of #1180.
@chronoai-shining chronoai-shining merged commit 181e8ae into develop Jul 1, 2026
17 checks passed
@chronoai-shining chronoai-shining deleted the feat/raise-skill-description-cap branch July 1, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Raise skill description cap to 1536 + richer ornn-agent-manual-cli description

1 participant