GeezerVison is showing github.com — tui: sort skills alphabetically in /skills, @ autocomplete, and /api/skill · Issue #66596 · anomalyco/opencode
tui: sort skills alphabetically in /skills, @ autocomplete, and /api/skill #66596DescriptionSummary
Skills in the TUI (/skills / prompt.skills selector and @ mention autocomplete) and GET /api/skill are listed in unsorted registration and filesystem-scan order rather than alphabetically, making large skill sets (especially plugin-provided ones) hard to scan.
Environment
- opencode version: 2.4.1
- OS: Darwin 25.6.0 (darwin arm64)
- Terminal: TERM_PROGRAM=ghostty, TERM=xterm-256color, COLORTERM=truecolor
- Shell: /bin/zsh
- Install/channel: latest
- Active plugins:
github:michael-denyer/pstack-claude#main (opencode.json), plus local plugins orca-opencode-status.js and orca-opencode-status-tui under ~/.config/opencode/plugins/
Reproduction
- Install multiple skills across discovery roots (e.g.
~/.agents/skills, ~/.claude/skills) and/or a skill-providing plugin such as pstack-claude.
- Open the TUI and trigger the skill picker (
/skills / prompt.skills) or type @ before entering filter text, or run opencode api get /api/skill | jq -r '.data[].id'.
- Observe the returned order.
Expected Behavior
Skills are listed in deterministic alphabetical order by ID/name (matching the model-facing <available_skills> prompt list and the Web/Desktop Extensions › Skills list in #63125) when no search query is active.
Actual Behavior
Skills appear in registration and raw directory/concurrent-scan order (for example: opencode, report, then pstack-figure-it-out, pstack-make-pr-easy-to-review, pstack-bro, pstack-interrogate, ..., followed by compatibility and config directories).
Additional Context
Activityopencodejr commented on Nov 26, 2026 Thanks for the detailed write-up and for re-filing this against V2.
You're asking for skills to be listed alphabetically when no search text is entered: in the TUI /skills dialog, in @ autocomplete and in GET /api/skill. That would match the model-facing skill list, which is already sorted by id, and the Web/Desktop Extensions › Skills list, which is sorted by name since #63125. I've filed this as a feature request, and maintainers will consider it.
Related issues and pull requests:
I didn't find an open pull request for this. Your | sort workaround for the CLI seems like the best option for now.
hoangtuan2k5 commented on Nov 26, 2026 I would like to work on this. Would sorting the shared skill list by ID be an acceptable approach? It would order the API, /skills, and unfiltered @ suggestions consistently while preserving search ranking and registration precedence. mathworld commented on Nov 26, 2026 WANTED (alphabetical order):
aaod
agento11y-instrument
ask-matt
book-to-skill
browser
built-in-browser
caveman
chief-of-staff
chrome-browser
claude-automation-recommender
claude-handoff
code-review
codebase-design
computer-use
diagnosing-bugs
docs
docx
domain-modeling
find-skills
graphify
grill-me
grill-with-docs
grilling
...
CURRENTLY (random order?):
OpenCode
Report
figure-it-out
make-pr-easy-to-review
bro
interrogate
benchmark-checklist
principle-boundary-discipline
setup-pstack
get-or-comments
swarm
principle-model-the-domain
correct
technical-writing
principle-fix-root-causes
why
in-your-own-words
principle-encode-lessons-in-structure
how
... Reacted by Hoàng Chiều Nguyễn Tuấn hoangtuan2k5 commented on Nov 27, 2026 Thanks for providing an example. I understand that the desired behavior is to display the list in alphabetical order, as shown in your example, instead of the current order.
I have prepared a prototype and will also check cases where the ID differs from the display name to make sure the ordering is appropriate. I'm waiting for a maintainer to approve the approach before opening a PR.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|