Repository navigation
Closed
Feature
7 / 77 of 7 issues completed
Copy link
Labels
needs-humanHuman-in-the-loop required; autonomous sessions must not resolve items carrying this.spec-containerSpec container: sub-issues are its work items (/work-items:decompose and /work-items:ship).
Description
Spec container for the plugin-profiles plugin (PR 1 of the plugin profiles effort). The Brief below is the spec as the owner approved it on 2026-11-15; the design and plan behind it are summarized on Plugin profiles: Brief (control-hub).
Brief
Restatement: confirmed by the owner, 2026-11-15
TLDR
- A new marketplace plugin,
plugin-profiles, lets a user pick a named set of plugins (a plugin profile) for one session, for a folder, or as the initial profile everywhere. - It ships seven profiles: always-on, discovery, planning, build, review, interface design, harness upkeep. Users add their own at user level and per repository, and a guided skill action proposes profiles from an inventory and local usage history.
- A profile is chosen when a session starts. Inside a running session, when the folder remembers its profile, a switch enables plugins at once; disabling takes effect at the next session start.
- It enables and disables whole plugins (with any MCP servers they ship), can hide skills that are not part of a plugin, installs a missing plugin only on the user's yes, and never updates or uninstalls.
- The
corebundle plugin is removed in the same release.
Problem
- Gap: with every plugin enabled in every session, Claude is shown hundreds of skills and does not know which to invoke or when.
- Who / how many: the owner on every machine today, and downstream marketplace users from the first release. 84 of 127 installed plugins are enabled at user scope (
claude plugin list --json, 2026-11-15). - Frequency: every session.
- Trend: growing; the marketplace lists 93 plugins.
- Cost: wrong or missed skill choices.
/doctoronly switches plugins off globally by past usage, which differs per machine. - Evidence: observed: 329 skills listed and 317 descriptions dropped on 2026-10-05 (claude-code-plugins#6462, Claude Code 2.1.289); observed: "Reloaded: 84 plugins · 329 skills" in the owner's probe session, 2026-11-15 (Claude Code 2.1.325); reported: the owner, "Claude is just not really knowing what to invoke and when".
Intent
giving the Claude sessions, no matter what you're doing, if it's across handoffs, the ability to switch and easily enable only the skills, plugins, and MCP servers that the agent needs for that given task
- Q2 own answer: "You can see how many skills we have, plus their descriptions, and Claude is just not really knowing what to invoke and when."
- Q3 own answer: "Eventually, as far as question 3, I think this would be a production thing. I'd want downstream consumers to be able to use this and basically manage their entire Claude harness"
- note: "Think of it like progressive disclosure, but for the agents, for the specific workflows and activities."
- Q16 asked: "How would that work across /session-flow:handoff and CTRL+C - resuming sessions? WOuld it be abel to load the same profile ? How do we ensure profiels don't get reset/changed with various states of sessions and how do we do that acurately?"
- Q17 own answer: "LARGE"
- Q32 asked: "I was thinkign enable/disable ?? but I guess it could install (idempotent) / update (maybe?) and but not remove/uninstall"
- Q53 asked: "I thought there was a way to enable/disable specific skills inside a plugin, like a settings override... why can't we include that?"
- Q33 asked: "The lookup must be quick and accurate and repeatable... use caching? hash of the SKILL YAML frontmatter? The "version" #? What is best, easiest, accurate?"
Goal
A user tells Claude Code which workflow phase they are in, and the sessions for that phase list only the plugins that phase needs, plus the ones that are always on.
- Intent (why, in the user's words): "Claude is just not really knowing what to invoke and when"
- Vision (where this heads): "I'd want downstream consumers to be able to use this and basically manage their entire Claude harness: what plugins and skills are enabled when"
- When goals conflict, prefer: a clean, narrow skill list at session start over switching without a restart
- Finish line: released — checked by the owner via a new session started in a folder with the build profile applied, whose
/reload-pluginssummary shows fewer skills than the 329 measured on 2026-11-15
Work size
- Appetite: Large: a major investment the human accepts ("LARGE").
- Size: Large: too big for one deliverable: split it.
- Uncertainty: Knowable: the open points can be settled by looking.
- Split signals: the apply script and profile files; the mod parts; the skill with its guided action and the profile check; the session-flow handoff change; removing
core; the dotfiles value for the initial profile.
Constraints
- Native first, low coupling; adopt a native profile feature when Claude Code ships one.
- No separate config root (it conflicts with account rotation).
- A profile enables and disables installed plugins; it installs a missing one only on the user's yes, only from marketplaces the machine already knows, and never on its own for a repository profile; it never updates or uninstalls.
- Plugins work with or without each other: the session-flow handoff change does nothing when
plugin-profilesis absent. - User scope holds an always-on set; project scope holds stack-specific plugins. Exception (owner, design round 3): the shipped always-on profile lists the config-gated formatters and checkers as
optionalmembers. - The mods API is early access, so only the mod parts (the
/plugin-profilecommand and the end-of-turn reload) may depend on it; applying a profile must work without it. - Standalone MCP servers are untouched; MCP servers a plugin ships follow that plugin.
- The inventory of plugins and skills is rebuilt from disk on every run; no cache.
- Mechanism decisions were settled in the interview.
- Quality requirement: Reliability: a failed apply leaves settings unchanged; if the mods API changes, the script and the skill still apply a profile.
- Quality requirement: Security: the tool writes plugin on/off entries,
skillOverridesentries for non-plugin skills, and its own applied-profile record, and nothing else in a settings file. It writes to a folder's local settings file, to a one-session settings file, or to user settings when the user asks for the initial profile or has just approved an install (AC20). It never changes permissions, never writes a repository's committed settings file, never enables a plugin that managed settings block, and a repository profile can enable only what that repository's own settings file could already enable. The one action beyond these writes is installing a missing plugin on the user's yes. The one-session settings file the tool generates also setsenv.PLUGIN_PROFILES_SESSIONto the profile name (design Q59). - Quality requirement: Maintainability: adding a profile is adding a file; the profile check catches stale names.
- Quality requirement: Usability: works on Linux, WSL, Windows and macOS.
- Quality requirement: Observability: every apply prints which plugins it enabled and disabled, and lists the plugins of marketplaces it does not govern, which it left alone (design Q65).
- Quality requirement: Usability (owner): "It needs to be simple, clean, and reliably guided (hold teh users hands)": the fewest rules to hold, no state to reconcile by hand across machines, no copied shipped files, and every change shown before it is made.
- Quality requirement: Performance: no target needed.
- Quality requirement: Scalability: no target needed.
- Engineering principles (owner): "Make sure we're applying solid principles: Single Responsibility Principle, DRY, Single Source of Truth principle, so no duplication. Make sure we're adhering to general good practice, best practice, and software engineering principles: low coupling, high cohesion; things that change together live together; feature vertical slice architecture."
Acceptance criteria
- AC1: applying a shipped profile in a folder makes the next session started there list the desired set and nothing else, apart from plugins a higher level pins (AC18) and plugins from marketplaces the profile does not name (AC16), shown by
claude plugin list --json. The desired set is the always-on profile, plus the chosen profile, plus the plugins the repository enables in its committed settings, plus anything those depend on, minus what the profile excludes. - AC2:
claude --settings <one-session settings file>starts one session in a profile and leaves every settings file unchanged, apart from an install the user approves (AC4, AC20). - AC3: a repository profile extends a user profile of the same name, which extends a shipped one:
pluginsadds members andremovedrops inherited ones, in every profile. - AC4: a profile naming a plugin that is not installed applies the rest, names the missing plugin with its install command, and installs it only when the user says yes at that moment; with nobody to ask, and for a repository profile on its own, it installs nothing; it never updates or uninstalls a plugin.
- AC5: the profile check fails when a shipped profile names a plugin missing from the catalog, and reports installed plugins that no profile names; a user or repository profile's plugins from other marketplaces are checked against the installed list and reported missing (AC4); it also fails when a shipped id's marketplace differs from the catalog's own name, naming the fix, and when the interface design profile lacks a planning member.
- AC6:
/plugin-profileshows a picker of the available profiles, shows what applying the chosen one will change, asks before writing, and applies it, all without a model turn; with nobody to ask, an apply needs--yes. - AC7: the
corebundle plugin is removed from the catalog in the same release. - AC8: if applying fails partway, the folder's settings are left as they were.
- AC9: after an in-session switch the command runs
/reload-pluginsonce, at the end of the turn, and never/reload-skills. - AC10: the command never passes
--forceon its own; when a switch would enable a plugin that ships an MCP server or a language server, it names those plugins, says the next message would re-read the whole conversation, and applies only on the user's choice. - AC11: an in-session switch enables what the new profile needs at once; what it would disable stays loaded for this session and goes at the next session start, and the command says so. To do that it writes the on entries, reloads, and only then writes the off entries; a later reload in the same session unloads the plugins marked off. When folder remembering is off, or the session was started from a one-session settings file, the command refuses the switch and says how to start a session in that profile. Before writing, the switch shows what will change and asks.
- AC12: a status command names the profile recorded for the folder and lists every plugin entry that differs from it.
- AC13: a setting turns off remembering the folder's profile, so each session starts from the initial profile.
- AC14:
/session-flow:handoffwrites the applied profile's name into its save-point whenplugin-profilesis installed, and writes nothing about profiles when it is not. - AC15: a guided skill action lists the installed plugins and their skills, reads local usage history, asks the user about their work, and proposes profiles the user can save.
- AC16: applying a profile writes on/off entries at the one level chosen (the one-session settings file, the folder's local settings file, or user settings); every installed plugin from a marketplace the resolved profile names (always-on plus chosen, every level) that is outside the desired set is written off there, except one a higher level pins (AC18); plugins from other marketplaces are never written and are listed;
apply --dry-runprints all of this before any write; a repository plugin the profile excludes is written off, and every other plugin the repository enables is left unmentioned. The one write at another level is AC20's. - AC17: plugins the repository enables in its committed settings stay on under every profile unless the profile excludes them, and the tool never writes the committed settings file.
- AC18: a plugin a higher level pins (managed settings; the folder when setting the initial profile) is reported and left alone.
- AC19: clearing a folder's profile restores each entry the tool wrote to the value it had before, using the applied-profile record.
- AC20: after an install the user approved, the plugin is switched off at user level unless the initial profile includes it.
- AC21: each write of on/off entries is all-or-nothing: one write when a profile is applied for a later session, and two for an in-session switch (AC11); an approved install runs before them as a separate step.
- AC22: a plugin installed after a profile was applied is reported by the status command and at session start.
- AC23: a profile may list skills that are not part of a plugin to hide; applying it writes them as
skillOverridesentries at the same level as the plugin entries, and clearing the profile restores them. - AC24: no profile can exclude a member of the always-on profile. The shipped always-on profile includes
guardrailswith the handoff and session tools. Always-on lists add up across the shipped, user and repository levels, and taking a shipped member out needs an explicit remove line in the user's or repository's own always-on file. - AC25: the guided setup lists every installed plugin that ships hooks (event hooks or a mod: a non-empty
hooksobject or amodulesentry inhooks/hooks.json) and asks, for each, always on or per profile; every apply names each hook-shipping plugin it switches off. - AC26: before writing, an apply checks the required prerequisites each plugin it would switch on declares under the prerequisites contract; when any is missing it lists them with their install lines and the plugin's stated degrade, and writes only after the user's explicit yes; with nobody to ask it writes nothing.
Captured assumptions
- Quality bar: production
- Variation intent: second variant = known; existing structure: none in the repository; upstream: claude-code-plugins#6462 listed profile files and a managing skill as requirements, not built
- A resumed session does not keep a
--settingsflag from its first launch: verify during build. harness-opsplugin sync leaves an explicitfalseentry alone: verify during build.claude plugin installdoes nothing for a plugin already installed: verify during build.- A disabled plugin's skills stay in the model's view after
/reload-pluginson Claude Code 2.1.325 (owner's probe): revisit if a later release announces removals. - A mod can trigger
/reload-pluginsfrom aturn.completehook and not from its own command handler (owner's probe, 2.1.325): verify during build. - On a machine where another tool manages user settings (the owner's dotfiles), that tool's entries win at its next apply: verify during build.
- A full inventory takes under one second on the owner's WSL machine (0.85 s plugin list, 0.04 s for 428 skills, 2026-11-15): revisit the no-cache rule if the inventory later includes something slow.
Out-of-scope
- Standalone MCP servers (those not shipped by a plugin).
- Enabling or disabling single skills of a plugin: Claude Code 2.1.325 has no such control; revisit when it ships one.
- The GitHub Actions lanes: the control-hub follow-up issue.
- Installing CLI tools.
- Updating or uninstalling plugins.
- Other kinds of switchable sets (models, permissions).
Load-bearing assumptions
| Assumption | Source | Falsifying check | Response if false |
|---|---|---|---|
A resumed session does not keep a --settings flag from its first launch |
Brief | probe resume-keeps-settings reads no |
Moderate: status and the handoff entry say to relaunch with the flag |
harness-ops plugin sync leaves an explicit false entry alone |
Brief | probe sync-keeps-false reads yes |
Major: a sync would undo every apply; stop and replan |
claude plugin install does nothing for a plugin already installed |
Brief | probe install-idempotent reads yes |
Minor: the install step checks the inventory first |
A disabled plugin's skills stay in the model's view after /reload-plugins |
Brief | probe reload-removes-skills reads no |
Minor: note it; do not widen AC11 unasked |
A mod triggers /reload-plugins from turn.complete and not from its own command handler |
Brief | live probe reload-from-turn-complete records before and after counts |
Major: AC9 and AC11 cannot be met as written; stop and replan |
| Dotfiles set the initial profile by running the apply (D13), so they hold no plugin list | plan | the dotfiles item's check: the chezmoi source names no plugin of this marketplace | Moderate: dotfiles stop forcing entries outside the always-on set |
| A full inventory takes under one second | Brief | status --json under 2 s |
Minor: revisit the no-cache rule only if usage reading is added to every run |
The environment tells CLI, Desktop, VS Code, claude -p, cloud and Desktop WSL sessions apart |
plan | probe surface-vars |
Moderate: an unknown surface reports "surface not detected" and allows folder-level applies only |
A catalog defaultEnabled default reaches users who already have the marketplace when a new plugin appears |
plan | probe default-on-existing-users |
Moderate: harness-ops' dependency carries session-telemetry; plugin-diagnostics' setup notice tells the user to enable it |
A dependency is enabled when its dependent is turned on by a settings-file entry, not only by claude plugin enable |
plan | probe deps-enable-from-settings |
Moderate: a second, earlier dotfiles change lists the two hook units |
Execution shape: integration branch → single PR
Integration branch: feat/plugin-profiles
Sub-issues
Collapse Sub-issuesSub-issues
Loading 7 sub-issues
Metadata
Metadata
Assignees
Labels
needs-humanHuman-in-the-loop required; autonomous sessions must not resolve items carrying this.spec-containerSpec container: sub-issues are its work items (/work-items:decompose and /work-items:ship).
Type
Fields
No fields configured for Feature.
Activity
kyle-sexton commentedon Nov 22, 2026
Closing: the container's work has shipped.
optionalmembers; plugin-profiles: guard and remove always-on optional members (AC24, AC3 of #16428) #18124 recorded them and #18131 fixed them.env -uon Windows).git ls-remote --heads originshows no dossier branch for this container, so nothing was deleted.