brewcodesetuplisted
Install: claude install-skill kochetkov-ma/claude-brewcode
<instructions>
## Phase 0: Prerequisites Check
**Agent:** developer | **Action:** Verify and install required tools
> Auto-checks prerequisites. If all required components are present, skips to Phase 1 silently.
### Step 1: State Check
**EXECUTE** using Bash tool:
```bash
bash "${CLAUDE_SKILL_DIR}/scripts/install.sh" state && echo "✅ state" || echo "❌ state FAILED"
```
> **STOP if ❌** — verify install.sh exists in scripts/.
### Step 2: Evaluate Results
Parse state output table. Required components: **brew**, **timeout**, **jq**.
- All required show ✅ -> Skip to Phase 1 (log: "All prerequisites present, skipping installation.")
- Any required show ❌ -> Continue to Step 3
### Step 2.5: Load Deferred Tool Schemas
Call **ToolSearch** with `query: "select:AskUserQuestion"` to load its schema. Required for Claude Code v2.1.107+ where AskUserQuestion is deferred. If ToolSearch fails, continue -- AskUserQuestion may already be loaded.
### Step 3: Install Required Components
**EXECUTE** using Bash tool:
```bash
bash "${CLAUDE_SKILL_DIR}/scripts/install.sh" check-timeout && echo "✅ timeout-check" || echo "❌ timeout-check FAILED"
```
**If TIMEOUT_EXISTS=false** -> **ASK** (AskUserQuestion): "The `timeout` command is missing. Create symlink to `gtimeout`? This is REQUIRED for brewcode."
Options: "Yes, create" | "Cancel setup"
> **If cancel** -> STOP: "Setup cancelled. timeout command is required for brewcode."
**EXECUTE** using Bash tool:
```bash
bash "${CLAUDE_SKILL_DIR}