Skip to content

list: expose enabled and disabled filters outside the TUI #244

Closed

Description

@hhh2210

Problem

skillshare list can filter enabled and disabled entries in the interactive TUI, using either the s key or a status: tag. That behavior was requested in #172 and shipped in v0.20.0 via #174, but the plain-text and JSON paths have no equivalent.

On v0.20.21, an isolated source with one enabled skill and one skill disabled through .skillignore produces:

$ skillshare status --json | jq '.skill_count'
1
$ skillshare list --json | jq 'length'
2
$ skillshare list 's:enabled' --json | jq 'length'
0

The first two results use different valid views: status.skill_count counts enabled skills, while list returns the full inventory and marks disabled entries. The third command is the surprising part. Outside the TUI, s:enabled is treated as a name pattern rather than a status filter.

Scripts can filter the JSON themselves, but they must know that disabled is omitted for enabled entries. A first-class flag would expose the existing TUI concept consistently.

Proposed behavior

Add skillshare list --status all|enabled|disabled.

  • all remains the default, so existing plain-text output and the JSON array shape stay unchanged.
  • In plain-text and JSON modes, the flag filters the returned entries.
  • In the TUI, the flag sets the initial status filter; users can still press s to cycle.
  • The flag applies to global and project mode, skills, agents, and --all.
  • Status combines with the existing pattern and --type filters using AND semantics.
  • No short flag is needed because -s already means --sort.

The list documentation should also state that the default view contains the entries returned by current discovery, including entries marked disabled.

Compatibility and non-goals

This should not change the default output, replace the top-level JSON array, alter .skillignore or .agentignore discovery semantics, or redefine status.skill_count. Usage tracking, unused-skill detection, and cleanup automation are separate concerns.

Activity

  1. self-assigned this
    on Jul 29, 2026
  2. added
    feature
    on Jul 29, 2026
  3. added a commit that references this issue on Jul 29, 2026
    a1e22a7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions