Skip to main content

Module setup_claude

Module setup_claude 

Source
Expand description

Plugin installer for Claude Code integration.

Installs gw as a Claude Code plugin at ~/.claude/plugins/gw/ with two skills (delegate, manage). Removes legacy single-skill installs at ~/.claude/skills/gw/ and ~/.claude/skills/gw-delegate/.

Functionsยง

is_plugin_installed
True if the plugin manifest exists at the canonical path.
is_skill_installed
Backward-compatible alias used by gw doctor. Returns true if either the new plugin OR a legacy skill install is present.
setup_claude
setup_claude_under
Test-friendly variant: install into an arbitrary home root. Avoids reliance on platform env-var lookup (e.g. dirs::home_dir reads USERPROFILE on Windows via SHGetKnownFolderPath, which ignores process-set env vars).