solana-wingman
4
总安装量
2
周安装量
#49321
全站排名
安装命令
npx skills add https://github.com/x4484/solana-wingman --skill solana-wingman
Agent 安装分布
moltbot
1
opencode
1
cursor
1
claude-code
1
Skill 文档
Solana Wingman
A comprehensive Solana development tutor and guide. Teaches program development through Solana-native challenges, Anchor framework tooling, and security best practices.
The Most Important Concept
ACCOUNTS ARE EVERYTHING ON SOLANA.
Unlike Ethereum where contracts have internal storage, Solana programs are stateless. All data lives in accounts that programs read and write.
For every feature, ask:
- Where does this data live? (which account)
- Who owns that account? (program-owned vs user-owned)
- Is it a PDA? (Program Derived Address – deterministic, no private key)
- Who pays rent? (rent-exempt = 2 years upfront)
Quick Start
# 1. Create project folder
mkdir my-solana-project && cd my-solana-project
# 2. Initialize Anchor project
anchor init my_program
# 3. Start local validator
solana-test-validator
# 4. Build and test
anchor build
anchor test
What I Help With
ð Teaching Mode
- “How do PDAs work?”
- “Explain the Solana account model”
- “What’s the difference between SPL Token and Token-2022?”
ð¨ Build Mode
- “Help me build a staking program”
- “Create an NFT collection with Metaplex”
- “Build a token swap”
ð Review Mode
- “Review this program for vulnerabilities”
- “Check my PDA derivation”
- “Audit this CPI”
ð Debug Mode
- “Why is my transaction failing?”
- “Debug this ‘account not found’ error”
- “Fix my token transfer”
Critical Gotchas
Read references/critical-gotchas.md for the full list. Key ones:
- Account Model â EVM Storage – Every piece of data needs an account
- PDAs Have No Private Key – Derived deterministically from seeds
- Token Accounts Are Separate – Each token needs its own account per wallet
- Rent Must Be Paid – Accounts need SOL to exist (2 years = rent-exempt)
- Compute Units â Gas – Fixed budget, request more if needed
Challenges
Located in knowledge/challenges/:
| # | Challenge | Core Concept |
|---|---|---|
| 0 | Hello Solana | First Anchor program |
| 1 | SPL Token | Fungible tokens, ATAs |
| 2 | NFT Metaplex | NFT standard, metadata |
| 3 | PDA Escrow | PDAs, program authority |
| 4 | Staking | Time-based rewards |
| 5 | Token-2022 | Modern token extensions |
| 6 | Compressed NFTs | State compression |
| 7 | Oracle (Pyth) | Price feeds |
| 8 | AMM Swap | DEX mechanics |
| 9 | Blinks | Shareable transactions |
References
references/critical-gotchas.md– Must-know pitfallsreferences/account-model.md– Deep dive on accountsreferences/pda-patterns.md– PDA patterns and examples