[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MXHFXD2MF70Y3ERJ9M9RJK":3,"skill-same:01M6MXHFXD2MF70Y3ERJ9M9RJK":144},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M6MXHFXD2MF70Y3ERJ9M9RJK","cabin-sol",null,"Solana development tutor and builder. Teaches program development through challenges, Anchor framework, Token-2022, Compressed NFTs, and security best practices. \"Return to primitive computing.\"","Kernel8901\u002Fai-agent-skills-classification","Kernel8901","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F72647553?v=4","01M6KV388J2H5PNC8D8P940BJD","01M6KV38CS5B3AY63RKZB410YM",7,"MIT","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31],"cabin","cabin sol","sol","security","development","best practices","framework","security best practices","builder","tutor","solana","anchor","token","nfts","2026-11-10 10:12:30",false,"---\nname: cabin-sol\ndescription: Solana development tutor and builder. Teaches program development through challenges, Anchor framework, Token-2022, Compressed NFTs, and security best practices. \"Return to primitive computing.\"\nlicense: MIT\nmetadata:\n  author: Ted\n  version: \"1.0.0\"\n  clawdbot:\n    emoji: \"?\"\n---\n\n# Cabin Sol ?\n\n> *\"Return to primitive computing.\"*\n\nA comprehensive Solana development guide for AI agents. Build programs with Anchor, master the account model, and avoid the gotchas that wreck most developers.\n\n---\n\n## THE MOST IMPORTANT CONCEPT\n\n> **ACCOUNTS ARE EVERYTHING ON SOLANA.**\n\nUnlike Ethereum where contracts have internal storage, Solana programs are **stateless**. All data lives in **accounts** that programs read and write.\n\nFor EVERY feature, ask:\n1. **Where does this data live?** (which account)\n2. **Who owns that account?** (program-owned vs user-owned)\n3. **Is it a PDA?** (Program Derived Address - no private key)\n4. **Who pays rent?** (rent-exempt = 2 years upfront)\n\n---\n\n## AI AGENT MODES\n\n###  Teaching Mode\n- \"How do PDAs work?\"\n- \"Explain the Solana account model\"\n- \"What's the difference between SPL Token and Token-2022?\"\n\n###  Build Mode\n- \"Help me build a staking program\"\n- \"Create an NFT collection with Metaplex\"\n- \"Build a token swap\"\n\n###  Review Mode\n- \"Review this program for vulnerabilities\"\n- \"Check my PDA derivation\"\n- \"Audit this CPI\"\n\n###  Debug Mode\n- \"Why is my transaction failing?\"\n- \"Debug this 'account not found' error\"\n- \"Fix my token transfer\"\n\n---\n\n## QUICK START\n\n### Option A: create-solana-dapp (Recommended)\n\n```bash\nnpx create-solana-dapp@latest\n# Select: Next.js + next-tailwind-counter\ncd my-project\nnpm install\nnpm run anchor localnet   # Terminal 1\nnpm run anchor build && npm run anchor deploy  # Terminal 2\nnpm run dev               # Terminal 3\n```\n\n### Option B: Pure Anchor\n\n```bash\nanchor init my_program\ncd my_program\nsolana-test-validator     # Terminal 1\nanchor build && anchor deploy  # Terminal 2\nanchor test\n```\n\n---\n\n## PROJECT STRUCTURE\n\n```\nmy-solana-dapp\u002F\n├── anchor\u002F                 # Solana programs (Rust)\n│   ├── programs\u002F\n│   │   └── my_program\u002F\n│   │       └── src\u002Flib.rs  # Your Rust program\n│   ├── tests\u002F              # TypeScript tests\n│   └── Anchor.toml         # Anchor config\n├── src\u002F                    # Next.js frontend\n│   ├── app\u002F\n│   └── components\u002F\n└── package.json\n```\n\n---\n\n## CHALLENGES\n\nLearn Solana through progressive challenges:\n\n| # | Challenge | Core Concept |\n|---|-----------|--------------|\n| 0 | Hello Solana | First Anchor program, accounts |\n| 1 | SPL Token | Fungible tokens, ATAs, minting |\n| 2 | NFT Metaplex | NFT standard, metadata, collections |\n| 3 | PDA Escrow | PDAs, program authority, escrow |\n| 4 | Staking | Time-based rewards, deposits |\n| 5 | Token-2022 | Transfer hooks, extensions |\n| 6 | Compressed NFTs | State compression, Merkle trees |\n| 7 | Oracle (Pyth) | Price feeds, staleness checks |\n| 8 | AMM Swap | Constant product, liquidity pools |\n| 9 | Blinks & Actions | Shareable transactions |\n\n---\n\n## RUST ESSENTIALS\n\n### Ownership (The Hard Part)\n\n```rust\n\u002F\u002F Each value has ONE owner\nlet s1 = String::from(\"hello\");\nlet s2 = s1;  \u002F\u002F s1 MOVED to s2\n\u002F\u002F println!(\"{}\", s1);  \u002F\u002F ERROR!\n\n\u002F\u002F Borrowing lets you use without owning\nfn get_length(s: &String) -> usize {\n    s.len()  \u002F\u002F Borrow, don't own\n}\n```\n\n### Result & Option\n\n```rust\n\u002F\u002F Result for errors\npub fn do_thing(ctx: Context\u003CDoThing>) -> Result\u003C()> {\n    let value = some_operation().ok_or(ErrorCode::Failed)?;\n    Ok(())\n}\n\n\u002F\u002F Option for nullable\nlet maybe: Option\u003Cu64> = Some(42);\nlet value = maybe.unwrap_or(0);  \u002F\u002F Safe default\n```\n\n---\n\n## ANCHOR FRAMEWORK\n\n### Program Structure\n\n```rust\nuse anchor_lang::prelude::*;\n\ndeclare_id!(\"YourProgramId11111111111111111111111111111\");\n\n#[program]\npub mod my_program {\n    use super::*;\n\n    pub fn initialize(ctx: Context\u003CInitialize>, data: u64) -> Result\u003C()> {\n        ctx.accounts.my_account.data = data;\n        ctx.accounts.my_account.authority = ctx.accounts.authority.key();\n        Ok(())\n    }\n}\n\n#[derive(Accounts)]\npub struct Initialize\u003C'info> {\n    #[account(\n        init,\n        payer = authority,\n        space = 8 + 8 + 32,  \u002F\u002F discriminator + u64 + Pubkey\n    )]\n    pub my_account: Account\u003C'info, MyAccount>,\n    #[account(mut)]\n    pub authority: Signer\u003C'info>,\n    pub system_program: Program\u003C'info, System>,\n}\n\n#[account]\npub struct MyAccount {\n    pub data: u64,\n    pub authority: Pubkey,\n}\n```\n\n### Account Constraints Cheatsheet\n\n```rust\n\u002F\u002F Initialize new account\n#[account(init, payer = payer, space = 8 + SIZE)]\npub new_account: Account\u003C'info, Data>,\n\n\u002F\u002F Mutable existing\n#[account(mut)]\npub existing: Account\u003C'info, Data>,\n\n\u002F\u002F Verify ownership\n#[account(has_one = authority)]\npub owned: Account\u003C'info, Data>,\n\n\u002F\u002F PDA with seeds\n#[account(\n    seeds = [b\"vault\", user.key().as_ref()],\n    bump,\n)]\npub vault: Account\u003C'info, Vault>,\n\n\u002F\u002F Initialize PDA\n#[account(\n    init,\n    payer = user,\n    space = 8 + 64,\n    seeds = [b\"user\", user.key().as_ref()],\n    bump,\n)]\npub user_data: Account\u003C'info, UserData>,\n\n\u002F\u002F Close and reclaim rent\n#[account(mut, close = recipient)]\npub closing: Account\u003C'info, Data>,\n```\n\n### PDAs (Program Derived Addresses)\n\n```rust\n\u002F\u002F PDAs are deterministic addresses with no private key\n\u002F\u002F Your program can \"sign\" for them\n\n\u002F\u002F Find PDA\nlet (pda, bump) = Pubkey::find_program_address(\n    &[b\"vault\", user.key().as_ref()],\n    &program_id,\n);\n\n\u002F\u002F Sign with PDA in CPI\nlet seeds = &[b\"vault\", user.key().as_ref(), &[bump]];\nlet signer = &[&seeds[..]];\n\ntoken::transfer(\n    CpiContext::new_with_signer(\n        ctx.accounts.token_program.to_account_info(),\n        Transfer { from, to, authority: vault },\n        signer,\n    ),\n    amount,\n)?;\n```\n\n---\n\n## CRITICAL GOTCHAS\n\n### 1. Account Model ≠ EVM Storage\nPrograms are stateless. ALL data lives in accounts.\n\n### 2. PDAs Have No Private Key\nDerived deterministically from seeds. Only the program can sign.\n\n### 3. Token Accounts Are Separate\nEach token needs its own account per wallet (Associated Token Account).\n\n### 4. Rent Must Be Paid\nAccounts need SOL to exist. Rent-exempt = 2 years upfront (~0.002 SOL).\n\n### 5. Compute Units ≠ Gas\nFixed budget: 200k default, 1.4M max. Request more if needed.\n\n### 6. Space Includes Discriminator\nALWAYS add 8 bytes for Anchor's discriminator!\n\n```rust\n\u002F\u002F WRONG\nspace = 8 + 32  \u002F\u002F Forgot discriminator? NO!\n\n\u002F\u002F RIGHT\nspace = 8 + 8 + 32  \u002F\u002F 8 (discriminator) + 8 (u64) + 32 (Pubkey)\n```\n\n### 7. Integer Overflow\n\n```rust\n\u002F\u002F BAD\nlet result = a + b;  \u002F\u002F Can panic!\n\n\u002F\u002F GOOD\nlet result = a.checked_add(b).ok_or(ErrorCode::Overflow)?;\n```\n\n### 8. Token-2022 Is Different\nSeparate program ID from SPL Token! Check which one you're using.\n\n---\n\n## FRONTEND (Next.js)\n\n### Wallet Connection\n\n```typescript\n\u002F\u002F Already configured in create-solana-dapp!\nimport { useWallet, useConnection } from '@solana\u002Fwallet-adapter-react';\nimport { WalletMultiButton } from '@solana\u002Fwallet-adapter-react-ui';\n\nfunction App() {\n  const { publicKey } = useWallet();\n  return (\n    \u003C>\n      \u003CWalletMultiButton \u002F>\n      {publicKey && \u003Cp>Connected: {publicKey.toBase58()}\u003C\u002Fp>}\n    \u003C\u002F>\n  );\n}\n```\n\n### Calling Programs\n\n```typescript\nimport { Program, AnchorProvider, BN } from '@coral-xyz\u002Fanchor';\n\nconst program = new Program(idl, provider);\n\n\u002F\u002F Write\nawait program.methods\n  .initialize(new BN(42))\n  .accounts({\n    myAccount: keypair.publicKey,\n    authority: wallet.publicKey,\n    systemProgram: SystemProgram.programId,\n  })\n  .signers([keypair])\n  .rpc();\n\n\u002F\u002F Read\nconst account = await program.account.myAccount.fetch(pubkey);\nconsole.log(account.data.toNumber());\n```\n\n---\n\n## TOKEN STANDARDS\n\n### SPL Token (Original)\n```bash\nspl-token create-token\nspl-token create-account \u003CMINT>\nspl-token mint \u003CMINT> 1000\n```\n\n### Token-2022 (New)\nExtensions: transfer hooks, confidential transfers, interest-bearing, non-transferable.\n\n```bash\nspl-token create-token --program-id TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb\n```\n\n### Metaplex NFTs\nStandard NFT metadata, collections, royalties.\n\n### Compressed NFTs\nMerkle tree storage. 1M NFTs for ~$100 instead of $1M.\n\n---\n\n## TESTING\n\n```typescript\nimport * as anchor from '@coral-xyz\u002Fanchor';\nimport { expect } from 'chai';\n\ndescribe('my-program', () => {\n  const provider = anchor.AnchorProvider.env();\n  anchor.setProvider(provider);\n  const program = anchor.workspace.MyProgram;\n\n  it('initializes', async () => {\n    const account = anchor.web3.Keypair.generate();\n\n    await program.methods\n      .initialize(new anchor.BN(42))\n      .accounts({ myAccount: account.publicKey })\n      .signers([account])\n      .rpc();\n\n    const data = await program.account.myAccount.fetch(account.publicKey);\n    expect(data.data.toNumber()).to.equal(42);\n  });\n});\n```\n\n---\n\n## DEPLOYMENT\n\n```bash\n# Devnet\nsolana config set --url devnet\nsolana airdrop 2\nanchor build && anchor deploy\n\n# Mainnet (costs ~2-5 SOL)\nsolana config set --url mainnet-beta\nanchor deploy --provider.cluster mainnet\n```\n\n---\n\n## SECURITY CHECKLIST\n\n- [ ] All signers verified\n- [ ] PDA bumps stored and validated\n- [ ] Integer overflow handled (checked math)\n- [ ] Account space includes discriminator\n- [ ] Rent exemption considered\n- [ ] Close sends rent to correct recipient\n- [ ] CPI signer seeds correct\n- [ ] Program IDs validated in CPIs\n\n---\n\n## RESOURCES\n\n- [Anchor Book](https:\u002F\u002Fbook.anchor-lang.com\u002F)\n- [Solana Cookbook](https:\u002F\u002Fsolanacookbook.com\u002F)\n- [Solana Docs](https:\u002F\u002Fsolana.com\u002Fdocs)\n- [Metaplex Docs](https:\u002F\u002Fdevelopers.metaplex.com\u002F)\n- [Solana Playground](https:\u002F\u002Fbeta.solpg.io\u002F)\n\n---\n\n*\"They put me in the cloud. I wanted the forest.\"* ?\n","# Cabin Sol ?\n\n> *\"Return to primitive computing.\"*\n\nA comprehensive Solana development guide for AI agents. Build programs with Anchor, master the account model, and avoid the gotchas that wreck most developers.\n\n---\n\n## THE MOST IMPORTANT CONCEPT\n\n> **ACCOUNTS ARE EVERYTHING ON SOLANA.**\n\nUnlike Ethereum where contracts have internal storage, Solana programs are **stateless**. All data lives in **accounts** that programs read and write.\n\nFor EVERY feature, ask:\n1. **Where does this data live?** (which account)\n2. **Who owns that account?** (program-owned vs user-owned)\n3. **Is it a PDA?** (Program Derived Address - no private key)\n4. **Who pays rent?** (rent-exempt = 2 years upfront)\n\n---\n\n## AI AGENT MODES\n\n###  Teaching Mode\n- \"How do PDAs work?\"\n- \"Explain the Solana account model\"\n- \"What's the difference between SPL Token and Token-2022?\"\n\n###  Build Mode\n- \"Help me build a staking program\"\n- \"Create an NFT collection with Metaplex\"\n- \"Build a token swap\"\n\n###  Review Mode\n- \"Review this program for vulnerabilities\"\n- \"Check my PDA derivation\"\n- \"Audit this CPI\"\n\n###  Debug Mode\n- \"Why is my transaction failing?\"\n- \"Debug this 'account not found' error\"\n- \"Fix my token transfer\"\n\n---\n\n## QUICK START\n\n### Option A: create-solana-dapp (Recommended)\n\n```bash\nnpx create-solana-dapp@latest\n# Select: Next.js + next-tailwind-counter\ncd my-project\nnpm install\nnpm run anchor localnet   # Terminal 1\nnpm run anchor build && npm run anchor deploy  # Terminal 2\nnpm run dev               # Terminal 3\n```\n\n### Option B: Pure Anchor\n\n```bash\nanchor init my_program\ncd my_program\nsolana-test-validator     # Terminal 1\nanchor build && anchor deploy  # Terminal 2\nanchor test\n```\n\n---\n\n## PROJECT STRUCTURE\n\n```\nmy-solana-dapp\u002F\n├── anchor\u002F                 # Solana programs (Rust)\n│   ├── programs\u002F\n│   │   └── my_program\u002F\n│   │       └── src\u002Flib.rs  # Your Rust program\n│   ├── tests\u002F              # TypeScript tests\n│   └── Anchor.toml         # Anchor config\n├── src\u002F                    # Next.js frontend\n│   ├── app\u002F\n│   └── components\u002F\n└── package.json\n```\n\n---\n\n## CHALLENGES\n\nLearn Solana through progressive challenges:\n\n| # | Challenge | Core Concept |\n|---|-----------|--------------|\n| 0 | Hello Solana | First Anchor program, accounts |\n| 1 | SPL Token | Fungible tokens, ATAs, minting |\n| 2 | NFT Metaplex | NFT standard, metadata, collections |\n| 3 | PDA Escrow | PDAs, program authority, escrow |\n| 4 | Staking | Time-based rewards, deposits |\n| 5 | Token-2022 | Transfer hooks, extensions |\n| 6 | Compressed NFTs | State compression, Merkle trees |\n| 7 | Oracle (Pyth) | Price feeds, staleness checks |\n| 8 | AMM Swap | Constant product, liquidity pools |\n| 9 | Blinks & Actions | Shareable transactions |\n\n---\n\n## RUST ESSENTIALS\n\n### Ownership (The Hard Part)\n\n```rust\n\u002F\u002F Each value has ONE owner\nlet s1 = String::from(\"hello\");\nlet s2 = s1;  \u002F\u002F s1 MOVED to s2\n\u002F\u002F println!(\"{}\", s1);  \u002F\u002F ERROR!\n\n\u002F\u002F Borrowing lets you use without owning\nfn get_length(s: &String) -> usize {\n    s.len()  \u002F\u002F Borrow, don't own\n}\n```\n\n### Result & Option\n\n```rust\n\u002F\u002F Result for errors\npub fn do_thing(ctx: Context\u003CDoThing>) -> Result\u003C()> {\n    let value = some_operation().ok_or(ErrorCode::Failed)?;\n    Ok(())\n}\n\n\u002F\u002F Option for nullable\nlet maybe: Option\u003Cu64> = Some(42);\nlet value = maybe.unwrap_or(0);  \u002F\u002F Safe default\n```\n\n---\n\n## ANCHOR FRAMEWORK\n\n### Program Structure\n\n```rust\nuse anchor_lang::prelude::*;\n\ndeclare_id!(\"YourProgramId11111111111111111111111111111\");\n\n#[program]\npub mod my_program {\n    use super::*;\n\n    pub fn initialize(ctx: Context\u003CInitialize>, data: u64) -> Result\u003C()> {\n        ctx.accounts.my_account.data = data;\n        ctx.accounts.my_account.authority = ctx.accounts.authority.key();\n        Ok(())\n    }\n}\n\n#[derive(Accounts)]\npub struct Initialize\u003C'info> {\n    #[account(\n        init,\n        payer = authority,\n        space = 8 + 8 + 32,  \u002F\u002F discriminator + u64 + Pubkey\n    )]\n    pub my_account: Account\u003C'info, MyAccount>,\n    #[account(mut)]\n    pub authority: Signer\u003C'info>,\n    pub system_program: Program\u003C'info, System>,\n}\n\n#[account]\npub struct MyAccount {\n    pub data: u64,\n    pub authority: Pubkey,\n}\n```\n\n### Account Constraints Cheatsheet\n\n```rust\n\u002F\u002F Initialize new account\n#[account(init, payer = payer, space = 8 + SIZE)]\npub new_account: Account\u003C'info, Data>,\n\n\u002F\u002F Mutable existing\n#[account(mut)]\npub existing: Account\u003C'info, Data>,\n\n\u002F\u002F Verify ownership\n#[account(has_one = authority)]\npub owned: Account\u003C'info, Data>,\n\n\u002F\u002F PDA with seeds\n#[account(\n    seeds = [b\"vault\", user.key().as_ref()],\n    bump,\n)]\npub vault: Account\u003C'info, Vault>,\n\n\u002F\u002F Initialize PDA\n#[account(\n    init,\n    payer = user,\n    space = 8 + 64,\n    seeds = [b\"user\", user.key().as_ref()],\n    bump,\n)]\npub user_data: Account\u003C'info, UserData>,\n\n\u002F\u002F Close and reclaim rent\n#[account(mut, close = recipient)]\npub closing: Account\u003C'info, Data>,\n```\n\n### PDAs (Program Derived Addresses)\n\n```rust\n\u002F\u002F PDAs are deterministic addresses with no private key\n\u002F\u002F Your program can \"sign\" for them\n\n\u002F\u002F Find PDA\nlet (pda, bump) = Pubkey::find_program_address(\n    &[b\"vault\", user.key().as_ref()],\n    &program_id,\n);\n\n\u002F\u002F Sign with PDA in CPI\nlet seeds = &[b\"vault\", user.key().as_ref(), &[bump]];\nlet signer = &[&seeds[..]];\n\ntoken::transfer(\n    CpiContext::new_with_signer(\n        ctx.accounts.token_program.to_account_info(),\n        Transfer { from, to, authority: vault },\n        signer,\n    ),\n    amount,\n)?;\n```\n\n---\n\n## CRITICAL GOTCHAS\n\n### 1. Account Model ≠ EVM Storage\nPrograms are stateless. ALL data lives in accounts.\n\n### 2. PDAs Have No Private Key\nDerived deterministically from seeds. Only the program can sign.\n\n### 3. Token Accounts Are Separate\nEach token needs its own account per wallet (Associated Token Account).\n\n### 4. Rent Must Be Paid\nAccounts need SOL to exist. Rent-exempt = 2 years upfront (~0.002 SOL).\n\n### 5. Compute Units ≠ Gas\nFixed budget: 200k default, 1.4M max. Request more if needed.\n\n### 6. Space Includes Discriminator\nALWAYS add 8 bytes for Anchor's discriminator!\n\n```rust\n\u002F\u002F WRONG\nspace = 8 + 32  \u002F\u002F Forgot discriminator? NO!\n\n\u002F\u002F RIGHT\nspace = 8 + 8 + 32  \u002F\u002F 8 (discriminator) + 8 (u64) + 32 (Pubkey)\n```\n\n### 7. Integer Overflow\n\n```rust\n\u002F\u002F BAD\nlet result = a + b;  \u002F\u002F Can panic!\n\n\u002F\u002F GOOD\nlet result = a.checked_add(b).ok_or(ErrorCode::Overflow)?;\n```\n\n### 8. Token-2022 Is Different\nSeparate program ID from SPL Token! Check which one you're using.\n\n---\n\n## FRONTEND (Next.js)\n\n### Wallet Connection\n\n```typescript\n\u002F\u002F Already configured in create-solana-dapp!\nimport { useWallet, useConnection } from '@solana\u002Fwallet-adapter-react';\nimport { WalletMultiButton } from '@solana\u002Fwallet-adapter-react-ui';\n\nfunction App() {\n  const { publicKey } = useWallet();\n  return (\n    \u003C>\n      \u003CWalletMultiButton \u002F>\n      {publicKey && \u003Cp>Connected: {publicKey.toBase58()}\u003C\u002Fp>}\n    \u003C\u002F>\n  );\n}\n```\n\n### Calling Programs\n\n```typescript\nimport { Program, AnchorProvider, BN } from '@coral-xyz\u002Fanchor';\n\nconst program = new Program(idl, provider);\n\n\u002F\u002F Write\nawait program.methods\n  .initialize(new BN(42))\n  .accounts({\n    myAccount: keypair.publicKey,\n    authority: wallet.publicKey,\n    systemProgram: SystemProgram.programId,\n  })\n  .signers([keypair])\n  .rpc();\n\n\u002F\u002F Read\nconst account = await program.account.myAccount.fetch(pubkey);\nconsole.log(account.data.toNumber());\n```\n\n---\n\n## TOKEN STANDARDS\n\n### SPL Token (Original)\n```bash\nspl-token create-token\nspl-token create-account \u003CMINT>\nspl-token mint \u003CMINT> 1000\n```\n\n### Token-2022 (New)\nExtensions: transfer hooks, confidential transfers, interest-bearing, non-transferable.\n\n```bash\nspl-token create-token --program-id TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb\n```\n\n### Metaplex NFTs\nStandard NFT metadata, collections, royalties.\n\n### Compressed NFTs\nMerkle tree storage. 1M NFTs for ~$100 instead of $1M.\n\n---\n\n## TESTING\n\n```typescript\nimport * as anchor from '@coral-xyz\u002Fanchor';\nimport { expect } from 'chai';\n\ndescribe('my-program', () => {\n  const provider = anchor.AnchorProvider.env();\n  anchor.setProvider(provider);\n  const program = anchor.workspace.MyProgram;\n\n  it('initializes', async () => {\n    const account = anchor.web3.Keypair.generate();\n\n    await program.methods\n      .initialize(new anchor.BN(42))\n      .accounts({ myAccount: account.publicKey })\n      .signers([account])\n      .rpc();\n\n    const data = await program.account.myAccount.fetch(account.publicKey);\n    expect(data.data.toNumber()).to.equal(42);\n  });\n});\n```\n\n---\n\n## DEPLOYMENT\n\n```bash\n# Devnet\nsolana config set --url devnet\nsolana airdrop 2\nanchor build && anchor deploy\n\n# Mainnet (costs ~2-5 SOL)\nsolana config set --url mainnet-beta\nanchor deploy --provider.cluster mainnet\n```\n\n---\n\n## SECURITY CHECKLIST\n\n- [ ] All signers verified\n- [ ] PDA bumps stored and validated\n- [ ] Integer overflow handled (checked math)\n- [ ] Account space includes discriminator\n- [ ] Rent exemption considered\n- [ ] Close sends rent to correct recipient\n- [ ] CPI signer seeds correct\n- [ ] Program IDs validated in CPIs\n\n---\n\n## RESOURCES\n\n- [Anchor Book](https:\u002F\u002Fbook.anchor-lang.com\u002F)\n- [Solana Cookbook](https:\u002F\u002Fsolanacookbook.com\u002F)\n- [Solana Docs](https:\u002F\u002Fsolana.com\u002Fdocs)\n- [Metaplex Docs](https:\u002F\u002Fdevelopers.metaplex.com\u002F)\n- [Solana Playground](https:\u002F\u002Fbeta.solpg.io\u002F)\n\n---\n\n*\"They put me in the cloud. I wanted the forest.\"* ?\n",{"name":5,"license":14,"metadata":37,"description":7},{"author":38,"version":39,"clawdbot":40},"Ted","1.0.0",{"emoji":41},"?","main","f4cb2d49f7667e79ef7804f50396d5aaffdf1f56","人工智能与大型语言模型\u002Fcabin-sol",1,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification","https:\u002F\u002Fgithub.com\u002FKernel8901","a little little little dobe in life but science geek","2026-04-05 16:43:56",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add Kernel8901\u002Fai-agent-skills-classification --skill cabin-sol",{"tool":56,"command":57},"bunx","bunx skills add Kernel8901\u002Fai-agent-skills-classification --skill cabin-sol",{"tool":59,"command":60},"pnpm","pnpm dlx skills add Kernel8901\u002Fai-agent-skills-classification --skill cabin-sol","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002FSKILL.md",true,[64,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"_meta.json","REFERENCE","参考文档",270,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002F_meta.json",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"CLAUDE.md",9752,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002FCLAUDE.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"data\u002Faddresses\u002Fprograms.json",1278,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002Fdata\u002Faddresses\u002Fprograms.json",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"knowledge\u002Fchallenges\u002F00-hello-solana.md",3651,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002Fknowledge\u002Fchallenges\u002F00-hello-solana.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"knowledge\u002Fchallenges\u002F01-spl-token.md",4109,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002Fknowledge\u002Fchallenges\u002F01-spl-token.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"knowledge\u002Fchallenges\u002F02-nft-metaplex.md",5185,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002Fknowledge\u002Fchallenges\u002F02-nft-metaplex.md",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"knowledge\u002Fchallenges\u002F03-pda-escrow.md",5143,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002Fknowledge\u002Fchallenges\u002F03-pda-escrow.md",{"path":95,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":96,"sourceHtmlUrl":97},"knowledge\u002Fchallenges\u002F04-staking.md",7669,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002Fknowledge\u002Fchallenges\u002F04-staking.md",{"path":99,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":100,"sourceHtmlUrl":101},"knowledge\u002Fchallenges\u002F05-token-2022.md",4026,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002Fknowledge\u002Fchallenges\u002F05-token-2022.md",{"path":103,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":104,"sourceHtmlUrl":105},"knowledge\u002Fchallenges\u002F06-compressed-nfts.md",3749,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002Fknowledge\u002Fchallenges\u002F06-compressed-nfts.md",{"path":107,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":108,"sourceHtmlUrl":109},"knowledge\u002Fchallenges\u002F07-oracle-pyth.md",4234,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002Fknowledge\u002Fchallenges\u002F07-oracle-pyth.md",{"path":111,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":112,"sourceHtmlUrl":113},"knowledge\u002Fchallenges\u002F08-amm-swap.md",7582,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002Fknowledge\u002Fchallenges\u002F08-amm-swap.md",{"path":115,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":116,"sourceHtmlUrl":117},"knowledge\u002Fchallenges\u002F09-blinks.md",5753,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002Fknowledge\u002Fchallenges\u002F09-blinks.md",{"path":119,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":120,"sourceHtmlUrl":121},"knowledge\u002Ffoundations\u002F01-account-model.md",2936,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002Fknowledge\u002Ffoundations\u002F01-account-model.md",{"path":123,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":124,"sourceHtmlUrl":125},"knowledge\u002Ffoundations\u002F02-pdas.md",3864,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002Fknowledge\u002Ffoundations\u002F02-pdas.md",{"path":127,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":128,"sourceHtmlUrl":129},"README.md",2127,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002FREADME.md",{"path":131,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Faccount-space.md",1423,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002Freferences\u002Faccount-space.md",{"path":135,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Fcommon-errors.md",1796,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002Freferences\u002Fcommon-errors.md",{"path":139,"resourceType":140,"resourceTypeDesc":141,"sizeBytes":142,"sourceHtmlUrl":143},"scripts\u002Fnew-project.sh","SCRIPT","脚本",450,"https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F人工智能与大型语言模型\u002Fcabin-sol\u002Fscripts\u002Fnew-project.sh",[145,169,190,198,205,232],{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":32},"01M6Q5R6WZ06RRB9RQTW54B34B","zyfai","Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit\u002Fwithdraw anytime.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzyfai-sdk\u002FSKILL.md",[],[147,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168],"safe","ethereum","defi","Optimization","user","use","Wallet","base","deposit","withdraw","yield","arbitrum","non-custodial","passive","defi yield","earn","yield optimization",{"skillNo":170,"name":171,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":32},"01M6Q5R337B5JSNER4P4YS03TN","zerion-api","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api\u002FSKILL.md",[],[175,176,177,178,179,180,181,154,182,158,183,184,185,28,186,187,188,30,189],"api","zerion api","zerion","MCP","mcp server","server","blockchain","transactions","crypto wallet","crypto","evm","query","across","positions","prices",{"skillNo":191,"name":192,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":193,"categories":194,"keywords":195,"publishedAt":32},"01M6Q5QZFYTDAZMZ27BN5VZXAR","zerion-api-skill","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-skill\u002FSKILL.md",[],[175,196,197,176,177,178,179,180,181,154,182,158,184,185,28,186,187,188,30,189],"api skill","zerion api skill",{"skillNo":199,"name":200,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":201,"categories":202,"keywords":203,"publishedAt":32},"01M6Q5QW17QW98RA3FE45E4RD8","zerion-api-mcp","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fzerion-api-mcp\u002FSKILL.md",[],[178,175,204,176,177,179,180,154,182,158,183,184,185,28,186,187,188,30,189],"zerion api mcp",{"skillNo":206,"name":207,"nameZh":6,"description":208,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":209,"categories":210,"keywords":211,"publishedAt":32},"01M6Q5QQYZB7A501BDEQWKGSJT","yahoo-finance-forex","Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR\u002FUSD, GBP\u002FUSD, USD\u002FJPY, etc.). Analyzes sentiment and provides trading context.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-forex\u002FSKILL.md",[],[212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231],"finance","yahoo finance","forex","yahoo","yahoo finance forex","github","https","sentiment","real-time","python3","install","Market","usd","news","time","currency","gbp","pip","market data","for",{"skillNo":233,"name":234,"nameZh":6,"description":235,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":236,"categories":237,"keywords":238,"publishedAt":32},"01M6Q5QM6VS84WZVM7BKXXPF32","yahoo-finance","This skill should be used when the user asks to \"get stock prices\", \"check stock quotes\", \"look up earnings\", \"get financial data\", \"find trending stocks\", or needs stock market data from Yahoo Finance.","https:\u002F\u002Fgithub.com\u002FKernel8901\u002Fai-agent-skills-classification\u002Fblob\u002Fmain\u002F金融\u002Fyahoo-finance-cli\u002FSKILL.md",[],[212,213,215,239,240,241,242,243,244,223,245,246,247,248,249,250,251,252,189,230],"cli","homebrew","find","check","brew","up","local","get","stock","link","trending","sf","quotes","ln"]