Skip to main content

Module setup_claude

Module setup_claude 

Source
Expand description

gw setup-claude — project-local one-click installer for Claude Code integration.

Writes skill files into <repo>/.claude/skills/{gw-delegate,gw-manage}/ and registers three Claude Code hooks (PreToolUse Bash guard, WorktreeCreate, WorktreeRemove) in <repo>/.claude/settings.json. Idempotent — re-running only writes files whose content changed.

Functions§

is_installed
Back-compat alias for gw doctor. Resolves repo root and checks installation.
is_installed_in_repo
Returns true if all skill files exist under the repo root’s .claude/skills/gw-*/.
setup_claude
Production entry point.