/profiles:initfrom profiles
First-time setup for the profiles system (configure profiles repo and capture current ~/.claude)
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Walk the user through configuring a profiles repo for the first time.
New profiles repos are seeded with starter content — a main landing branch and
a template profile — bundled with the plugin under
${CLAUDE_PLUGIN_ROOT}/starter/. There is no external upstream to fork or
depend on: the repo the user ends up with is entirely their own.
Run bash "${CLAUDE_PLUGIN_ROOT}/scripts/check-config.sh" and parse its
key=value output:
state=ok → tell the user it's already configured (repo= value) and stop.state=unreachable → tell the user the config points at an unreachable repo
and ask whether to reconfigure (continue below) or stop.state=missing or state=no_repo → continue.Ask the user one question with three options. All three end with a repo that is entirely theirs — none of them fork or depend on the plugin's repo.
Ask for the URL or local path. Validate with git ls-remote --heads "<url>".
The goal is a new, empty repo the user owns — never a fork of the plugin's repo. Ask how they'd like to create it and help them through their choice:
gh is installed and authenticated, run
gh repo create <name> --private (GitHub); if glab is, run
glab repo create <name> (GitLab). Capture the resulting URL.Then seed it with the bundled starter by building the branches locally and pushing them up:
tmpbare="$(mktemp -d)/seed.git"
bash "${CLAUDE_PLUGIN_ROOT}/scripts/seed-local-repo.sh" "$tmpbare"
git -C "$tmpbare" push "<new-repo-url>" main template
The repo URL is the one they just created.
Ask for an absolute path (default $HOME/claude-profiles.git). Then run:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/seed-local-repo.sh" <path>
The script creates the bare repo (if needed) and seeds main and template
from the plugin's bundled starter — no network and no upstream involved.
The repo URL is file://<path>. A local bare repo is a real git remote: every
workspace /profiles:set clones from that file:// URL exactly as it
would from a hosted one, and you can git clone, push, and pull it like any
remote. To move it onto a hosting service later, create an empty remote and
git -C <path> push <remote-url> --all.
bash "${CLAUDE_PLUGIN_ROOT}/scripts/write-config.sh" <repo-url>
~/.claude as the user-profile branchIf ~/.claude/.git does not exist, ask:
Capture your existing ~/.claude config as your user profile on your profiles repo? This is reversible — your live files won't be overwritten.
If yes, also ask which branch name to use for the user profile (default
user; any name works — e.g. main if you'd rather it be the repo's default
branch). Then run, passing the chosen branch:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/capture-user-branch.sh" <branch>
The script persists the branch choice to the global config, then handles
git init, remote setup, ignore rules for runtime state, removing embedded
plugin gitlinks, and the initial push. Surface its output to the user.
If no: tell them they can run /profiles:set later in any workspace.
If the current workspace looks like a real project (not the home dir), run
bash "${CLAUDE_PLUGIN_ROOT}/scripts/detect-project.sh" to infer its stack and
offer to set up a fitting profile right away rather than leaving a generic menu
for later:
rust, node, tauri, claude-plugin)
against the available branches (list-branches.sh --by-source, with their
descriptions)./profiles:set <branch>; if nothing
fits, propose /profiles:set --new <name> seeded from template.Print:
<url>~/.config/profiles/config.json~/.claude as user profile: yes/no (branch name if yes)Next steps:
/profiles:set to configure a workspace's .claude./profiles:configure to promote user-space config (plugins/skills/settings) into a profile./profiles:status to see if a workspace's profile is in sync./profiles:update to pull and push profile changes./profiles:source add <name> <url> to draw profiles from additional repos.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/maintain-profileUse 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.Other plugins' skills for the same job