/plugin-profiles:profile [apply <name>|launch [<name>]|status|clear|reset|check|setup]from plugin-profiles
Manages named sets of installed plugins that load per folder, session, or globally. Supports applying, checking, clearing, resetting, and setting up profiles.
Ships in plugin-profiles. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Arguments. [apply <name>|launch [<name>]|status|clear|reset|check|setup]. With no argument,
infer the action from the conversation: a read-only one (status, check) runs and names what it
inferred; apply, clear, reset and setup are proposed and wait for a yes. A skill that starts a session
calls launch directly. With nothing to infer, run status.
Every action runs the one command-line tool, and only it reads or writes settings and profile files:
node "${CLAUDE_PLUGIN_ROOT}/scripts/profiles.mjs" <command> [arguments]
Run profiles.mjs with no command to print its usage. Never edit a settings file or a profile file
yourself, and never reproduce what the tool decides (which plugins a profile switches, what is
pinned, what is missing): read it from the tool's output. Profile members live in the profile
files only, so name profiles in replies and quote members only from list, apply --dry-run or
the file the user asks about.
The user sees every change before it is made, so each write runs twice:
--dry-run and show its preview lines to the user as printed, not
summarized: the counts and the named plugins are what they are agreeing to.--yes. The write is
done when the tool prints its Applied, Saved, Installed or Cleared line, or reset's
line for each file; a non-zero exit means nothing was written, except reset's exit 3, which
wrote what it could and names each file it skipped. Relay the message.--yes stands for that answer, so it is never passed on a guess, on an earlier yes for a
different write, or when nobody is there to answer: with no one to ask, stop after the preview
and report what would change. When the preview names a missing required prerequisite, --yes
does not apply it; tell the user to run the apply in a separate terminal and answer the tool's own
prompt. A Not installed line does not stop an apply: only a missing required prerequisite stops
--yes.
Every question the skill asks before a write lists the answer that changes nothing (No, Keep)
first and the answer that writes second, and marks exactly one of them (Recommended) in its
label, wherever it sits, followed by one short sentence saying why, taken from the preview's facts.
For apply and clear, recommend Yes only when the user asked for that write in this conversation,
naming what the preview changes and how to undo it (clear undoes an apply, applying again undoes a
clear); otherwise recommend No. Reset's questions take the tool's own advice, as its action says.
status names the profile in force for this folder, each entry that differs from it,
plugins installed since, an unfinished switch, a one-session profile, the surface, and the
command that starts another session here in the profile in force. Relay it; a handoff's restore
line is that command.[<name>]: launch [<name>] [--folder <dir>] writes the one-session file for the
folder and profile and prints the claude command that starts a session in it; with no name it
takes this session's profile. It writes no settings file, so it needs no preview. Every launcher
(a handoff, a background session, a lane) starts sessions through it; see its usage for
--with, --unattended and --json. A person in a terminal starts one with
profiles.mjs start <name>, or, where their dotfiles define the claude shell function, by
giving it --profile <name>, a flag the function adds (Claude Code's own flags:
CLI reference); with the function,
claude --resume <id> resumes in the profile, since it runs start --claude-args for that
flag. claude -c continues the same conversation it would without the function, with the
folder's settings, and its start notice prints the claude --resume <id> that reopens it in
its profile. Tell them both forms.<name>: apply <name> --for folder|initial|session. Ask where when the user has not
said: folder for this folder, initial for every folder without its own profile, session for
one session started with the claude --settings command the tool prints. Run list first when
the name is unknown. native is Claude Code as it ships: it switches guardrails and every other
plugin of these marketplaces off and keeps only this plugin on; before that apply, point the user
to the preview lines naming the always-on plugins it switches off and any it leaves on. To switch inside this session,
tell the user to run /plugin-profile; when
an apply takes effect is in
plugin commands: /reload-plugins.clear [--for folder|initial] restores what the tool wrote. Inside a session, tell
the user to run /plugin-profile and pick No profile, which also reloads the session.reset --dry-run --json. Before asking
anything, show every line of its lines, in order, exactly as printed, in a code block: never a
summary, a paraphrase or a subset of them, since the questions point at "the files above" and
each line says what reset does to one file. Files in unchangedSinceReset are ones an earlier reset put back and nobody
changed since: reset leaves them, so ask nothing about them. When question is set, ask it as
worded, No before Yes: one yes covers the files a profile record covers, and a no keeps them. Then
ask each folders[].ask.question on its own, whatever the first answer, ask.no.label before
ask.yes.label: that row's ask.file changes only on a yes for it, and no is the default. The
recommendation and its reason come from the tool and are never your own: for the first question
questionRecommend.asked when the user asked for a reset, else questionRecommend.unasked; for
each file ask.recommend. Mark the option its answer names (yes or no) (Recommended) and give
its reason as the sentence. When every answer is no, nothing
is written: run nothing. Otherwise run reset --yes --json --preview-id <previewId>, plus
--keep-recorded when the first answer was no, with
<ask.yes.flag> <ask.file> for each yes and <ask.no.flag> <ask.file> for each no, the
file exactly as ask.file names it. Relay its lines. When the last line says records wait and
to run reset again (a moved repository goes back one layer per run), offer another reset, starting
from a new dry run. When it refuses because the preview changed, nothing was written:
start again from the dry run. Inside a session, tell the user that /plugin-profile and
Reset do the same and reload the session.check reports profile files that name plugins the catalog or machine lacks; relay
each FAIL and Report line.Walk the user through one phase at a time. A phase is done when its result is shown and the user has answered its question or chosen to skip it; only then start the next. A user who says to skip questions skips the interview questions only: phase 1 and, for any member not installed, phase 6 always run. Every save and install goes through the preview rule above. Setup is done when each saved profile has been previewed and written or declined, and the apply offer in phase 7 is answered.
inventory --json. Report the number of plugins and skills, then
each plugin with its skills, grouped by marketplace.usage --json. When it found history, report the most used skills and
plugins and the installed plugins with no recorded use. When it reports no usage history, say
so, propose profiles from the interview and the shipped profiles' descriptions alone, and offer
to turn on session recording for a later, sharper setup: session-telemetry's hooks record each skill a
session uses, and recording starts once session-telemetry is enabled (installed first if it is
not). When /harness-ops:audit-skill-visibility is among the available skills, offer it for what
that recording shows. Either way, say that setup can run again later.ships shows hooks or mod,
session-telemetry and plugin-diagnostics included, ask whether it is always on or per profile; what a hook runs on is in
hooks: hook lifecycle. Always on: save always-on --level user --plugins <id>. Per
profile: it goes into the profiles the user picks, and every apply names it when it is switched
off.list --json. For each phase the user named, propose the
shipped profile as it is, an extension of it (a user file of the same name with --plugins and
--remove), or a new profile, each with the usage or answer behind it. Save with save <name> --level user|repository: user (under ~/.claude/plugin-profiles/) for the user's own
sessions, repository (the repository's convention home, committed) only when the user wants
the team to share it.install <id> --dry-run and
install only on the user's yes to that plugin at that moment. The tool installs only from a
marketplace this machine already knows, never for a plugin only a repository profile names, and
leaves the new plugin off at user level unless the initial profile includes it; it never
updates or uninstalls. How Claude Code installs a plugin, and what it asks for along the way:
Plugin install.apply <name> --for folder for the profile that fits this folder./harness-ops:audit-skill-visibility, to see which skills the
next session's listing shows./session-flow:handoff./plugin-profile switches inside a session, and it is a command the user types; when a
plugin switched off unloads is in
plugin commands: /reload-plugins.save rewrites the whole file in the tool's form and drops comments; its preview says so, so
show that line too.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub melodic-software/claude-code-plugins --plugin plugin-profilesOther plugins' skills for the same job