info Report repository type, projects, base branch, worktree root, and dirty state.
- Research:
- Repo metadata
- Review:
- Wrong root
- Validate:
- Info JSON
Quick Ref / Command
Marketing Kit
/ak:worktree
Create, inspect, configure, and clean isolated git worktrees for feature isolation, stale cleanup, health audits, monorepos, and submodules.
Inspect repo
Detect naming
Prefix and slug
Resolve project
Rule 01
Info first: repo type, base branch, projects, and root source drive the create command.
Rule 02
Preserve exact branch names when the user provides one; otherwise infer a boring prefix and short slug.
Rule 03
Dry-run stale cleanup before pruning metadata.
Rule 04
Host-native worktree systems are separate from ak:worktree's own root preference.
Core lanes from input to output, aligned with the command's real execution path.
Start
Input, scope, route
Work
Agent / skill execution
Verify
Gate, review, validation
Close
Report, handoff, artifact
info Report repository type, projects, base branch, worktree root, and dirty state.
list List known worktrees and branches before removal or reuse.
status Health audit with dirty state, base branch, and ahead/behind counts.
create [project] <feature> [options] Create an isolated worktree; options include --prefix, --base, --checkout-submodules, --no-prefix, --worktree-root, --json, --dry-run, and legacy --env.
remove <name-or-path> Force-remove one exact approved worktree and then try branch deletion.
prune Remove stale Git worktree metadata; run prune --dry-run before applying.
Concrete invocations for each flag, subcommand, mode, or route available in the live workflow.
/ak:worktree create onboarding email flow /ak:worktreecreate--no-prefixND-1377-cleanup-docs
/ak:worktree status Worktree result
Pattern
worktreePath • baseBranch • warnings • dependency action JSON-backed fields make branch, path, root source, and warnings explicit.