Skip to content

docs(skill): trim agterm skill frontmatter to fit the listing cap - #528

Merged
umputun merged 1 commit into
masterfrom
skill-frontmatter-trim
Sep 2, 2026
Merged

umputun merged 1 commit into
masterfrom
skill-frontmatter-trim

Conversation

@umputun

@umputun umputun commented Sep 2, 2026

Copy link
Copy Markdown
Owner

half of the skill frontmatter never reached any agent. Claude Code caps a skill's listing entry at 1536 chars and the agterm entry was over 3000, so it was cut mid-list at surface.zoom and every trigger after that point was dropped. Codex does not parse when_to_use at all, so that whole key was invisible there.

it kept growing anyway: 2403 bytes at v0.20.0, 3219 now, because every control API change added its command name to the dotted trigger list.

what changed

  • description folded to 956 chars, down from 1396, under the 1024 limit in the Agent Skills spec
  • when_to_use is now 305 chars of the plain phrases a user inside a session types, split the pane, close the overlay, the keymap editor will not open. The dotted command enumeration is gone, the body and reference.md own the catalog
  • combined listing text 3088 -> 1264 chars, so nothing truncates

no behavior change and the SKILL.md body is untouched. Per-request cost was ~380 tokens sitting in the cached prefix, so the win here is in what the model actually reads, not the token count.

Claude Code caps a skill's listing entry at 1536 chars and Codex does not
parse when_to_use at all, so half the frontmatter never reached either
agent - the entry was cut mid-list at surface.zoom. Fold the capability
list into a 956-char description and replace the dotted command
enumeration with the phrases a user inside a session actually types.
Copilot AI lite review requested due to automatic review settings September 2, 2026 08:58
@umputun
umputun merged commit e21bb0f into master Sep 2, 2026
7 checks passed
@umputun
umputun deleted the skill-frontmatter-trim branch September 2, 2026 08:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new when_to_use drops common in-session markers like AGTERM_SOCKET, which can affect skill routing and conflicts with the “no behavior change” claim.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Trims the agterm agent skill frontmatter so the full listing entry fits within Claude Code’s 1536-character cap (and keeps description under the 1024-character limit), improving what the model actually sees during skill selection without touching the skill body content.

Changes:

  • Shortened the frontmatter description to fit the Agent Skills spec limit.
  • Replaced the long dotted command trigger enumeration in when_to_use with shorter, plain-language trigger phrases.
File summaries
File Description
plugins/agterm/skills/agterm/SKILL.md Shrinks skill frontmatter (description, when_to_use) to avoid listing truncation while keeping the main skill documentation intact.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

agterm version, which agterm is running, agterm version check. Also troubleshoot agterm,
keymap editor won't open, custom action / custom command not working, agterm logs, file an agterm
bug, report an agterm issue, open an agterm discussion / feature request.
Trigger on: agterm, agtermctl, AGTERM_SESSION_ID, and, from inside a session, plain requests such as
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.

2 participants