skills/verify-worktree-plugins/SKILL.md
Verify worktree plugin patches are intact after plugin updates. Checks compound-engineering and superpowers skills for Claude Code launch instructions.
npx skillsauth add skinnyandbald/fish-skills verify-worktree-pluginsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
After plugin updates, the worktree skills (compound-engineering git-worktree, superpowers using-git-worktrees) lose custom patches that tell Claude Code to launch new instances in worktree directories.
| Component | What's Verified |
|---|---|
| compound-engineering SKILL.md | "Claude Code + Worktree Working Directory" section |
| compound-engineering worktree-manager.sh | "Open a NEW Claude Code instance" banner after create |
| superpowers SKILL.md | "Launch Claude Code" in step 5 report |
| PreCompact hook | getWorktreeContext function for compaction survival |
Both marketplace and latest cache versions are checked.
bash ~/.claude/scripts/verify-worktree-plugins.sh
bash ~/.claude/scripts/verify-worktree-plugins.sh --patch
The --patch flag cannot auto-fix the TypeScript hook. Regenerate it manually:
The hook at ~/.claude/hooks/context-compression-hook.ts needs a getWorktreeContext() function that:
git rev-parse --git-dir to detect if CWD is a worktree (path contains /worktrees/)<system-reminder> during compactionRegenerate it with this structure:
import { execSync } from "node:child_process";
function getWorktreeContext(): string | null {
// Check git-dir for "/worktrees/" to detect worktree
// Return formatted context string with branch, path, main repo
// Return null if not in a worktree
}
// In main(): call getWorktreeContext() and console.log if non-null
Show the verification output and note any files that needed patching.
Claude Code's statusline, git context, and system prompt are set at launch time. Running cd in a Bash tool call does NOT change the process CWD. After auto-compact, Claude reverts to the launch directory's context. Each worktree needs its own Claude Code instance launched from that directory (cd /path && claude).
The worktree plugin patches ensure Claude always tells the user to open a new terminal and launch Claude Code from the worktree directory after creation.
compound-engineering pluginsuperpowers plugindevelopment
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
development
Reviews the feature you just built and adds missing test coverage. Focuses on behavior that matters — not coverage metrics. Use after completing a feature to identify untested code paths, edge cases, and risk areas.
development
Auto-detects your test framework, runs the full suite, diagnoses failures, and fixes them. Use after making code changes to verify tests pass, or when you encounter test failures you want diagnosed and fixed automatically.