/workloom:setup-repofrom workloom
Clone or explicitly migrate a repository into a bare Git container with .bare metadata, a default-branch checkout such as main, and task worktrees beside it inside the container. Use for "setup repo", "clone with worktrees", or "convert to bare worktree layout". Preserve refs, local work, remotes and configured source paths; never overwrite an existing checkout or delete repository roots.
Ships in workloom. 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 one named container per repository:
<parent>/<repo-name>/
.bare/ Shared Git metadata, objects and refs
.git File pointing to ./.bare
main/ Actual default-branch checkout when the branch is main
<task-name>/ Independent task branch/worktree
The task directories are siblings of the default checkout, not nested inside it. The container is a bare repository, not a working tree: run builds, tests and source edits in a registered checkout. Discover the actual default branch; use its appropriate folder name instead of assuming every repository calls it main.
For an owner-grouped Windows project drive, the same layout is:
E:\<owner>\<repo>\
.bare\
.git
main\
pr-<number>\
<task-name>\
<parent> is the authorized owner/project directory, not the repository
container. For a fresh setup, do not substitute <parent>/<repo>.git with
<repo>-main and <repo>-pr-<number> beside it. Both main and the PR checkout
belong inside <parent>/<repo>, beside .bare. "Sibling worktrees" means
siblings within that container, not siblings beside the container.
.bare, default checkout, and requested
task/PR checkout paths explicitly. If a local rule requires a conflicting
layout, surface the conflict and obtain a resolution before writing; do not
silently switch layouts or override higher-priority instructions. Update local
layout rules only when authorized.AGENTS.md files rather than copied
setup procedures that can drift. Keep machine-specific repository registry
data local; do not publish it with the reusable skill.gh repo view for GitHub,
not GitHub MCP; use native Git for other hosts. Confirm the approved account
and Git authentication method from the registry or user; an active CLI account
alone doesn't prove Git uses that identity. Do not switch accounts or put
credentials into commands or reported URLs.<authorized-parent>/<repo-name>. Inspect the exact path before writing.
An existing unrelated directory is a blocker, not permission to overwrite it.Use the recorded account for that repository, or an account explicitly supplied or confirmed by the user. Never guess it from the owner or fall back to a different identity. Don't initiate login, switch accounts or reconfigure credential storage without authorization.
For GitHub, check gh auth status --hostname <host> and
gh api --hostname <host> user --jq .login. Separately verify the effective Git
credential helper or SSH identity and read access to the exact approved remote.
URL-scoped helper settings can override a global helper; inspect the effective
setting before declaring a mismatch. Never print credential-fill output.
For Azure DevOps, record the organization, project and approved account. Git
Credential Manager or an approved SSH identity authenticates Git separately from
Azure CLI and az devops; gh doesn't authenticate Azure DevOps. Preserve the
actual approved method rather than relabeling it.
When a local registry is configured, read it before cloning or resuming. Keep
one row per repository with its provider/owner/repository (and ADO project),
credential-free remote URL, absolute bare path, every registered worktree path
and branch/detached state, actual Git and separate CLI authentication methods,
approved accounts, and last verification date (YYYY-MM-DD). Record only
non-secret identifiers, never tokens, passwords, private keys, credential-bearing
URLs or raw authentication output.
Update the affected row immediately after a successful clone and after worktree creation, authorized migration/removal, account/remote changes or verification. Preserve unrelated rows and reflect partial completion honestly. Registry metadata can live outside a worktree; repository edits, installs, builds, tests, commits, merges, rebases and pulls belong in the task's actual checkout. Don't adopt unrelated directories or migrate repositories just to populate it.
When the target is absent or an explicitly approved empty directory:
Determine the default branch from the remote's symbolic HEAD.
Create the absent or approved empty container, then clone the verified
repository into <container>/.bare with git clone --bare, not --mirror.
Do not clone a second copy into main or use shared-object alternates that
depend on another disposable checkout. If a local registry is required,
record the successful clone immediately, even if a later setup step fails.
Configure the bare clone's normal fetch mapping so remote-tracking refs stay current, then fetch:
git --git-dir=<container>/.bare config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git --git-dir=<container>/.bare fetch origin --prune
Create the container's .git text file containing gitdir: ./.bare.
Add the actual default branch as a linked worktree:
git --git-dir=<container>/.bare worktree add <container>/<default-folder> <default-branch>
Configure/verify that checkout's upstream as the corresponding remote branch. Refresh it with a safe fast-forward pull when needed. Create a task worktree only when requested, from fresh remote state, on its own branch.
A request to clone a repository and inspect a PR includes creating the separate PR checkout, not replacing the default checkout with the PR:
refs/pull/<number>/head on the target repository also covers
fork PRs. Never assume the PR targets the repository's default branch.<container>/pr-<number> as a separate review worktree at the fetched
head, detached or on a dedicated local review branch as the task requires.
Reuse a verified matching review worktree instead of duplicating it; never
switch a dirty or unrelated checkout to the PR.Work only in the PR checkout for that review or its authorized follow-ups.
Changes, builds and dependency installations never run in .bare or the
container root.
Examples show Git syntax, not literal shell substitutions. Use native filesystem
separators for the host. On PowerShell quote the entire --git-dir=<path> or
other --flag=value argument. Resolve the verified remote name rather than
assuming an existing repository uses origin.
Read the migration procedure. Inventory and rehearse first; do not treat conversion as a fresh clone that discards local refs. Preserve dirty linked worktrees, staged/untracked/ignored files, Git configuration and known application registrations. Use native worktree repair/move operations and verify hashes/status, not just directory presence.
Stop on an unsafe primary checkout, lock, unsupported configuration, destination collision or unavailable access. Do not force-delete, stash/reset, kill arbitrary processes, or move another repository to make the chosen path available.
<container>/.bare explicitly reports bare, and the container's .git
file resolves to it. The default and requested task/PR directories must report
working trees and share that same Git-common directory.git worktree list --porcelain. Record actual completed paths and branches,
not intended operations or a successful migration that hasn't occurred.fetch, status, diff and normal repository lookup work in the appropriate
locations. The default checkout is current without discarding local commits.Setup does not implement an issue, install project dependencies, create/merge a PR, or grant repository permissions.
<parent>/<repo>/.bare, the .git pointer and the actual
default checkout inside that repository container, never the flat .git
store plus repository-prefixed worktree layout.<container>/pr-<number> beside the default
checkout, at the exact PR head, even when the PR targets a non-default branch.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sebastienlevert/workloom --plugin workloom26 skills in this plugin
/addressAddress review feedback and merge conflicts on an existing PR end to end in any project. Use for "/address", "address PR feedback", "fix review comments", or "resolve PR conflicts". For authorized feedback fixes, assess the concern, ship validated code to the same PR branch, reply with commit/test evidence, then resolve only fully addressed review threads. Preserve unrelated work and PR state; never merge the PR. Optional --watch repeats the scoped operation after 1h, 2h, 4h, 12h, then daily until stopped. Plan-only and conflict-only requests remain scoped.
/approveSubmit an eligible GitHub PR approval only under the target repository's trusted root APPROVALS.md plus deterministic APPROVALS.yml and actual branch rules, with a current evidence-backed code review and exact-commit publication. Use for "approve this PR" or ship's approval tick. Missing/ambiguous policy, draft, stale/red checks or ineligible identity remain pending/blocked. Never self-approve, switch accounts, merge, or bypass rules.
/factoryOrchestrate existing development skills from issue triage/selection through implementation, review, feedback repair and PR readiness. Modes draft, ready and merge control final authority; draft is default. Invoke the owning skills rather than duplicating their logic. Explicit merge mode requires current, evidence-backed high confidence and normal repository checks/reviews; never self-approve, bypass protection or run an unbounded queue.