setup

Register custom Git hooks for the worktree-plus plugin in Claude Code settings.

51|5|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/LeeJuOh/claude-code-zero --skill setup-leejuoh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup
Source: https://github.com/LeeJuOh/claude-code-zero/tree/main/plugins/worktree-plus/skills/setup
Command: npx skills add https://github.com/LeeJuOh/claude-code-zero --skill setup-leejuoh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill ensures that the worktree-plus plugin's custom Git hooks are correctly registered in your Claude Code settings, allowing it to override the default worktree behavior when needed.

Core Features & Use Cases

  • Automatic Hook Registration: Detects whether the plugin was installed via the marketplace or locally and configures the appropriate settings.json file.
  • Handles Existing Hooks: Preserves hooks from other plugins, preventing conflicts.
  • Use Case: If your claude -w commands aren't behaving as expected with worktree-plus, or if you see specific warnings during session startup, running this setup skill will fix the hook registration.

Quick Start

Run the setup script to register worktree hooks for the worktree-plus plugin.

Frequently Asked Questions about setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I register custom Git hooks for worktree-plus in Claude Code?

To register custom Git hooks for worktree-plus, run the setup script which detects your installation type and updates the appropriate settings.json file with the required hook configurations.

Why are my worktree Git hooks not executing when I run claude -w commands?

Worktree Git hooks may not execute because they are missing or incorrectly configured in your Claude Code settings.json file. Running the setup script detects your installation type and registers the hooks properly.

Do I need jq installed to configure worktree hooks in settings.json?

Yes, you need jq installed to configure worktree hooks. The setup script requires jq for JSON manipulation to accurately register, update, and preserve existing hook configurations in your settings.json file.

Will registering worktree hooks overwrite my existing Git hooks in settings.json?

Registering worktree hooks will not overwrite your existing Git hooks. The setup script preserves hooks from other plugins during configuration, preventing conflicts while adding the worktree-plus entries.

What's the best way to fix worktree-plus hook warnings during Claude Code session startup?

To fix worktree-plus hook warnings during session startup, run the setup script to ensure custom Git hooks are correctly registered in settings.json for either marketplace or local installations.