/rhiza:detach [path to a repo root] (optional; defaults to the current repo)from Rhiza
Detaches a repo from rhiza by deleting managed files listed in .rhiza/template.lock, pruning empty directories, and removing the lock file. Prompts for confirmation before destructive action.
Ships in Rhiza. 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.
You are running /detach in the current working directory's repo.
This command is a thin wrapper around the bundled plugin/scripts/detach.py. All
the deletion logic lives in that script — a deterministic, stdlib-only Python
program that reads .rhiza/template.lock directly (no rhiza CLI, no PyYAML
required). Do not re-implement it or delete files yourself; run the script.
⚠️ This is destructive. It permanently deletes the files rhiza synced into the
repo, removes the directories they leave empty, and deletes .rhiza/template.lock
so the repo is no longer rhiza-managed. Files you added yourself are untouched.
This detaches a repo, not the plugin. It is the inverse of the sync, not of the
installation — the rhiza plugin stays installed and every other repo stays managed. A
user who wants the plugin itself gone from Claude Code wants /plugin, not this. If
that is what they appear to be asking for, say so rather than deleting their files.
Argument (optional): $ARGUMENTS — a path to the repo root to clean; default is
the current directory.
Because this deletes files, confirm with the user before running unless they
have already clearly asked to proceed (e.g. said "yes, detach" or passed
--force). Recommend they have a clean git tree / committed work first, so the
deletion is easy to review and revert.
Invoke it with the plugin-root path (it ships inside this plugin, so
${CLAUDE_PLUGIN_ROOT} resolves at runtime — keep the quotes):
uv run --python 3.12 --no-project python "${CLAUDE_PLUGIN_ROOT}/scripts/detach.py" $ARGUMENTS --force
$ARGUMENTS through as the optional target path. If it's empty, just omit it.[y/N] for confirmation. When run non-interactively
(as here, with no TTY to answer) an unanswered prompt is treated as "no" and it
cancels — so pass --force (equivalently -y) only after the user has
confirmed in step 1, to carry out the deletion they approved.${CLAUDE_PLUGIN_ROOT} is empty (e.g. you're in a source checkout of this repo,
not an installed plugin), fall back to the repo-relative path: uv run --python 3.12 --no-project python plugin/scripts/detach.py $ARGUMENTS --force.uv is missing, or the script is genuinely not found at either path, report
that plainly and stop — never hand-roll the deletions as a substitute.[DEL] line and a detach
summary (files removed / skipped / empty dirs removed / errors).No lock file found or Nothing to detach, the repo wasn't
rhiza-managed — say so; it's not an error.git status /
git diff, then commit the removal.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
12 skills in this plugin
/completions1. Work out which shellInstall shell tab-completion for make targets, so `make <TAB>` lists a project's targets. Writes to the user's data directory, not to the repo. Works in any make project./docs1. Detect the repo's factsCreate or refresh this repo's README.md, CLAUDE.md and mkdocs.yml, detecting project metadata from git and the manifest. Preserves hand-written prose. Writes files only — no commit, no branch, no PR./fix0. PreconditionsRead this repo's open issues, triage them, and open one pull request per issue that can be fixed without a judgement call. Issues that need a decision, or that look stale or superseded, are reported with a recommendation rather than guessed at./history0. PreconditionsRead this repo's open pull requests and issues together — say which are obsolete and why, the order the open requests should merge in, which issues are trivial, and what to address next. Closes nothing; it only posts the comments you select./init1. PreconditionsMake the current folder a rhiza-managed repo — write the .rhiza/template.yml pointer, add a skeleton and license, open a PR. Supports Python, Rust and Go. Syncs nothing; run /rhiza:update after it merges./maffay1. Draw onePrint one bonmot from a random Peter Maffay song — a pick-me-up for a long refactor. Takes an optional theme keyword. Needs no repo and no git, so it works anywhere.npx claudepluginhub jebel-quant/rhiza-claude --plugin rhiza