worktrees:status
Display comprehensive worktree status including active worktrees, stale references, and uncommitted changes. Invoke with "/worktrees:status" or when user mentions "worktree status", "list worktrees", "check worktrees", "worktree health", or "audit worktrees".
What this skill does
# Worktree Status
Display comprehensive status of all worktrees.
## Procedure
Run these commands to gather worktree status:
### 1. List Active Worktrees
```bash
echo "=== Active Worktrees ===" && git worktree list
```
### 2. Check for Stale References
```bash
echo "=== Stale References ===" && git worktree prune --dry-run 2>&1 || echo "None found"
```
### 3. Check Uncommitted Changes Across Worktrees
```bash
echo "=== Uncommitted Changes ===" && for wt in $(git worktree list --porcelain | grep "^worktree " | cut -d ' ' -f 2); do
changes=$(cd "$wt" && git status --porcelain 2>/dev/null | head -5)
if [ -n "$changes" ]; then
echo ""
echo "๐ $wt:"
echo "$changes"
count=$(cd "$wt" && git status --porcelain 2>/dev/null | wc -l | tr -d ' ')
if [ "$count" -gt 5 ]; then
echo " ... and $((count - 5)) more files"
fi
fi
done
echo ""
echo "Worktrees with no changes not shown."
```
### 4. Check for Locked Worktrees
```bash
echo "=== Locked Worktrees ===" && for wt in $(git worktree list --porcelain | grep "^worktree " | cut -d ' ' -f 2); do
if [ -f "$wt/../.git/worktrees/$(basename $wt)/locked" ] 2>/dev/null || git worktree list --porcelain | grep -A5 "^worktree $wt$" | grep -q "^locked"; then
echo "๐ $wt"
fi
done || echo "None"
```
## Output Interpretation
### Active Worktrees
```
/path/to/project abc1234 [main]
/path/to/project/.worktrees/feature def5678 [feature/auth]
```
- First column: worktree path
- Second column: HEAD commit
- Third column: branch name
### Stale References
If `git worktree prune --dry-run` shows output, you have stale entries:
```
Removing worktrees/old-feature: gitdir file points to non-existent location
```
**Fix:** Run `git worktree prune` to clean up.
### Uncommitted Changes
Shows files with uncommitted changes in each worktree:
```
๐ /path/to/project/.worktrees/feature:
M src/auth/service.ts
?? src/auth/new-file.ts
```
Status codes:
- `M` - Modified
- `A` - Added (staged)
- `D` - Deleted
- `??` - Untracked
- `UU` - Merge conflict
## Quick Health Check
Run all checks in one command:
```bash
echo "=== WORKTREE STATUS ===" && \
echo "" && \
echo "๐ Active Worktrees:" && \
git worktree list && \
echo "" && \
echo "๐งน Stale References:" && \
(git worktree prune --dry-run 2>&1 | grep -v "^$" || echo " None") && \
echo "" && \
echo "๐ Uncommitted Changes:" && \
for wt in $(git worktree list --porcelain | grep "^worktree " | cut -d ' ' -f 2); do
changes=$(cd "$wt" && git status --porcelain 2>/dev/null)
if [ -n "$changes" ]; then
echo " $wt: $(echo "$changes" | wc -l | tr -d ' ') files"
fi
done && \
echo "" && \
echo "Done."
```
## Recommended Actions
Based on status output:
| Finding | Action |
|---------|--------|
| Stale references | Run `git worktree prune` |
| Uncommitted changes | Commit, stash, or discard |
| Old worktrees | Use `/worktrees:finish` to clean up |
| Locked worktrees | Unlock with `git worktree unlock <path>` if no longer needed |
## Related Skills
- `/worktrees:new` - Create a new worktree
- `/worktrees:finish` - Clean up completed worktree
- `/worktrees:concepts` - Reference documentation
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations โ diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.