worktree-init-script
/worktree-init-script
**UNIVERSAL TRIGGER**: Use when creating git worktrees in projects with init.sh - extends using-git-worktrees to run project-specific initialization script after worktree setup. **Activation**: Automatic when `using-git-worktrees` is invoked and `init.sh` exists in project root. **Setup**: "run init.sh", "initialize worktree", "project setup script" **Create**: "create worktree", "set up workspace", "new worktree" **Check**: "check init.sh", "verify project setup" TRIGGERS: init.sh, worktree init, worktree setup, project setup script, run init, initialize worktree, worktree initialization, cre
- Author
- dapi ↗
- Repository
- claude-code-marketplace ↗
- Licence
- MIT
- Last repository change
- 31.08.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 31.08.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
**UNIVERSAL TRIGGER**: Use when creating git worktrees in projects with init.sh - extends using-git-worktrees to run project-specific initialization script after worktree setup. **Activation**: Automatic when `using-git-worktrees` is invoked and `init.sh` exists in project root. **Setup**: "run init.sh", "initialize worktree", "project setup script" **Create**: "create worktree", "set up workspace", "new worktree" **Check**: "check init.sh", "verify project setup" TRIGGERS: init.sh, worktree init, worktree setup, project setup script, run init, initialize worktree, worktree initialization, cre
Triggers from the description
Original author description
**UNIVERSAL TRIGGER**: Use when creating git worktrees in projects with init.sh - extends using-git-worktrees to run project-specific initialization script after worktree setup. **Activation**: Automatic when `using-git-worktrees` is invoked and `init.sh` exists in project root. **Setup**: "run init.sh", "initialize worktree", "project setup script" **Create**: "create worktree", "set up workspace", "new worktree" **Check**: "check init.sh", "verify project setup" TRIGGERS: init.sh, worktree init, worktree setup, project setup script, run init, initialize worktree, worktree initialization, cre
How it works
- When to Use
- Integration with using-git-worktrees
- Quick Reference
- Template
SKILL.md preview
---
name: worktree-init-script
description: |
**UNIVERSAL TRIGGER**: Use when creating git worktrees in projects with init.sh - extends using-git-worktrees to run project-specific initialization script after worktree setup.
**Activation**: Automatic when `using-git-worktrees` is invoked and `init.sh` exists in project root.
**Setup**: "run init.sh", "initialize worktree", "project setup script"
**Create**: "create worktree", "set up workspace", "new worktree"
**Check**: "check init.sh", "verify project setup"
TRIGGERS: init.sh, worktree init, worktree setup, project setup script,
run init, initialize worktree, worktree initialization,
create worktree init, setup worktree project,
инициализация worktree, запустить init.sh, скрипт инициализации,
настройка worktree, создать worktree с init
---
# Worktree Init Script
Extends `superpowers:using-git-worktrees` -- after creating a worktree, runs `./init.sh` if the script exists in the project root.
**Core principle:** Project-specific initialization via a single script replaces auto-detect heuristics.
## When to Use
**Automatically activates** when:
- `using-git-worktrees` is invoked
- Project root contains executable `init.sh`
## Integration with using-git-worktrees
**Modifies step "Run Project Setup":**
Instead of auto-detecting by package.json/Cargo.toml:
1. Check for `init.sh`:
```bash
[ -x ./init.sh ] && echo "init.sh found"
```
2. If `init.sh` exists and is executable -- run it:
```bash
./init.sh
```
3. If `init.sh` does not exist -- fall back to standard `using-git-worktrees` logic
## Quick Reference
| Situation | Action |
|-----------|--------|
| `init.sh` exists and executable | Run `./init.sh` |
| `init.sh` does not exist | Standard setup (npm/cargo/etc) |
| `init.sh` fails | Report error, ask whether to continue |
## Template
A ready-made template is available at `templates/init.sh` in this plugin (mise, submodules, envrc, direnv).
Files in this package (2)
- SKILL.md 2 KB
- TRIGGER_EXAMPLES.md 2 KB
Versions
The database has no other skills named worktree-init-script.
Database snapshot: 13.11.2026 · package version abbd5f79ce21 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 90worktrees:new
Use when creating a new git worktree. Handles gitignore setup, worktree creation, and provides guidance. Invoke with "/worktrees:new <name>" or when user mentions "create worktree", "new worktree", "start feature in worktree", or "isolated workspace". - 100worktree-new
Create a task worktree with `aidrian worktree new` and run the project's bootstrap. Use when a task needs one. - 100worktree
Create, inspect, and safely remove git worktrees for repos under the workspace root (WORKSPACE_ROOT, default ~/git), enforcing the worktree-first policy and the no-stale-worktree guarantee. Use whenever you are about to make a change that will be committed, when the user says… - 100git-worktrees
Git worktree management for parallel agent team development. Triggers: 'create worktree', 'worktree setup', or during /delegate dispatch. Do NOT use for branch creation without delegation context. - 100worktree
Creates new git worktree with symlinked/copied assets and independent environment setup. Triggers on keywords: worktree, create worktree, new worktree, git worktree - 100pro-init-worktree
Create a git worktree from a branch name and copy only the needed local files (found via .gitignore) with reasons. Use for worktree creation, branch-isolated work, or /init-worktree.