@majiayu000/ck-worktree
BCreate isolated git worktree for parallel development in monorepos.
Install
agr install @majiayu000/ck-worktree --target claudeWrites 2 files into .claude/skills/, pinned to git-69c883be.
- .claude/skills/ck-worktree/SKILL.md
- .claude/skills/ck-worktree/metadata.json
Document
name: ck:worktree description: "Create isolated git worktree for parallel development in monorepos." argument-hint: "[feature-description] OR [project] [feature]"
Git Worktree
Create an isolated git worktree for parallel feature development.
Workflow
Step 1: Get Repo Info
node .opencode/skills/worktree/scripts/worktree.cjs info --json
Parse JSON response for: repoType, baseBranch, projects, worktreeRoot, worktreeRootSource.
Step 2: Detect Branch Prefix
From user's description:
- "fix", "bug", "error", "issue" →
fix - "refactor", "restructure", "rewrite" →
refactor - "docs", "documentation", "readme" →
docs - "test", "spec", "coverage" →
test - "chore", "cleanup", "deps" →
chore - "perf", "performance", "optimize" →
perf - Default →
feat
Step 3: Convert to Slug
"add authentication system" → add-auth
"fix login bug" → login-bug
Max 50 chars, kebab-case.
Step 4: Handle Monorepo
If repoType === "monorepo" and project not specified, use AskUserQuestion:
AskUserQuestion({
questions: [{
header: "Project",
question: "Which project for the worktree?",
options: projects.map(p => ({ label: p.name, description: p.path })),
multiSelect: false
}]
})
Step 5: Execute
Monorepo:
node .opencode/skills/worktree/scripts/worktree.cjs create "<PROJECT>" "<SLUG>" --prefix <TYPE>
Standalone:
node .opencode/skills/worktree/scripts/worktree.cjs create "<SLUG>" --prefix <TYPE>
Options:
--prefix- Branch type: feat|fix|refactor|docs|test|chore|perf--worktree-root <path>- Override default location (only if needed)--json- JSON output--dry-run- Preview
Step 6: Install Dependencies
Based on project context, run in background:
bun.lock→bun installpnpm-lock.yaml→pnpm installyarn.lock→yarn installpackage-lock.json→npm installpoetry.lock→poetry installrequirements.txt→pip install -r requirements.txtCargo.toml→cargo buildgo.mod→go mod download
Commands
| Command | Usage | Description |
|---|---|---|
create | create [project] <feature> | Create worktree |
remove | remove <name-or-path> | Remove worktree |
info | info | Repo info with worktree location |
list | list | List worktrees |
Notes
- Script auto-detects superproject, monorepo, and standalone repos
- Default worktree location is smart: superproject > monorepo > sibling
- Use
--worktree-rootonly to override defaults - Env templates (
.env*.example) auto-copied with.examplesuffix removed
Repository README
Describes majiayu000/claude-skill-registry-data as a whole, which may contain artifacts other than this one. Where this artifact had no useful description of its own, its summary was taken from here.
Claude Skill Registry (Data)
This repo contains the archived skill contents (the heavy, browsable skill files).
Canonical layout
- Category folders at repo root (e.g.
development/,documents/,data/, ...) - Each skill lives under a category:
<category>/<skill>/SKILL.md+<category>/<skill>/metadata.json - Case conflicts are resolved with
{name}-{owner}-{repo}suffixes (fallback:-{short-hash}).
Archive status
- Live badges above are sourced from
claude-skill-registry-corestats.json. - Counts in this README are intentionally dynamic, not hardcoded.
- If the badges look stale, refresh the
corebuild/index pipeline rather than editing numbers here.
Where the index + site live
- Core repo: https://github.com/majiayu000/claude-skill-registry-core
- Main repo (merged publish artifact): https://github.com/majiayu000/claude-skill-registry
Trustgrade B
- passBody integrity
Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.
- passType matchnot applicable to this artifact type
Whether the artifact is really the kind of thing its metadata claims it is.
- passFreshness
How long since the source repository was last pushed to.
- passPrompt injection
Scans the artifact's own text for instructions aimed at your agent rather than at you.
- warnLicenseno SPDX license detected
Whether the source repository declares an SPDX license permissive enough to redistribute.
How the grade is calculated
Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:
- Aevery check passed
- Bone warning
- Ctwo warnings
- Dprompt injection or body integrity failed, or three warnings
- Fone of those failed, and something else is wrong
These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.
Versions
git-69c883be903a2026-07-31