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.zipInstalls 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".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
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
| Category | Common Causes | Reference |
|---|---|---|
| Contract Errors | Assert failures, opcode budget, invalid operations | contract-errors.md |
| Transaction Errors | Overspend, invalid params, group issues | transaction-errors.md |
Quick Diagnosis Flow
- Identify the error type from the message
- Check the error code if present (e.g.,
pc=123) - Find the root cause using the reference docs
- 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:
- The
pc=123indicates the program counter where failure occurred - Use source maps to find the exact line in your code
- 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
- Find your error in the category references below
- Understand the cause from the explanation
- Apply the solution from the code examples
References
- Contract Errors - Smart contract and logic errors
- Transaction Errors - Transaction and account errors
- Debugging Guide
- Error Handling in AlgoKit Utils
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| troubleshoot-errors (this skill) | 0 | 5mo | No flags | Beginner |
| n8n-expression-syntax | 6 | 3mo | No flags | Beginner |
| claude-in-chrome-troubleshooting | 2 | 1mo | Review | Intermediate |
| openrouter-common-errors | 3 | 10d | Caution | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by algorandfoundation
View all by algorandfoundation →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.
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.
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'.
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".
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".
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".