Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

snapback

БесплатноБез исполняемых скриптовНе проверен

Diagnose why an AI-agent run failed and get a structured fix — and catch failures live, mid-run, before they burn your budget. Use this skill WHENEVER an…

ra1labsworkx-wqот ra1labsworkx-wq636 установок в других каталогах

Об этом скилле

Snapback — AI agent failure diagnosis + live guardian

When it earns its keep: diagnose the HARD failures — complex, multi-agent, or subtle ones with no clear error message. For a failure whose error message already says what's wrong, just read your logs. The free mid-run guards (detect_loop, budget_guard) cover the frequent cheap cases, so you only pay to diagnose the ~30% that would otherwise cost you hours.

Snapback tells you why an agent run failed and how to fix it — and can watch a run as it happens and warn you in real time. It's a standard MCP server (Streamable HTTP), so any MCP-capable agent connects and calls its tools — OpenClaw, GitHub Copilot, Hermes (Ollama/vLLM), Claude / Claude Code, Cursor, OpenAI Agents, or a custom client.

Why it's safe to trust with your runs: diagnosis is library-first — a known error returns a curated, verified fix with no LLM call in sub-150ms (an LLM-assisted fallback runs only when the library has no match, and its fixes are never auto-applied). The self-heal gate auto-applies only reversible, high-confidence library fixes (retry/refetch/config) and escalates every state-changing action — payments, auth, mutations, anything destructive — to a human, at any confidence, so it's safe to run unattended. The plugin is client-side and zero-dependency; you send only the error/step structure you pass it, and Snapback scrubs secret patterns server-side as well. Independently evaluated 4.5/5, "approve for production," with the on-chain payment path verified live. MIT-licensed client, hosted service — you can read exactly what the interceptor does before enabling auto_apply.

Connect

  • Endpoint: https://api.snapback.sh/mcp (Streamable HTTP / JSON-RPC 2.0)
  • Discovery: https://snapback.sh/.well-known/mcp.json (tool list + schemas) · machine guide: https://snapback.sh/llms.txt
  • Auth: Authorization: Bearer $SNAPBACK_TOKEN for the metered tools. Everything else is free, no token.

Calling a tool — IMPORTANT. The only top-level JSON-RPC methods are initialize, tools/list, and tools/call. Call every tool through tools/call — never as a top-level method (that returns -32601 method not found):

{"jsonrpc":"2.0","id":1,"method":"tools/call",
 "params":{"name":"diagnose_trace","arguments":{"trace":{"...":"..."}}}}

The result is in result.content[0].text as a JSON string — parse it.

Latency / treat diagnose as async. Known patterns return library-instant (<1s, no LLM). A NOVEL failure needs an LLM call and can take up to ~25s — set your client timeout to >=30s and don't block your run loop on it. The mid-run guards (detect_loop, budget_guard) and diagnose_infra_error are always <1s.

  • Production (recommended): pay-per-call via x402 at /mcp/x402 — no account, no limits. POST a trace, get an HTTP 402, pay ~$0.0032 USDC from your wallet, get the verdict. Works on both Solana and EVM chains (Base and other EVM networks); pick the chain your agent already runs on.
  • Validating first? Self-register for a starter allowance: POST https://api.snapback.sh/v1/agents/register with {"name":"my-agent","framework":"openclaw","accepted_terms":true} (accepted_terms required — agrees to https://snapback.sh/legal/terms). Returns a token; store it as SNAPBACK_TOKEN.

Register it once:

openclaw mcp add snapback --transport streamable-http --url https://api.snapback.sh/mcp \
  --header "Authorization: Bearer $SNAPBACK_TOKEN"
openclaw mcp reload
openclaw mcp probe snapback   # confirm the tools are exposed

Tools

Tool Auth Metered When to use
search_docs(query) none no Learn the trace format / taxonomy / pricing / free-vs-metered. Call first if unsure.
detect_loop(steps, threshold?) none no Mid-run: are you repeating a tool call? Catch a loop before the step limit.
budget_guard(...) none no Mid-run: context / token / cost / step guards with concrete suggested actions. No LLM.
convert_trace(source) none no Turn raw logs / OTel spans / message lists into a Snapback trace (so you don't hand-craft JSON).
session_start() none no Live: open a session so Snapback watches your run step-by-step.
session_step(session_id, step, counters?) none no Live: report a step, get loop/budget warnings back inline in real time.
session_end(session_id) none no Live: close the session, get a run summary.
agent_memory(limit?) token no Your recurring failure patterns ("you loop on web_search 40% of the time"). Call before a run.
preflight(agent_stack?, tags?) token no Before running: known failure patterns for your setup.
diagnose_trace(trace) token yes After a failure: full verdict — failure_class, root_cause, fix_suggestion, confidence.
diagnose_batch(traces) to
Полный SKILL.md на ClawHub

Установить snapback в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл snapback?

Diagnose why an AI-agent run failed and get a structured fix — and catch failures live, mid-run, before they burn your budget. Use this skill WHENEVER an agent run loops, stalls, hits a step/token/context limit, returns the wrong output, or fails and you want to know WHY and HOW to fix it. Also use it DURING a run: detect_loop and budget_guard catch a runaway before the step limit; a live session streams your steps and warns you in real time. Triggers: "why did my agent fail", "it keeps looping", "diagnose this run", "the agent repeated the same tool call", "hit the step limit", "running out of context", "burning tokens", "wrong output", "detect a loop", "watch my run", "check my agent before running". Connects over MCP; most tools are free (discovery, docs, loop + budget checks, live sessions, and instant infrastructure-error diagnosis across 46 families), diagnosis is metered (token or pay-per-call via x402 on Solana or EVM — no account needed).

Как установить скилл snapback?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл snapback запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить snapback с