soroban-diagnose

soroban-diagnose is a skill for Claude Code, Codex from kaankacar/soroban-diagnose. It costs 46 tokens per session (961 once invoked), scanned A, original, Apache-2.0.

A diagnostic tool for Soroban, the smart-contract platform on the Stellar network, that explains failed transactions and test simulations.

In plain words
What is it for?
Investigating transaction hashes, simulation responses, base64 XDR data, and Soroban contract error codes.
Why use it?
It turns difficult-to-read transaction errors into a structured diagnosis with likely causes and evidence from the network state.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Investigating transaction hashes, simulation responses, base64 XDR data, and Soroban contract error codes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kaankacar/soroban-diagnose/skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kaankacar/soroban-diagnose --skill skill
Clone the repo
git clone --depth 1 https://github.com/kaankacar/soroban-diagnose

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for soroban-diagnose

README.md
[![agentmods](https://agentmods.dev/badge/skills/kaankacar/soroban-diagnose/skill/github.svg)](https://agentmods.dev/skills/kaankacar/soroban-diagnose/skill)
Your own site
<a href="https://agentmods.dev/skills/kaankacar/soroban-diagnose/skill"><img src="https://agentmods.dev/badge/skills/kaankacar/soroban-diagnose/skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for soroban-diagnose

Your own site · 80×15
<a href="https://agentmods.dev/skills/kaankacar/soroban-diagnose/skill"><img src="https://agentmods.dev/badge/skills/kaankacar/soroban-diagnose/skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 961 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00961
Opus 5 $0.00023 $0.00481
Sonnet 5 $0.00009 $0.00192
Haiku 4.5 $0.00005 $0.00096

Measured 10d ago against content hash 04c46dcc70d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

soroban-diagnose scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skill/SKILL.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Diagnosing failed Soroban transactions

This skill wraps soroban-diagnose, a deterministic (no-LLM) resolver that turns a failed transaction/simulation into one normalized diagnosis envelope: the error at each of the five layers, ranked probable causes with evidence from live ledger state, and concrete fix + verify commands.

Decision tree

  1. You have a transaction hash (64 hex chars):
    soroban-diagnose tx <hash> --network <testnet|mainnet|futurenet> 
    
  2. You have a simulateTransaction response (JSON): save it to a file and pass the transaction you simulated too — it unlocks state-lookup evidence:
    soroban-diagnose sim --file sim.json --request-xdr <envelope-b64> --network testnet
    
  3. You have raw base64 XDR (a TransactionResult from a sendTransaction ERROR, a TransactionEnvelope, TransactionMeta, or a DiagnosticEvent):
    soroban-diagnose xdr <base64> --network testnet
    
  4. You only need a contract error code decoded (Error(Contract, #N)):
    soroban-diagnose resolve-error <C...contract-id> <N> --network testnet
    

Prefer the MCP server when it is registered (soroban-diagnose-mcp): call the diagnose_failure tool with the same inputs, or resolve_contract_error for bare codes. Default responses are compact (~1k tokens); pass verbose: true only when the compact evidence is insufficient.

Reading the envelope

  • error.id — stable namespaced identity (soroban.contract.error, soroban.host.budget.exceeded_limit, tx.bad_seq); match on this, not on prose.
  • error.contract_error.nameError(Contract, #7) resolved to its enum variant via the deployed wasm's spec. resolved_from: null means it genuinely cannot be named (no spec / out of range) — do not invent a name.
  • diagnoses[] — ranked causes. confirmed: true means a state lookup verified the hypothesis; confidence ≤ 0.5 means unverified hypothesis. Relay the top cause's explanation, fix.summary, and fix.commands to the user; mention runner-ups only if the top is unconfirmed.
  • unresolved[] — honest gaps (no rule matched, missing diagnostics, RPC unavailable). If diagnoses is empty, report the extracted layers and the unresolved reasons instead of guessing.

Read the full file on GitHub · 77 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 77 lines · 46 tokens per session scan A 04c46dcc70d7

Subscribe to this mod's changes

soroban-diagnose is a skill published in the GitHub repository kaankacar/soroban-diagnose (1 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 46 tokens to every session and 961 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

code-changes

Orchestration workflow for any task that ends in code changes: issue analysis, pull request review, feature implementation, bug fixes, refactors, or fleshing out an idea. MUST be invoked at the start of such a task, before reading or writing any code. Defines how to analyze first, gate on user approval, plan, pick the…

JanDeDobbeleer/oh-my-posh · 88 tokens

nostr-addressable-event-dual-tag-query

Fix "count shows X but list shows empty" bugs when querying related events (comments, reactions, zaps, reposts) for Nostr addressable events (Kind 30000-39999). Use when: (1) REST API shows engagement count > 0 but WebSocket query returns empty, (2) Comments/reactions exist but app shows "No comments yet" or similar…

divinevideo/divine-mobile · 175 tokens

nostr-replaceable-event-mutation-overwrite

Fix silent data loss when mutating Nostr replaceable events (Kind 0 profile, Kind 3 contact/follow list, Kind 10002 relay list, etc.) in client apps. Use when: (1) Following someone wipes the user's entire follow list, (2) Updating profile metadata loses existing fields, (3) Fresh browser session or mobile login…

divinevideo/divine-mobile · 172 tokens

divine-relay-video-requirements

Fix "blocked: event rejected by relay policy" errors when publishing Kind 34236 (video) events to divine relays. Use when: (1) Kind 0 profile events succeed but Kind 34236 fails, (2) Generic policy rejection with no specific reason, (3) Video events work on other relays but fail on divine relays. The divine relay…

divinevideo/divine-mobile · 105 tokens

ndk-operation-timeout-wrapper

Fix NDK (Nostr Dev Kit) operations hanging indefinitely when relay connections stall. Use when: (1) App freezes during fetchEvents or publish calls, (2) No timeout errors despite network issues, (3) Relay connection appears stuck, (4) Using NDK with unstable or slow relays. NDK operations have no built-in timeout …

divinevideo/divine-mobile · 88 tokens

nostr-addressable-event-d-tag-requirement

Fix duplicate Nostr events (Kind 30000+ parameterized replaceable events) caused by missing d-tag. Use when: (1) Same content appears multiple times on relay for same pubkey, (2) Events aren't being replaced/updated as expected, (3) Publishing NIP-71 video events (Kind 34236) or other addressable events and seeing…

divinevideo/divine-mobile · 114 tokens