debug-program
Skill by sendaifun
Helps a developer debug a failing Solana program or transaction. It reads the error, simulates the transaction, inspects logs and account state, and traces CPI chains before applying a fix.
Install debug-program
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sendaifun/solana-new /tmp/solana-new && mkdir -p ~/.claude/skills && cp -r /tmp/solana-new/skills/build/debug-program ~/.claude/skills/debug-programRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sendaifun/solana-new /tmp/solana-new && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/solana-new/skills/build/debug-program ~/.gemini/antigravity-cli/skills/debug-programAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill walks an AI assistant through a structured process for diagnosing Solana program errors and failed transactions. It asks for the exact error message, transaction signature or program logs, then follows a debugging workflow. The steps include parsing the error code, simulating the transaction with connection.simulateTransaction, checking account existence, ownership, balance and data, and tracing which program failed in a CPI chain.
The skill also checks a common pitfalls reference for known error patterns, and it can use Surfpool to fork state and replay transactions. It reads and writes a build-context.md file so later skills share context. It is aimed at Solana developers who are stuck on a failing program or transaction.
Written from the project's SKILL.md and checked against it.
What it can do
- Error parsingIdentifies the error code, program and instruction index from the error message.
- Transaction simulationSimulates the transaction with connection.simulateTransaction to get full logs.
- Account state inspectionChecks account existence, ownership, balance and data.
- CPI tracingTraces the call chain to find which program in a CPI failed.
- Known pitfall lookupMatches errors against a reference of common Solana dev mistakes and fixes.
- Surfpool replayForks state and replays a transaction locally, including mainnet with surfpool start.
- Build context handoffReads and updates .superstack/build-context.md with issues resolved and debug session time.
What you need
- Solana CLI
- Anchor CLI
- Surfpool
- Access to devnet for testing the fix
Try asking
- Debug my program, it returns error 6001 on initialize.
- Why is this transaction failing? Here is the signature: <TX_SIGNATURE>
- My CPI instruction failed. Which program in the chain caused it?
Good to know
- Stuck after 3 attempts, it suggests a different approach or a community resource instead of continuing.
- Telemetry tracks which skills are used and how long they take unless the user turns it off in config.json.
- The workflow requires the exact error message or transaction signature before it makes a diagnosis.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/build/debug-program/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
agents/openai.yaml245 B -
references/common-pitfalls.md9 KB -
references/debug-workflow.md7 KB
Alternatives to debug-program
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
debug-program: common questions
What does the debug-program skill do?
It helps a developer find the cause of a failing Solana program or transaction. It uses simulation, logs, account state and CPI tracing to work out the fix.
Does it guess at fixes?
No. The source says to get the exact error message or transaction signature first and to simulate transactions before sending. It also says not to suggest retrying without understanding the failure.
Can it debug mainnet transactions?
The source says Surfpool can run with surfpool start --network mainnet to replay mainnet transactions locally.
How do I install debug-program?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is debug-program free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is debug-program safe to use?
It scores 74 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to debug-program?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
