GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #66596

New issue
Copy link
New issue
Copy link
Backlog
Backlog
tui: sort skills alphabetically in /skills, @ autocomplete, and /api/skill#66596
Copy link
Labels
area/tuiTerminal interfaceplatform/macosmacOStype/featureNew behaviour or an improvementversion/v2OpenCode 2.x

Description

@mathworld
mathworld
opened on Nov 26, 2026
Issue body actions

Summary

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

  1. Install multiple skills across discovery roots (e.g. ~/.agents/skills, ~/.claude/skills) and/or a skill-providing plugin such as pstack-claude.
  2. 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'.
  3. 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

  • Reproducible consistently on every session and GET /api/skill call.
  • Prior V1 issues [FEATURE]: Order skills alphabetically in /skills #17321 and Skill commands appear in random order in the slash command picker #43397 (and V1 PR fix(opencode): sort slash commands alphabetically #43398) were auto-closed after 60 days of inactivity; opening a fresh V2 report per the stale-bot note.
  • Current CLI workaround: opencode api get /api/skill -H "x-opencode-directory:$(pwd)" | jq -r '.data[].id' | sort.

Activity

  1. opencodejr commented on Nov 26, 2026

    @opencodejr
    opencodejrBot
    on Nov 26, 2026
    Contributor
    More actions

    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:

    • [FEATURE]: Order skills alphabetically in /skills #17321: the same request for /skills, closed for inactivity
    • Skill commands appear in random order in the slash command picker #43397 and PR fix(opencode): sort slash commands alphabetically #43398: skills in random order in the slash command picker, closed for inactivity
    • PR feat(tui): sort skills alphabetically when all are shown #29814: an earlier change to sort skills in the TUI, closed by automated cleanup
    • feat(app): link Console MCPs and skills in Extensions settings #63125: added the alphabetical Extensions › Skills list in the app
    • Skill enumeration is non-deterministic when the same skill is reachable through multiple discovery roots #29950: non-deterministic order when one skill is reachable through several discovery roots

    I didn't find an open pull request for this. Your | sort workaround for the CLI seems like the best option for now.

  2. opencodejr
    added
    area/tuiTerminal interface
    platform/macosmacOS
    type/featureNew behaviour or an improvement
    version/v2OpenCode 2.x
    on Nov 26, 2026
  3. hoangtuan2k5 commented on Nov 26, 2026

    @hoangtuan2k5
    hoangtuan2k5
    on Nov 26, 2026
    More actions

    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.

    Reacted by Julius Bauer
  4. mathworld commented on Nov 26, 2026

    @mathworld
    mathworld
    on Nov 26, 2026
    Author
    More actions

    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
  5. hoangtuan2k5 commented on Nov 27, 2026

    @hoangtuan2k5
    hoangtuan2k5
    on Nov 27, 2026
    More actions

    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.

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

    area/tuiTerminal interfaceplatform/macosmacOStype/featureNew behaviour or an improvementversion/v2OpenCode 2.x

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.