audit-infra
Infrastructure-first security audit — secrets, supply chain, CI/CD, LLM/skill security, OWASP, STRIDE. Complements /audit-solana (program-level)
Explain complex Solana/blockchain code with visual diagrams and step-by-step breakdowns
> /plugin marketplace add solanabr/solana-ai-kit > /plugin install solana-ai-kit@stbr
How it fires
How this command gets triggered: by you, by Claude, or both.
/explain-codeContext preview
What this command does when you run it.
Explain complex Solana/blockchain code with visual diagrams and step-by-step breakdowns
description: "Explain Solana code with a diagram and a step-by-step walkthrough"
Explain the code in `$ARGUMENTS` (a path, symbol, or pasted snippet). Match depth to the code and the asker: a helper gets a paragraph; an instruction handler or a whole program gets the structure below.
For concept background, open the matching entry in [SKILL.md](../skills/SKILL.md). For tutorials or learning paths, hand off to the `solana-guide` agent.
1. **Overview**: what it does and why it exists, in two or three sentences. 2. **Diagram**: Mermaid. A sequence diagram or flowchart for instruction and CPI flow, a graph for account and PDA relationships. 3. **Walkthrough**: the significant sections in order, with the reasons behind non-obvious choices (seed layout, account order, bump handling, `remaining_accounts`). 4. **Solana concepts used**: PDAs, CPIs and signer seeds, rent, account ownership, Token vs Token-2022; a sentence or two each on how this code uses them. 5. **Security notes**: the checks the code performs and any it appears to miss (signer, owner, PDA, CPI target, arithmetic). For a real review, suggest `/audit-solana`. 6. **Check questions** (for learners only): two or three "what happens if..." questions.
Production-ready Claude Code configuration for full-stack Solana development. Combines best practices from multiple sources into an agent-optimized, token-efficient config you can install and adapt to your specific project.
Repo: solanabr/solana-ai-kit
Infrastructure-first security audit — secrets, supply chain, CI/CD, LLM/skill security, OWASP, STRIDE. Complements /audit-solana (program-level)
Benchmark CU usage and compare against baseline for regression detection