TR

troubleshoot-errors

Troubleshoots smart contract failures, transaction errors, and SDK exceptions.

Install

mkdir -p .claude/skills/troubleshoot-errors && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18237" && unzip -o skill.zip -d .claude/skills/troubleshoot-errors && rm skill.zip

Installs to .claude/skills/troubleshoot-errors

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Diagnose and fix common Algorand errors including smart contract failures, transaction rejections, and SDK exceptions. Use when encountering smart contract logic errors or assertion failures, transaction rejections or confirmation timeouts, SDK exceptions (AlgodHTTPError, LogicError), account-related errors (insufficient balance, not opted in), or ABI encoding/decoding errors. Strong triggers include "logic eval error", "assert failed", "overspend", "transaction rejected", "pc=X" in error messages, "opcode budget exceeded", "account not found", "asset not found".
569 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Beginner

Key capabilities

  • Identify Algorand error types
  • Find root causes of contract errors
  • Resolve transaction rejection issues
  • Address opcode budget exceeded errors
  • Fix asset not opted in problems

How it works

The skill identifies the error type from the message, checks for error codes, finds the root cause using reference documentation, and applies a fix from common solutions.

Inputs & outputs

You give it
Algorand error message or description of issue
You get back
Identified cause and proposed solution for the Algorand error

When to use troubleshoot-errors

  • Debug smart contract error
  • Troubleshoot transaction failure
  • Resolve SDK exceptions

About this skill

Troubleshoot Errors

Diagnose and resolve common Algorand development errors.

Error Categories

CategoryCommon CausesReference
Contract ErrorsAssert failures, opcode budget, invalid operationscontract-errors.md
Transaction ErrorsOverspend, invalid params, group issuestransaction-errors.md

Quick Diagnosis Flow

  1. Identify the error type from the message
  2. Check the error code if present (e.g., pc=123)
  3. Find the root cause using the reference docs
  4. Apply the fix from the common solutions

Common Error Patterns

Logic Eval Error (Contract Failure)

logic eval error: assert failed pc=123

Cause: An assert statement in the smart contract evaluated to false.

Debug steps:

  1. The pc=123 indicates the program counter where failure occurred
  2. Use source maps to find the exact line in your code
  3. Check the assertion condition and input values

Transaction Rejected

TransactionPool.Remember: transaction TXID: overspend

Cause: Sender account has insufficient balance for amount + fee.

Fix: Fund the sender account or reduce the transaction amount.

Opcode Budget Exceeded

logic eval error: dynamic cost budget exceeded

Cause: Contract exceeded the 700 opcode budget per app call.

Fix:

  • Add more app calls to the group for additional budget (pooled)
  • Optimize contract logic to reduce operations
  • Split complex operations across multiple calls

Asset Not Opted In

asset ASSET_ID missing from ACCOUNT_ADDRESS

Cause: The receiving account hasn't opted into the asset.

Fix: Have the receiver opt in before transferring:

algorand.send.asset_opt_in(AssetOptInParams(
    sender=receiver_address,
    asset_id=asset_id,
))

How to Proceed

  1. Find your error in the category references below
  2. Understand the cause from the explanation
  3. Apply the solution from the code examples

References

When not to use it

  • When the error is not related to Algorand smart contracts, transactions, or SDK exceptions
  • When the error message does not contain strong triggers like 'logic eval error' or 'transaction rejected'

Limitations

  • Limited to common Algorand development errors
  • Relies on specific error message patterns for diagnosis
  • Solutions are based on documented common fixes

How it compares

This skill provides a structured, Algorand-specific debugging approach by categorizing errors and offering targeted solutions, unlike general programming troubleshooting.

Compared to similar skills

troubleshoot-errors side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
troubleshoot-errors (this skill)05moNo flagsBeginner
n8n-expression-syntax63moNo flagsBeginner
claude-in-chrome-troubleshooting21moReviewIntermediate
openrouter-common-errors310dCautionIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

n8n-expression-syntax

czlonkowski

Validate n8n expression syntax and fix common errors. Use when writing n8n expressions, using {{}} syntax, accessing $json/$node variables, troubleshooting expression errors, or working with webhook data in workflows.

6111

claude-in-chrome-troubleshooting

trailofbits

Diagnose and fix Claude in Chrome MCP extension connectivity issues. Use when mcp__claude-in-chrome__* tools fail, return "Browser extension is not connected", or behave erratically.

211

openrouter-common-errors

jeremylongshore

Execute diagnose and fix common OpenRouter API errors. Use when troubleshooting failed requests. Trigger with phrases like 'openrouter error', 'openrouter not working', 'openrouter 401', 'openrouter 429', 'fix openrouter'.

39

linear-common-errors

jeremylongshore

Diagnose and fix common Linear API errors. Use when encountering Linear API errors, debugging integration issues, or troubleshooting authentication problems. Trigger with phrases like "linear error", "linear API error", "debug linear", "linear not working", "linear authentication error".

16

gamma-common-errors

jeremylongshore

Debug and resolve common Gamma API errors. Use when encountering authentication failures, rate limits, generation errors, or unexpected API responses. Trigger with phrases like "gamma error", "gamma not working", "gamma API error", "gamma debug", "gamma troubleshoot".

12

groq-common-errors

jeremylongshore

Diagnose and fix Groq common errors and exceptions. Use when encountering Groq errors, debugging failed requests, or troubleshooting integration issues. Trigger with phrases like "groq error", "fix groq", "groq not working", "debug groq".

12

Search skills

Search the agent skills registry