Skip to content

# Bug: SKILL.md description exceeds Codex's 1024 character limit #263

Closed

Description

@coreline-ai

Bug: SKILL.md description exceeds Codex's 1024 character limit

Summary

gstack's main SKILL.md description is 1,602 characters, which exceeds Codex's 1,024 character limit for skill descriptions. This causes Codex to fail loading the skill:

ERROR: invalid description: exceeds maximum length of 1024 characters

Environment

  • gstack version: 1.1.0
  • Codex CLI: 0.101.0
  • File: SKILL.md (line 4-30)

Current State

description: |
  Fast headless browser for QA testing and site dogfooding. Navigate any URL, interact with
  elements, verify page state, diff before/after actions, take annotated screenshots, check
  responsive layouts, test forms and uploads, handle dialogs, and assert element states.
  ~100ms per command. Use when you need to test a feature, verify a deployment, dogfood a
  user flow, or file a bug with evidence.

  gstack also includes development workflow skills. When you notice the user is at
  these stages, suggest the appropriate skill:
  - Brainstorming a new idea → suggest /office-hours
  - Reviewing a plan (strategy) → suggest /plan-ceo-review
  - Reviewing a plan (architecture) → suggest /plan-eng-review
  - Reviewing a plan (design) → suggest /plan-design-review
  - Creating a design system → suggest /design-consultation
  - Debugging errors → suggest /investigate
  - Testing the app → suggest /qa
  - Code review before merge → suggest /review
  - Visual design audit → suggest /design-review
  - Ready to deploy / create PR → suggest /ship
  - Post-ship doc updates → suggest /document-release
  - Weekly retrospective → suggest /retro
  - Wanting a second opinion or adversarial code review → suggest /codex
  - Working with production or live systems → suggest /careful
  - Want to scope to edits one module/directory → suggest /freeze
  - Maximum safety mode (destructive warnings + edit restrictions) → suggest /guard
  - Removing edit restrictions → suggest /unfreeze
  - Upgrading gstack to latest version → suggest /gstack-upgrade

  If the user pushes back on skill suggestions ("stop suggesting things",
  "I don't need suggestions", "too aggressive"):
  1. Stop suggesting for the rest of this session
  2. Run: gstack-config set proactive false
  3. Say: "Got it — I'll stop suggesting skills. Just tell me to be proactive
     again if you change your mind."

  If the user says "be proactive again" or "turn on suggestions":
  1. Run: gstack-config set proactive true
  2. Say: "Proactive suggestions are back on."
Character count: 1,602 ❌ (exceeds limit by 56%)

Impact
❌ Codex cannot load gstack skill
❌ codex review fails when reviewing gstack code
❌ Codex integration (advertised in CHANGELOG) doesn't work
Suggested Fix
Option A: Condense description (recommended)

description: |
  Fast headless browser for QA testing and dev workflows. 20+ skills: /qa, /ship,
  /review, /investigate, /design-review, /office-hours, /plan-*-review, and more.
  ~100ms per command. Use for testing, verification, and development automation.
Character count: ~220 ✅

Option B: Move skill list to body
Keep description minimal, list skills in the main SKILL.md body content instead.

Additional Notes
The CHANGELOG mentions "Codex-adapted output" but the 1024 character limit wasn't considered
Adding a CI check for description length would prevent this in future
References
Codex CLI: https://github.com/openai/codex
gstack Codex support mentioned in CHANGELOG

Activity

  1. csbird commented on Mar 21, 2026

    @csbird

    having the same problem

  2. ToraHanaJD commented on Mar 21, 2026

    @ToraHanaJD

    Same problem too

  3. BlingDan commented on Mar 21, 2026

    @BlingDan

    same problem

  4. eagle666 commented on Mar 21, 2026

    @eagle666

    same problem

  5. ziyangliu-666 commented on Mar 22, 2026

    @ziyangliu-666

    Confirmed this is still reproducible with the current Codex install path as of 2026-03-22.

    Environment:

    • OS: Linux
    • Codex CLI: 0.116.0
    • Install method: git clone https://github.com/garrytan/gstack.git ~/.codex/skills/gstack && cd ~/.codex/skills/gstack && ./setup --host codex

    After restarting Codex, I got:

    ⚠ Skipped loading 1 skill(s) due to invalid SKILL.md files.
    ⚠ /home/rufus/.codex/skills/gstack/SKILL.md: invalid description: exceeds maximum length of 1024 characters
    

    A few useful details from this repro:

    • The gstack-* subskills were linked correctly by ./setup --host codex.
    • The failure is specifically the root ~/.codex/skills/gstack/SKILL.md.
    • On this machine, the root skill description was 1972 characters before patching.
    • Shortening the frontmatter description in both SKILL.md and SKILL.md.tmpl to under 1024 characters resolved the warning locally.

    So this looks like an installer/package compatibility issue rather than a bad local setup.

    Suggested fix:

    1. Keep the frontmatter description short enough for Codex.
    2. Move the longer routing / suggestion guidance into the body of SKILL.md.
    3. Add a validation step in generation/CI so Codex-targeted skill metadata cannot exceed the loader limit.

    This would also prevent users from hitting the warning immediately after following the documented Codex install flow.

  6. garrytan commented on Mar 23, 2026

    @garrytan
    Owner

    Fixed in #346 (Wave 2 Codex Compatibility).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions