Skip to content

Codex truncates skill descriptions at ~670 chars — every routing tail is invisible there #825

Closed

Description

@athvin

Found while bridging the skills to Codex (#823).

Codex truncates every skill description at ~670 characters, cut at a word
boundary, against the 1,024-character cap scripts/skills-check.sh enforces.
Measured against Codex 0.167.0 with codex debug prompt-input, which renders
exactly what the model was shown:

listed length authored length skills
668–672 680–996 27 of 28

The one unaffected skill is the one that was already short.

What gets cut is the routing tail. This repo's authoring standard puts
negative routing at the END of a description — "For X see other-skill" — and
.claude/skills/skill-writer/references/agent-skills.md calls that clause the
thing that stops a large collection from mis-selecting. In Codex, none of those
clauses exist at selection time. er-engine-ops loses 328 characters,
er-server-control-plane 311, security 316.

Nothing in this repo can raise Codex's cap, so the question is what to do about
the field we control:

  1. Front-load the trigger vocabulary and the disambiguating clause into the
    first ~650 characters, keeping the tail as reinforcement rather than as the
    only statement of it. 27 descriptions, each a shared append target several
    audits already contend over, so this is not a sweep to do casually — see the
    memory note on concurrent audits conflicting on routing tails.
  2. Measure first: pose the adjacent-skill eval scenarios to Codex and see
    whether selection actually misfires there. The cap is established; the
    consequence is not. An eval that shows correct selection despite the
    truncation would retire this ticket.
  3. Add the truncation point to the description-budget generator, so an author
    can see where Codex stops reading.

(2) before (1) — the standard's own rule is that step 10 is what measures a
skill and steps 1–9 only make it well-formed.

Acceptance

The Codex-side selection behaviour is measured for at least three adjacent
pairs, and either the ticket closes with evidence that the tail is not
load-bearing there, or the descriptions are restructured with that evidence
naming which ones needed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ci-backlog

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions