do-install
Install the maverick CLI tool system-wide from the plugin directory.
SKILL.mdskills/do-install/SKILL.md
GitHubInstall Maverick CLI
Install the maverick CLI at the version that matches this plugin — from source in a local dev checkout, or the matching maverick-harness release from PyPI otherwise.
Execution Context
This skill runs in its own forked context (context: fork) — you are
executing it directly; there is no separate agent to dispatch. Follow the
process below exactly and end with a structured result: task, SUCCESS or
FAILURE, what was done, and any warnings.
Process
Locate the plugin root. If
${CLAUDE_PLUGIN_ROOT}is set, use that. Otherwise resolve two levels above thisSKILL.md(i.e. the parent ofskills/do-install/). Fail with a clear error ifhooks/install_cli.pyis not found under the resolved path.Run the installer. From a shell:
python3 <plugin-root>/hooks/install_cli.py --plugin-root <plugin-root>The script (stdlib-only, so it runs before the CLI exists) performs the install procedure end-to-end:
- verifies
uvis on PATH - verifies
gh(GitHub CLI) is on PATH — Maverick workflows depend on it for issue and PR operations; the installer fails with platform-specific install instructions if missing - decides what to install: the plugin root itself when it contains
pyproject.toml(a source checkout), otherwisemaverick-harness==<plugin version>from PyPI - removes the legacy
maverickuv tool if present (the CLI's distribution was renamed tomaverick-harness; the command is stillmaverick) - runs
uv tool install --force <source-or-release> - verifies
maverickis on PATH (warns about~/.local/binif not) - adds
Read(~/.claude/plugins/cache/thermite/maverick/**)to~/.claude/settings.jsonpermissions.allow(idempotent)
- verifies
Verify. Run
maverick --helpand capture the first line.Report. Return a structured result: what was installed (source path or PyPI release), whether the settings file was modified or already had the permission entry, and any PATH warnings.