Repository navigation
Description
Problem
skillshare list already has one on/off axis: E toggles a skill via .skillignore / .agentignore, which makes it completely invisible to every harness. That is the right tool when I want a skill gone.
It is the wrong tool for the case I actually hit most often: I want the skill installed and available, but I don't want the model to auto-load it. In Claude Code that is the disable-model-invocation: true frontmatter key — skill stays user-invocable via /name, model just stops pulling it into context on its own.
Today the only ways to flip that are the Web UI frontmatter editor (ui/src/components/skill-editor/FrontmatterEditor.tsx already exposes the field) or opening SKILL.md in an editor. Both mean leaving the TUI I'm already standing in with the skill selected.
Result: because the cheap gesture in the TUI is the nuclear one, I end up fully disabling skills that I only wanted to make manual-invocation-only.
Desired capability
A new hotkey in the skillshare list TUI that toggles disable-model-invocation in the selected skill's SKILL.md frontmatter, in place, staying in the TUI — exactly like E does for the ignore files.
Suggested key: M (model invocation). Normal-mode keys currently taken in cmd/skillshare/list_tui.go are q ctrl+c tab shift+tab s ctrl+d ctrl+u / enter D A U X E; capitals are the established action convention, M is free.
Semantics (tri-state, this is the one real ambiguity — please sanity-check):
| current frontmatter | after M |
|---|---|
| key absent | disable-model-invocation: true added |
true |
false |
false |
true |
Also needed for this to be usable:
- A visible state indicator. A hotkey flipping a field nobody can see is a blind toggle. The detail panel already renders a
disabledchip (list_tui.go~L1125) — the model-invocation state needs an equivalent chip, otherwise "flip it if it's already there" is unverifiable. - The help line lists every key and is duplicated at
list_tui.go:804and:845— both need the new entry.
Hard problems to expect
-
This writes the source file,
Edoes not.toggleDisabled()writes a pattern into.skillignore— metadata beside the skill, content untouched.MmutatesSKILL.mditself. Consequences: the change propagates to every target on the nextsync, it surfaces as drift indiff, and it dirties the source git repo — which interacts with the dirty-repo protection aroundupdate/uninstall(cf. fix(uninstall): keep --json from bypassing dirty-repo protection #242). That asymmetry between two neighbouring hotkeys is the main design question here, not an implementation detail. -
The key is Claude-Code-specific, the source is shared across 50+ targets. Writing
disable-model-invocationinto a single source consumed by every harness is exactly the tension in feat: per-target agent frontmatter transformation during sync #241 (per-target agent frontmatter transformation) and Agent sync copies .md verbatim to every target, but different harnesses require different formats #267 (agent.mdcopied verbatim to targets with different schemas). I believe this is related, not duplicate: feat: per-target agent frontmatter transformation during sync #241/Agent sync copies .md verbatim to every target, but different harnesses require different formats #267 are about translating frontmatter during sync, this issue is about editing the source from the TUI. But if the maintainer's plan is a general per-target frontmatter layer, this feature should probably be designed to sit on top of it rather than beside it. -
SetFrontmatterListonly handles lists.internal/utils/frontmatter_write.gocurrently exposesSetFrontmatterList; a bool/scalar setter is the one new primitive needed, and it has to preserve all other keys, key order, comments and the body the way the list setter does. -
Agents vs skills.
Ealready branches onentry.Kind == "agent". Agent.mdfiles have different frontmatter;Mshould probably be a no-op (or show a hint) for agents rather than injecting a key their harness doesn't read.
Alternatives Considered
- Write nothing instead of
false— absent ≡false, so the toggle could remove the key rather than set it tofalse. Cleaner files, but it loses the explicit "I decided this" signal and makes the state indistinguishable from "never touched". I'd take the explicitfalse, but either works. - Do it in the Web UI only — already possible today; the whole point is not having to leave the TUI for a one-keystroke decision.
- A
skillshare disable-model-invocation <name>CLI command instead — more composable, but doesn't solve the in-TUI flow, and the TUI toggle is the smaller change.
Scope
- Small (1-3 files, < 200 lines)
- Medium (3-10 files, 200-500 lines)
- Large (10+ files, 500+ lines)
Likely touches: cmd/skillshare/list_tui.go (key handler + two help strings), cmd/skillshare/list_tui_content.go or list_tui_item.go (state chip), internal/utils/frontmatter_write.go (scalar/bool setter).
Open Questions
- Is editing
SKILL.mdfrom the list TUI acceptable at all, givenE's non-invasive precedent? If not, is there an ignore-file-style mechanism that could carry this state instead? - Should it wait on / build on feat: per-target agent frontmatter transformation during sync #241's per-target frontmatter layer?
- Deliberately left out of scope, happy to file separately if wanted: the sibling
user-invocablekey (same group inFrontmatterEditor.tsx, same mechanism), a CLI/--jsonequivalent (cf. list: expose enabled and disabled filters outside the TUI #244), and batch toggling across a selection (cf. [Request] Batch disable/enable in UI #203 / [Request] Batch disable/enable skills under the folder in commands #209).
Activity
feat(list): toggle model invocation for a skill with M
feat: MCP connections, plugins and a redesigned dashboard (v0.21.0) (#…
runkids commentedon Sep 19, 2026
Thanks for the detailed write-up. This shipped in v0.21.0:
https://github.com/runkids/skillshare/releases/tag/v0.21.0
In
skillshare list, pressMon a skill. It togglesdisable-model-invocationin that skill's
SKILL.md, and the detail panel shows a manual only badge sothe state is visible.
On your open questions:
SKILL.mdfrom the TUI. You were right that this is the real designquestion. For a tracked or installed skill the TUI asks first, because the edit
counts as a local change:
updateskips tracked repos with local changes, andreinstalling drops the edit. For a skill you wrote yourself it just toggles.
falsevs removing the key. I went with removing it. PressingMagainrestores the file byte for byte, so a quick try leaves no diff in your repo.
Mdoes nothing for agents.translating frontmatter during sync, and they stay open.
user-invocable, a CLI equivalent and batch toggling are not included. If youstill want any of them after trying this, a separate issue is welcome.
The dashboard (
skillshare ui) has the same switch in the skill editor, next touser-invocable, if you prefer editing there.Could you upgrade and tell me whether it fits your workflow?
feat(ui): show which skills are manual only
docs: describe the dashboard's manual only tag and field menu
docs: credit contributors whose reports shipped in v0.21