diagnose-errors

diagnose-errors is a skill for Claude Code from lidonation/Cardano-mcp. It costs 55 tokens per session (552 once invoked), scanned A, original, MIT.

An error-diagnosis workflow for cardano-mcp tool calls, including failed responses and rejected Cardano transactions. Cardano is a blockchain, and cardano-mcp is the tool server being diagnosed.

In plain words
What is it for?
It helps match failures to the error catalog, explain HTTP and decoding errors, and interpret transaction rejection reasons before retrying.
Why use it?
It makes the raw error message the starting point, so fixes are based on the service or ledger's reported cause rather than speculation.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the cardano-status-codes plugin — 1 skill shipped together

Good fit It helps match failures to the error catalog, explain HTTP and decoding errors, and interpret transaction rejection reasons before retrying.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add lidonation/Cardano-mcp
Claude Code
/plugin install cardano-status-codes

Made for: Claude Code.

Or install cardano-status-codes, the plugin that ships this one along with the rest of its 1 skill.

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 diagnose-errors

README.md
[![agentmods](https://agentmods.dev/badge/skills/lidonation/cardano-mcp/diagnose-errors/github.svg)](https://agentmods.dev/skills/lidonation/cardano-mcp/diagnose-errors)
Your own site
<a href="https://agentmods.dev/skills/lidonation/cardano-mcp/diagnose-errors"><img src="https://agentmods.dev/badge/skills/lidonation/cardano-mcp/diagnose-errors/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 diagnose-errors

Your own site · 80×15
<a href="https://agentmods.dev/skills/lidonation/cardano-mcp/diagnose-errors"><img src="https://agentmods.dev/badge/skills/lidonation/cardano-mcp/diagnose-errors.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 552 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.00055 $0.00552
Opus 5 $0.00028 $0.00276
Sonnet 5 $0.00011 $0.00110
Haiku 4.5 $0.00006 $0.00055

Measured today against content hash 6a8b12233608, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-22, from the pricing page.

Security

Grade A, and why

diagnose-errors 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 today.

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.

plugins/cardano-status-codes/skills/diagnose-errors/SKILL.md · 44 lines

How it starts

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

Diagnose before guessing

cardano-mcp tool errors carry real, specific information — an HTTP status from Blockfrost/Koios/Maestro/Kupo, a CBOR/PlutusData deserialization message, or (for submit_transaction) the Cardano ledger's own rejection reason. That's much more useful than it looks at first glance, but only if it's actually read rather than treated as an opaque failure to retry or apologize for.

Workflow

  1. When a cardano-mcp tool call returns isError: true, or a contracts module tool returns status: "error", read ${CLAUDE_PLUGIN_ROOT}/reference/error-catalog.md before proposing a fix or retrying.
  2. Match the error text against the catalog: which client produced it (Blockfrost/Koios/Maestro/Kupo/CBOR/ledger-rejection), what the status/message actually means, and the catalog's suggested fix.
  3. Explain the real cause to the user in those terms — "Blockfrost returned 403, which means the project ID doesn't match the configured network" beats "something went wrong, let me try again."
  4. If the error doesn't match anything in the catalog, say so explicitly and reason from the raw message rather than pattern-matching it to the closest catalog entry that doesn't quite fit.
  5. For submit_transaction specifically: never resubmit the same signed CBOR after a ledger rejection. The catalog's fixes are all "rebuild the transaction" (fresh UTxOs, fresh TTL, corrected fee) — a rejected transaction's problem doesn't go away by retrying the exact same bytes.

Why this exists

An agent's first instinct on a tool error is often to guess — "maybe the network is down, let me retry" — when the error text already states the real cause precisely (a 403 from Blockfrost, a BadInputsUTxO ledger rejection). Consulting a known catalog of what this server's own errors actually mean, the same way aiken-verify consults the real compiler instead of guessing whether code compiles, turns a vague "it failed" into a correct, specific diagnosis.

Read the full file on GitHub · 44 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. today First seen · 44 lines · 55 tokens per session scan A 6a8b12233608

Subscribe to this mod's changes

diagnose-errors is a skill published in the GitHub repository lidonation/Cardano-mcp (2 stars, last pushed yesterday), licensed MIT. It adds 55 tokens to every session and 552 once invoked, about $0.0003 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-09-21.

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

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

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