wt-switch-create

Solid

Create a new worktrunk worktree (optionally in another repo) and switch this session's working directory into it. Use when launching a session that should work in its own worktree (e.g. `/wt-switch-create my-branch -- <task>`, or `/wt-switch-create my-branch ~/workspace/other-repo -- <task>`), or mid-session to move work into a fresh branch.

Code & Development 5,190 stars 176 forks Updated today NOASSERTION

Install

View on GitHub

Quality Score: 89/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

Arguments: `$ARGUMENTS`. Grammar: `<branch> [<repo>] [-- <task>]`. - **branch** — required first token; the branch name for the new worktree. - **repo** — optional path; create the worktree in this repo instead of the session's current one. - **task** — optional; what to do inside the new worktree. No task means enter the worktree and wait. Without a `--`: a path-shaped second token (absolute, `~`-relative, `./`- or `../`-relative, or an existing directory) is the repo, and the task starts after it. Otherwise the task starts at the second token. ``` /wt-switch-create my-feature -- fix the parser bug /wt-switch-create my-feature ~/workspace/other-repo -- fix the parser bug /wt-switch-create my-feature ``` ## What to do 1. **First action — before reading any files or running any commands:** - If a repo was given, `cd` into it first with a `Bash` call (the working directory persists for the rest of the session). `EnterWorktree` has no repo parameter — it creates the worktree wherever the session is rooted. - Then call `EnterWorktree({name: "<branch-name>"})`. This re-roots the session into the new worktree. If a repo was given, confirm the new worktree landed under it; if not, the `cd` didn't take — report it and stop. - It works because this plugin maps `WorktreeCreate` → `wt switch --create <name> --no-cd --format=json`, so the new worktree lands in worktrunk's normal sibling layout (`<repo>.<branch>/`), not under `.cl...

Details

Author
max-sixty
Repository
max-sixty/worktrunk
Created
7 months ago
Last Updated
today
Language
Rust
License
NOASSERTION

Related Skills

Code & Development Featured

code-reviewer

Analyzes code diffs and files to identify bugs, security vulnerabilities (SQL injection, XSS, insecure deserialization), code smells, N+1 queries, naming issues, and architectural concerns, then produces a structured review report with prioritized, actionable feedback. Use when reviewing pull requests, conducting code quality audits, identifying refactoring opportunities, or checking for security issues. Invoke for PR reviews, code quality checks, refactoring suggestions, review code, code quality. Complements specialized skills (security-reviewer, test-master) by providing broad-scope review across correctness, performance, maintainability, and test coverage in a single pass.

9,342 Updated 5 days ago
Jeffallan
Code & Development Featured

security-reviewer

Identifies security vulnerabilities, generates structured audit reports with severity ratings, and provides actionable remediation guidance. Use when conducting security audits, reviewing code for vulnerabilities, or analyzing infrastructure security. Invoke for SAST scans, penetration testing, DevSecOps practices, cloud security reviews, dependency audits, secrets scanning, or compliance checks. Produces vulnerability reports, prioritized recommendations, and compliance checklists.

9,342 Updated 5 days ago
Jeffallan
Code & Development Featured

parallel-investigation

Coordinates parallel investigation threads to simultaneously explore multiple hypotheses or root causes across different system areas. Use when debugging production incidents, slow API performance, multi-system integration failures, or complex bugs where the root cause is unclear and multiple plausible theories exist; when serial troubleshooting is too slow; or when multiple investigators can divide root-cause analysis work. Provides structured phases for problem decomposition, thread assignment, sync points with Continue/Pivot/Converge decisions, and final report synthesis.

745 Updated 1 months ago
rohitg00