Repository navigation
docs(skill): trim agterm skill frontmatter to fit the listing cap - #528
Merged
Merged
Conversation
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.
There was a problem hiding this comment.
🟡 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
descriptionto fit the Agent Skills spec limit. - Replaced the long dotted command trigger enumeration in
when_to_usewith 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.zoomand every trigger after that point was dropped. Codex does not parsewhen_to_useat 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
descriptionfolded to 956 chars, down from 1396, under the 1024 limit in the Agent Skills specwhen_to_useis 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 andreference.mdown the catalogno behavior change and the
SKILL.mdbody 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.