Skip to content
Skills Library
Programming · Automation

worktree-new

/worktree-new

Create a task worktree with `aidrian worktree new` and run the project's bootstrap. Use when a task needs one.

Repository
aidrian ↗
Licence
Apache-2.0
Last repository change
12.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 12.11.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Create a task worktree with `aidrian worktree new` and run the project's bootstrap. Use when a task needs one.

Original author description

Create a task worktree with `aidrian worktree new` and run the project's bootstrap. Use when a task needs one.

How it works

  1. Inputs
  2. Run
Original SKILL.md headings · 34 lines, 258 words
SKILL.md preview
---
name: worktree-new
description: Create a task worktree with `aidrian worktree new` and run the project's bootstrap. Use when a task needs one.
---

# worktree-new

A thin adapter for `aidrian worktree new`. The command owns the git and setup steps; never run them yourself.

## Inputs

- **Branch**: from the request or its issue, in the project's branch format, else the `knowledge` skill's default.
  When the request is too vague to name one, ask.
- **Base**: `origin/<defaultBranch>` from config.json unless the request names another ref.

## Run

1. Plan first and show the result's `worktree_path` and `branch_mode`:

   ```bash
   aidrian worktree new <branch> --plan [--base <ref>] [--fetch]
   ```

2. Ask before you create:
   - `branch_mode: new`: Proceed or Cancel.
   - `reuse-local` or `reuse-remote`: the branch already exists. Ask Reuse, Choose another name, or Cancel.
   - Skip the question only when the caller already approved this exact plan.
3. Create: the same command without `--plan`. Add `--reuse-existing` only after a reuse was approved.
   The project's bootstrap command (config.json `git.worktrees.bootstrap`) runs inside the new worktree and can take minutes,
   so give the shell call a 10-minute timeout.
4. On `"status": "created"`, report `worktree_path`, `branch`, and `branch_mode`, and run every later command inside `worktree_path`.
5. On `"status": "blocked"`, relay `phase`, `reason`, and `next_step` as they are.
   After a failed fetch, offer the same run without `--fetch`. Never delete what a failed run left: a failed bootstrap keeps the worktree.

Worktrees go in `.worktrees/` at the repository root unless config.json `git.worktrees.dir` moves them.
The command never commits, pushes, opens a pull request, or moves uncommitted changes.
When `aidrian` is not on your PATH, run it from the folder that holds the `aidrian-knowledge` the start hook names.

Versions

The database has no other skills named worktree-new.

Database snapshot: 13.11.2026 · package version e1ee4f747163 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100worktree
    Creates new git worktree with symlinked/copied assets and independent environment setup. Triggers on keywords: worktree, create worktree, new worktree, git worktree
  • 100ac-git-worktree
    Creates a git worktree with asset setup, serial branch/bootstrap creation, shared worker-wave environment setup, and direnv wiring. Triggers on keywords: worktree, create worktree, new worktree, git worktree
  • 100worktree
    Create and setup a git worktree with all necessary files and dependencies. Use when starting work on a new feature branch.
  • 100create-worktree
    Create a ClickHouse git worktree with submodules hardlinked from the main repo. Use when the user wants to create a new worktree for ClickHouse development.
  • 100create-worktree
    Creates a new git/jj worktree for development work with proper setup, dependencies, and optional thoughts initialization. Use when user needs to create a new worktree for feature development or bug fixes.
  • 100worktree
    Create a new git worktree from origin/trunk in ~/worktrees.nosync and copy node_modules. Use when the user wants to "create a worktree", "new worktree", "start a worktree branch", or needs an isolated working directory for a feature branch.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.