Worktree Status Check banner
davila7 davila7

Worktree Status Check

Productivity community intermediate

Description

Verify the current worktree environment and show task details.

Installation

Terminal
claude install-skill https://github.com/davila7/claude-code-templates

README


allowed-tools: Bash(git:*), Bash(cat:*), Bash(pwd:*), Bash(ls:*) description: Check current worktree status, branch, and assigned task

Worktree Status Check

Verify the current worktree environment and show task details.

Instructions

You are inside a worktree (or the main repo). Gather and display the current status clearly.

Step 1: Detect Worktree

    undefined

If this is **not** a worktree, inform the user:

You're in the main repository, not a worktree. Use `/worktree-init` to create worktrees.

Then list any existing worktrees and exit.

Step 2: Show Branch Info

    undefined

Step 3: Read Task

    undefined

Step 4: Show Working Status

Run and display:

    undefined

Step 5: Display Summary

Present a clean summary:

Worktree Status
──────────────────────────────────
Branch:    wt/
Task:      
Commits:    ahead of main
Modified:   files
Staged:     files
Untracked:  files
──────────────────────────────────

If there are changes ready to deliver, suggest: "Run `/worktree-deliver` when you're ready to commit, push, and create a PR."