You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
list: expose enabled and disabled filters outside the TUI #244
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
feat(list): add --status filter for non-interactive views