/dwin-skills:riftfrom Dwin Skills
Use Rift copy-on-write workspaces when the user requests Rift isolation, a snapshot of current working state, or Rift workspace management.
Ships in Dwin Skills. 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.
Read when SKILL.md points to them.
Use Rift to give a task an isolated copy of the current workspace, including its Git index and uncommitted changes.
This skill covers Rift's commands and works on its own. Rift is for local
machines; cloud agent sandboxes do not need it. The managing-workspaces skill
carries the wider policy: choosing an isolation method, seed checkouts,
ownership, build storage, and cleanup. Load it alongside this one when it is
available.
Run command -v rift and rift --help. If it is missing, install the
rift-snapshot package with an available package manager:
bun add -g rift-snapshot
# With npm when Bun is unavailable:
npm install -g rift-snapshot
Use the package manager's global bin directory if installation succeeds but
rift is outside PATH. For Bun, try "$HOME/.bun/bin/rift" --help and add
that directory to the task's command environment. Change persistent shell
configuration only when requested. If neither package manager is available,
report the prerequisite rather than installing a runtime outside task scope.
Confirm the executable works before creating a workspace.
rift init from the source, then
rift create --name <task-name>. Capture the absolute path printed on
stdout and verify that it exists before continuing.Rift needs a regular Git checkout. It rejects linked Git worktrees,
repositories with active Git operations or lock files, FIFOs such as a secret
manager's .env pipe, and sockets such as the fsmonitor--daemon.ipc that
another worktree's Git daemon leaves under .git/worktrees/, which fails with
unsupported filesystem entry. Leave those states in place. A clean seed avoids
these blockers for ordinary new isolation; if the user explicitly requests a
snapshot of this current state, report the blocker and ask before using a source
that omits it.
Rift copies Git repositories with detached HEAD. Before committing, create a task branch at HEAD. For PR work, first compare HEAD with the fetched PR branch and keep any commits only HEAD has on a branch, then check out the PR branch.
By default, Rift omits regenerable artifacts, including dependencies and build
caches. Use --copy-all when the task needs those files, otherwise run the
repository's normal setup in the new workspace. Check installed CLI help for
supported options. macOS creation requires APFS; Windows workspace creation
is currently unsupported.
Read any .rift.toml before creation or removal. Its lifecycle hooks execute
commands and may start services or remove data. Run hooks only within existing
task authorization; use --no-hooks when hooks exceed it. If a postcreate
hook fails, inspect rift list and the resulting workspace before retrying:
creation may already have succeeded.
This skill controls shell execution in a Rift directory. It does not replace Codex's native worktree backend or move the chat's project attachment. Start from the source checkout in local mode. For app project views tied to the snapshot, open the returned directory as a project and start a local chat there. Give delegated agents the same explicit workspace boundary, or create separate Rift workspaces when their edits need isolation.
Report the workspace path, branch, inherited changes, task changes, and validation.
Follow managing-workspaces for when to remove a Rift and the checks to pass
first. Without that skill, remove a Rift only when the user asks, after
confirming git status --porcelain prints nothing and the task's commits are
pushed.
rift remove trashes the selected workspace and every registered descendant,
but rift list prints only direct children. Before removal, run rift list on
the workspace and again on each child it reports, until no new children appear.
Keep the parent unless every workspace in that tree belongs to this task and
passes the removal checks. Read .rift.toml and run hooks only within task
authorization; use --no-hooks when its hooks exceed that authorization.
Remove it with rift remove <absolute-workspace-path>, never rm -rf.
Removal moves the subtree into Rift's .trash storage and frees no disk space.
Report the trash that remains. rift gc permanently deletes all trash,
including other tasks', so run it only when the user explicitly asks.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dwin/skills --plugin dwin-skillsOther plugins' skills for the same job
52 skills in this plugin
/arenaHave several agents attempt the same task, pick the strongest attempt as the base, and graft the best parts of the others into it. Use for "arena this" or when one attempt at an artifact would lock in the wrong shape./autopilotDrive a branch to a ready pull request. Keeps it current with its base, gets local review from a different model family, marks it ready, and handles CI and AI-reviewer feedback. With `merge`, also merges it. Use when the user invokes autopilot./babysitMonitor or babysit an open pull request through CI, mergeability changes, and review feedback. Use when the user asks to watch a PR, keep checking it, diagnose checks, address in-scope findings, or stay with it until it is merged, closed, or genuinely needs user input.