# /verify — Pre-Commit Gate

Run before `git commit`. Tests and tool registration check.

## Steps

### 1. Tool Count
```bash
uv run python -c "from livemcp.server import mcp; print(f'{len(mcp._tool_manager._tools)} tools registered')"
```
✅ 171 tools | ❌ If count is wrong, check server.py registrations

### 2. Syntax Check (all Python files)
```bash
find . -name "*.py" -not -path "./.venv/*" | xargs -I{} python3 -c "import py_compile; py_compile.compile('{}', doraise=True)"
```
✅ All files valid | ❌ Report syntax errors

### 3. Lint (Ruff)
```bash
uv run ruff check src/livemcp/
```
✅ Clean | ❌ Fix with `uv run ruff check --fix src/livemcp/`

### 4. Git Status
```bash
git status
```
✅ No `.env` or credentials in staging

### 4. Remote Script Check
```bash
ls -l ~/Music/"Ableton/User Library/Remote Scripts/LiveMCP/" | grep __init__
```
✅ Symlink intact | ⚠️ If broken, run `./scripts/install.sh`

## Output

```
/verify Report

1. Tools        ✅ 171 tools registered
2. Syntax       ✅ All Python files valid
3. Lint         ✅ Ruff clean
4. Git status   ✅ Clean
5. Remote script ✅ Symlink intact

RESULT: ✅ SAFE TO COMMIT
```
