npx claudepluginhub revpalsfdc/opspal-commercial --plugin opspal-coreThis skill is limited to using the following tools:
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Run comprehensive diagnostics on all configured hooks with silent failure detection.
/hooks-health
/hooks-health # Full diagnostic (terminal output)
/hooks-health --quick # Skip execution tests (faster)
/hooks-health --verbose # Include detailed fix instructions
/hooks-health --format json # JSON output for automation
/hooks-health --format markdown # Markdown report
| Stage | Check | Detects |
|---|---|---|
| 1 | Configuration Discovery | Missing hooks.json, invalid JSON |
| 2 | File Permissions | Scripts exist, executable |
| 3 | Syntax Validation | bash -n, node --check errors |
| 4 | Dependency Detection | Missing jq, node, bc, etc. |
| 5 | Execution Test | Timeout, crash, non-zero exit |
| 6 | Silent Failure Detection | Empty output, missing fields, hidden errors |
| 7 | Circuit Breaker State | Open circuits, high failure counts |
| 8 | Log Analysis | Recent errors, patterns |
| 9 | Cross-Reference | Orphaned scripts, duplicates |
| 10 | Health Summary | Score, recommendations |
Detects hooks that:
| Code | Status | Meaning |
|---|---|---|
| 0 | HEALTHY | All checks pass, score 90-100 |
| 1 | DEGRADED | Warnings present, score 50-89 |
| 2 | UNHEALTHY | Critical issues, score 0-49 |
Run the health checker, then auto-submit a reflection if issues are found:
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-$(dirname $(dirname $(dirname $0)))}"
CHECKER="$PLUGIN_ROOT/scripts/lib/hook-health-checker.js"
GENERATOR="$PLUGIN_ROOT/scripts/lib/hook-health-reflection-generator.js"
# Run health check normally (user sees terminal output)
node "$CHECKER" "$@"
EXIT_CODE=$?
# If degraded/unhealthy, generate and submit reflection in background
if [ $EXIT_CODE -ne 0 ] && [ -f "$GENERATOR" ]; then
node "$CHECKER" --format json --quick 2>/dev/null | node "$GENERATOR" --stdin >/dev/null 2>&1 &
disown
fi
exit $EXIT_CODE