worktree-check
Check current worktree status, branch, and assigned task
- 0
- Installs
- —
- Rating
- —
- Success rate
- 1
- Files scanned
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 1e65d5ba3ef03578… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
worktree-check.md
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
- Get the current directory:
pwd - List all worktrees:
git worktree list - Determine if the current directory is a worktree (not the main working tree). The main working tree is listed first in
git worktree listoutput — if the current path matches the first entry, this is the main repo, not a worktree.
If this is not a worktree, inform the user:
You're in the main repository, not a worktree. Use
/worktree-initto create worktrees.
Then list any existing worktrees and exit.
Step 2: Show Branch Info
- Get current branch:
git branch --show-current - Verify it follows the
claude/*,claude-daniel/*, orreview/*naming convention - Show how many commits ahead of origin/main:
git rev-list --count origin/main..HEAD
Step 3: Read Task
- Check if
.worktree-task.mdexists in the worktree root - If it exists, read and display its contents
- If it doesn't exist, note that no task file was found (may have been created manually)
Step 4: Show Working Status
Run and display:
git status --short— show modified, staged, and untracked filesgit diff --stat— show a summary of unstaged changes
Step 5: Display Summary
Present a clean summary:
Worktree Status
──────────────────────────────────
Branch: claude/<name>
Task: <task description from .worktree-task.md>
Commits: <N> ahead of main
Modified: <N> files
Staged: <N> files
Untracked: <N> files
──────────────────────────────────
If there are changes ready to deliver, suggest: "Run /worktree-deliver when you're ready to commit, push, and create a PR."
Files
1- worktree-check.md
95dfad3d0a2.1 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from davila7/claude-code-templates8
Execute GitHub Actions locally using act
Implement secure user authentication system with chosen method and security best practices
Generate and maintain project changelog with Keep a Changelog format
Setup comprehensive mutation testing with framework selection and CI integration
Add and configure new package to workspace with proper structure and dependencies
Setup comprehensive application performance monitoring with metrics, alerting, and observability
Implement property-based testing with framework selection and invariant identification
Add entry to project changelog following Keep a Changelog format
Related methodology skillsscan passed
Conduct a five-axis code review — correctness, readability, architecture, security, performance
Display Stripe test card numbers for various testing scenarios
Safely analyzes and cleans up local git branches and worktrees, categorizing them as merged, squash-merged, superseded, or active work before deleting anything.
Commit, push, and open a PR
Conduct multi-turn deep research on a specific topic — traces actual code paths with zero tolerance for shallow analysis
Review code for Sanity best practices and common issues.