/profiles:maintain-profilefrom profiles
Use when installing/enabling Claude Code plugins, adding skills/hooks/agents, editing settings.json or CLAUDE.md, or merging template forward into scenario branches. Explains user-vs-profile placement and how to keep profile branches healthy.
Ships in 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.
A claude-profile is a git branch cloned into a workspace's .claude/ folder.
One branch per scenario (e.g. rust-cli, web-dev); switch by switching
workspaces, not by editing config. The template branch holds shared starter
content that new profiles branch from. A .profiles marker at the
workspace root records which profile this workspace expects (commit it to the
project repo). Treat the profile as configuration, not as a place to
install software.
Whenever the user adds a skill, hook, agent, command, settings change, or CLAUDE.md edit, there are two valid destinations:
~/.claude/) — applies to every workspace this user opens.
Use for genuinely cross-cutting tools, personal preferences, or anything the
user wants available everywhere..claude/, the current workspace's profile branch) —
applies only when this scenario branch is checked out. Use for
scenario-specific behavior (language stack, project conventions, repo-aware
hooks).If the user doesn't say which, ask. A one-line question is cheaper than
moving the file later. Frame the choice around scope: "Should this apply to
every workspace, or only when the <branch> profile is active?"
Heuristics when the user gives no signal:
Do not move a plugin's files into a profile branch. Plugins are installed
once into the user's plugin directory (~/.claude/plugins/...) and then
enabled per profile by listing them in that profile's settings.json
(enabledPlugins, with the providing marketplace registered under
extraKnownMarketplaces).
Why this matters:
/plugin install live in user space and are shared
across all workspaces. Copying them into a profile branch duplicates the
install, drifts from upstream, and breaks /plugin updates.settings.json, CLAUDE.md, project-specific skills/agents,
and the enable-list for plugins this scenario needs.When the user says "add plugin X to this profile":
/plugin list or check
~/.claude/plugins/). If not, install it there first with /plugin install..claude/settings.json to add the plugin to
enabledPlugins (and, if its marketplace isn't already known, copy that
marketplace's definition into extraKnownMarketplaces).If you find plugin source files that have been copied into a profile branch, flag it — they should be removed and replaced with an enable-list entry.
Keep enabledPlugins lists minimal — list only true entries. A plugin
that is installed but absent from enabledPlugins is simply off; you don't need
an explicit false to keep it dormant. In the global ~/.claude/settings.json,
enable only plugins you want in every workspace; let each profile turn on its
own subset with true.
Watch out: toggling a plugin off in the /plugin UI writes an explicit
false back into whichever settings scope is active. Those false entries
are redundant and, worse, a global false against a profile's true produces a
"disabled globally, but enabled here" override warning every session. Prefer
managing enables by editing the profile's .claude/settings.json directly over
using the global /plugin toggle. If you find stray false entries (especially
in the global config), offer to strip them down to just the true ones.
template. Skills, agents, or CLAUDE.md snippets
that should reach every scenario go on the template branch and are merged
forward into scenario branches.settings.json, CLAUDE.md, and
.gitignore. When merging template forward, resolve conflicts in these
files in favor of the scenario branch..profiles marker at the workspace root records which branch
this workspace expects. It belongs in the project repo, not the profile./profiles:set --new <name> --from <a>,<b> to clone branch a and merge b into it as a new branch. On
conflicts the script stops and prints which files need manual resolution
(JSON files want union; CLAUDE.md wants concatenation; agents//skills/
usually keep both).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jhughes-dev/claude-profiles --plugin profiles8 skills in this plugin
/configureConfigure/onboard this workspace's profile by promoting config from user space (~/.claude) into it — enable plugins, copy skills/agents/commands/hooks, add CLAUDE.md guidance, and copy settings, tailored to the repo./describeSet this workspace profile's one-line self-description, shown when picking profiles/initFirst-time setup for the profiles system (configure profiles repo and capture current ~/.claude)/setPick, create, switch, adopt, or opt out of this workspace's .claude profile branchOther plugins' skills for the same job