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.5 $0.00022 $0.00221
Sonnet 5.5 $0.00011 $0.00110
Haiku 4.5 $0.00006 $0.00055

Measured 1mo ago against content hash 6a8b12233608, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

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. 1mo ago 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 1mo ago), licensed MIT. It adds 55 tokens to every session and 552 once invoked, about $0.0002 per session on Opus 5.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

diagnose-errors compared with skills from other repositories

diagnose-errors next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagnose-errorslidonation/Cardano-mcpSkill21mo agoMITA55Claude Code
code-changesJanDeDobbeleer/oh-my-poshSkill24k2d agoMITA48Claude Code, Codex
nostr-replaceable-event-mutation-overwritedivinevideo/divine-mobileSkill264yesterdayMPL-2.0A172Claude Code, Codex
nostr-addressable-event-dual-tag-querydivinevideo/divine-mobileSkill264yesterdayMPL-2.0A175Claude Code, Codex
nostr-addressable-event-d-tag-requirementdivinevideo/divine-mobileSkill264yesterdayMPL-2.0A114Claude Code, Codex
divine-relay-video-requirementsdivinevideo/divine-mobileSkill264yesterdayMPL-2.0A105Claude Code, Codex
ndk-operation-timeout-wrapperdivinevideo/divine-mobileSkill264yesterdayMPL-2.0A88Claude Code, Codex