Skip to content

fix(skill): trim description to <1024 chars for Codex/Copilot (#12) - #13

Merged
aldefy merged 2 commits into
masterfrom
fix/skill-description-length
May 3, 2026
Merged

fix(skill): trim description to <1024 chars for Codex/Copilot (#12)#13
aldefy merged 2 commits into
masterfrom
fix/skill-description-length

Conversation

@aldefy

@aldefy aldefy commented May 3, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes #12. The description: frontmatter in skills/compose-expert/SKILL.md was 1728 chars. Codex CLI and Copilot CLI both enforce a hard 1024-char cap on that field and reject the manifest:

invalid description: exceeds maximum length of 1024 characters

Claude Code does not enforce this cap, which is why it shipped green for us but broke for downstream Codex / Copilot installs (also confirmed by @HumboShot in the issue thread).

What changed

  • Trimmed description: to a focused 843-char pitch covering what + platforms + modes (Compose, CMP, TV, Paging 3, navigation, Review Mode, session_start auto-detection).
  • Preserved the trigger surface in a new ## When this skill applies section in the SKILL.md body. Body content is not subject to the 1024 cap; Claude reads it after the skill loads, so the keyword list (Compose APIs, CMP symbols, TV phrases, Paging 3, design-system phrasing, casual phrasings, Review Mode triggers, session_start) stays available for downstream context.
  • Added scripts/check-description-length.sh — regression guard that asserts the field stays ≤ 1024 chars.
  • Wired the new check into both workflows.github/workflows/ci.yml (every PR) and .github/workflows/release.yml (every tag push) — so a future regression fails CI loudly instead of shipping green on Claude Code and breaking Codex / Copilot installs.
  • Bumped to 2.3.1 with CHANGELOG entry.

Local validation

$ bash scripts/check-versions.sh v2.3.1
OK: versions aligned at 2.3.1
$ bash scripts/validate-plugin-manifest.sh
OK: plugin manifest valid (.claude-plugin/plugin.json)
$ bash scripts/check-description-length.sh
OK: description is 843 chars (limit 1024)

Test plan

  • CI passes (manifest validator + new description-length check + version-consistency tests + manifest schema BATS)
  • After merge + tag v2.3.1, release workflow publishes the GH Release
  • Codex CLI install of aldefy/compose-skill no longer errors with invalid description
  • Copilot CLI install of aldefy/compose-skill no longer errors with the same message
  • Claude Code: /plugin update compose-expert picks up 2.3.1 and the skill still auto-loads on Compose-related prompts

Closes #12

aldefy added 2 commits May 3, 2026 15:23
The SKILL.md frontmatter description: field was 1728 chars. Codex CLI and
Copilot CLI both enforce a 1024-char hard cap on it and reject the manifest
with 'invalid description: exceeds maximum length of 1024 characters'.
Claude Code does not enforce the cap, which is why it shipped green for us
but broke for downstream installs.

- Trim description: to a focused 843-char pitch covering what + platforms +
  modes (Compose, CMP, TV, Paging 3, navigation, Review Mode, session_start)
- Move the cut trigger keywords into a new ## When this skill applies
  section in the SKILL.md body. Body content is not subject to the 1024 cap;
  Claude reads it after the skill loads, so the trigger surface stays
  available for downstream context.
- Add scripts/check-description-length.sh as a regression guard, wired into
  ci.yml (every PR) and release.yml (every tag push).
- Bump to 2.3.1 with CHANGELOG entry.

Closes #12
…rot at every release

The first bats test was hardcoded to v2.1.2 and started failing on master
when v2.3.0 shipped — the two failing master CI runs after v2.3.0 confirm.
Read the current version from plugin.json in setup() so the tests verify
the script's logic, not a fixed version string.
@aldefy
aldefy merged commit 6c05a4d into master May 3, 2026
1 check passed
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.

SKILL.md - Codex Character Length Limit

1 participant