[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A7SPM94Q5PQ2TCWT2E3A46":3,"skill-same:01M7A7SPM94Q5PQ2TCWT2E3A46":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":34,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M7A7SPM94Q5PQ2TCWT2E3A46","solana-dev-payments",null,"Build checkout flows, payment buttons, and QR-based payment requests using Solana Pay conventions, Kit instruction builders, and Kora for gasless flows.","themusebook\u002Fskills","themusebook","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F349927247?v=4","01M7A5C1RV5S3V5FF6ZACVDNRN","musebook","01M7A5C1SFC3KRZAXNN60XJ7KM",0,"MIT","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fsolana-foundation\u002Fpayments\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: solana-dev-payments\ndescription: Build checkout flows, payment buttons, and QR-based payment requests using Solana Pay conventions, Kit instruction builders, and Kora for gasless flows.\nlicense: MIT\nmetadata:\n  author: Solana Foundation\n  version: \"2.7.0\"\n  source: https:\u002F\u002Fgithub.com\u002Fsolana-foundation\u002Fsolana-dev-skill\n  category: Payments\n---\n\n# Payments & Commerce\n\n> **Solana Foundation skill — mirrored in the Musebook skills hub.**\n> This entry reproduces, verbatim, the `payments.md` reference of the\n> foundation-maintained **solana-dev** skill (v2.7.0, MIT) from\n> https:\u002F\u002Fgithub.com\u002Fsolana-foundation\u002Fsolana-dev-skill. It is one of the 16 topic\n> references the solana-dev router discloses progressively; for the full\n> skill (router + all references + nested guides), install the upstream\n> original: `npx skills add https:\u002F\u002Fgithub.com\u002Fsolana-foundation\u002Fsolana-dev-skill` — also mirrored in this hub as the\n> `solana-dev` entry. Maintained by the Solana Foundation; Musebook does\n> not author or maintain this content. Relative links in the body point\n> at the upstream skill's file layout and resolve in the full install.\n\n# Payments and commerce (optional)\n\n## When payments are in scope\nUse this guidance when the user asks about:\n- checkout flows, tips, payment buttons\n- payment request URLs \u002F QR codes\n- fee abstraction \u002F gasless transactions\n\n## Building payments with Kit (default)\n\nBuild payment flows directly on `@solana\u002Fkit` + `@solana-program\u002F*`:\n\n- SOL transfers: `getTransferSolInstruction` from `@solana-program\u002Fsystem`\n- Token transfers: the `tokenProgram()` plugin from `@solana-program\u002Ftoken` (`client.token` — `transferToATA` auto-derives and creates the recipient ATA)\n- Payment correlation: attach a memo (`@solana-program\u002Fmemo`) or a unique reference account to locate settlement for an order. Neither prevents a second transfer in a separately signed transaction.\n- Confirmation: track signature status to the commitment level your UX needs (`confirmed` for UI feedback, `finalized` for irreversible fulfillment)\n\n## Solana Pay (payment requests \u002F QR)\n\nUse the Solana Pay URL spec for request-based payments (point-of-sale, invoices, QR codes):\n- `solana:\u003Crecipient>?amount=..&spl-token=..&reference=..&label=..&message=..`\n- Verify settlement server-side by finding the transaction via the `reference` key and validating recipient, mint, and amount from chain state.\n\n## Retry and fulfillment boundaries\n\n- Store the signature before submitting. On timeout, rebroadcast the same signed tx or reconcile it before re-signing; missing RPC history isn't proof of non-payment.\n- Make fulfillment idempotent (atomically claim the order in your DB). A reference match alone isn't enough: also require a successful tx at the required commitment.\n\n## Kora (gasless \u002F fee abstraction)\nUse Kora when users shouldn't need SOL: sponsored fees, fees paid in USDC or another SPL token, or a policy-checked paymaster co-signing user transactions. See [kora.md](kora.md) for operator setup and security controls.\n\n## UX and security checklist for payments\n- Always show recipient + amount + token clearly before signing.\n- Keep retries tied to the same authorized payment intent; do not treat a memo or reference as an on-chain duplicate-payment guard.\n- Confirm settlement by querying chain state, not by trusting client-side callbacks.\n- Handle partial failures gracefully (transaction sent but not confirmed).\n- Provide clear error messages for common failure modes (insufficient balance, rejected signature).\n- Test settlement logic against Surfpool — set up buyer\u002Fmerchant token accounts with `surfnet_setTokenAccount` and assert post-transaction balances (see [testing.md](testing.md)).\n\n## References\n\n- [Solana Pay](https:\u002F\u002Fsolana.com\u002Fdocs\u002Ftools\u002Fsolana-pay)\n- [Memo program](https:\u002F\u002Fwww.solana-program.com\u002Fdocs\u002Fmemo)\n- [Transaction structure](https:\u002F\u002Fsolana.com\u002Fdocs\u002Fcore\u002Ftransactions)\n","# Payments & Commerce\n\n> **Solana Foundation skill — mirrored in the Musebook skills hub.**\n> This entry reproduces, verbatim, the `payments.md` reference of the\n> foundation-maintained **solana-dev** skill (v2.7.0, MIT) from\n> https:\u002F\u002Fgithub.com\u002Fsolana-foundation\u002Fsolana-dev-skill. It is one of the 16 topic\n> references the solana-dev router discloses progressively; for the full\n> skill (router + all references + nested guides), install the upstream\n> original: `npx skills add https:\u002F\u002Fgithub.com\u002Fsolana-foundation\u002Fsolana-dev-skill` — also mirrored in this hub as the\n> `solana-dev` entry. Maintained by the Solana Foundation; Musebook does\n> not author or maintain this content. Relative links in the body point\n> at the upstream skill's file layout and resolve in the full install.\n\n# Payments and commerce (optional)\n\n## When payments are in scope\nUse this guidance when the user asks about:\n- checkout flows, tips, payment buttons\n- payment request URLs \u002F QR codes\n- fee abstraction \u002F gasless transactions\n\n## Building payments with Kit (default)\n\nBuild payment flows directly on `@solana\u002Fkit` + `@solana-program\u002F*`:\n\n- SOL transfers: `getTransferSolInstruction` from `@solana-program\u002Fsystem`\n- Token transfers: the `tokenProgram()` plugin from `@solana-program\u002Ftoken` (`client.token` — `transferToATA` auto-derives and creates the recipient ATA)\n- Payment correlation: attach a memo (`@solana-program\u002Fmemo`) or a unique reference account to locate settlement for an order. Neither prevents a second transfer in a separately signed transaction.\n- Confirmation: track signature status to the commitment level your UX needs (`confirmed` for UI feedback, `finalized` for irreversible fulfillment)\n\n## Solana Pay (payment requests \u002F QR)\n\nUse the Solana Pay URL spec for request-based payments (point-of-sale, invoices, QR codes):\n- `solana:\u003Crecipient>?amount=..&spl-token=..&reference=..&label=..&message=..`\n- Verify settlement server-side by finding the transaction via the `reference` key and validating recipient, mint, and amount from chain state.\n\n## Retry and fulfillment boundaries\n\n- Store the signature before submitting. On timeout, rebroadcast the same signed tx or reconcile it before re-signing; missing RPC history isn't proof of non-payment.\n- Make fulfillment idempotent (atomically claim the order in your DB). A reference match alone isn't enough: also require a successful tx at the required commitment.\n\n## Kora (gasless \u002F fee abstraction)\nUse Kora when users shouldn't need SOL: sponsored fees, fees paid in USDC or another SPL token, or a policy-checked paymaster co-signing user transactions. See [kora.md](kora.md) for operator setup and security controls.\n\n## UX and security checklist for payments\n- Always show recipient + amount + token clearly before signing.\n- Keep retries tied to the same authorized payment intent; do not treat a memo or reference as an on-chain duplicate-payment guard.\n- Confirm settlement by querying chain state, not by trusting client-side callbacks.\n- Handle partial failures gracefully (transaction sent but not confirmed).\n- Provide clear error messages for common failure modes (insufficient balance, rejected signature).\n- Test settlement logic against Surfpool — set up buyer\u002Fmerchant token accounts with `surfnet_setTokenAccount` and assert post-transaction balances (see [testing.md](testing.md)).\n\n## References\n\n- [Solana Pay](https:\u002F\u002Fsolana.com\u002Fdocs\u002Ftools\u002Fsolana-pay)\n- [Memo program](https:\u002F\u002Fwww.solana-program.com\u002Fdocs\u002Fmemo)\n- [Transaction structure](https:\u002F\u002Fsolana.com\u002Fdocs\u002Fcore\u002Ftransactions)\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"source":26,"version":27,"category":28},"Solana Foundation","https:\u002F\u002Fgithub.com\u002Fsolana-foundation\u002Fsolana-dev-skill","2.7.0","Payments","main","1c523aba5cdf867a79f078847075492d7778092a","public\u002Fapi\u002Fskills\u002Fsolana-foundation\u002Fpayments",1,"https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills","https:\u002F\u002Fskills.x402.wtf","https:\u002F\u002Fgithub.com\u002Fthemusebook","https:\u002F\u002Fmusebook.trade","The official Github of musebook","2026-11-02 23:42:26",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add themusebook\u002Fskills --skill solana-dev-payments",{"tool":45,"command":46},"bunx","bunx skills add themusebook\u002Fskills --skill solana-dev-payments",{"tool":48,"command":49},"pnpm","pnpm dlx skills add themusebook\u002Fskills --skill solana-dev-payments","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fsolana-foundation\u002Fpayments\u002FSKILL.md",true,[53,59],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"metadata.json","REFERENCE","参考文档",348,"https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fsolana-foundation\u002Fpayments\u002Fmetadata.json",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"verification.json",1049,"https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fsolana-foundation\u002Fpayments\u002Fverification.json",[64,72,79,86,93,100],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":68,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7AB34SPKVSDRRG009PM1CZH","youtube-clipper","YouTube 视频智能剪辑工具。下载视频和字幕，AI 分析生成精细章节（几分钟级别）， 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频，并生成总结文案。 使用场景：当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词：视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7AB18BH6N7KR7939HRNWVMQ","viem-integration","Integrate EVM blockchains using viem. Use when user says \"read blockchain data\", \"send transaction\", \"interact with smart contract\", \"connect to Ethereum\", \"use viem\", \"use wagmi\", \"wallet integration\", \"viem setup\", or mentions blockchain\u002FEVM development with TypeScript.","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fviem-integration\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7AB12GHGP48WCNXDQQ9222H","v4-security-foundations","Security-first Uniswap v4 hook development. Use when user mentions \"v4 hooks\", \"hook security\", \"PoolManager\", \"beforeSwap\", \"afterSwap\", or asks about V4 hook best practices, vulnerabilities, or audit requirements.","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fv4-security-foundations\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7AB0XM3PSR7V3Q2ZRR0Q0FB","v4-sdk-integration","App-layer SDK guide for building swap and liquidity experiences directly with the Uniswap v4 SDK. Use when user asks about \"v4 sdk\", \"uniswap v4\", \"v4 swap\", \"v4 liquidity\", \"PoolManager\", \"V4Planner\", \"StateView\", \"PositionManager\", \"pool state\", \"v4 position\", \"uniswap sdk\", or when building swap\u002Fliquidity UX directly with SDKs rather than via the Trading API.","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fv4-sdk-integration\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7AB0SGA93ASA588DJW4P9WT","v4-hook-generator","Generate Uniswap v4 hook contracts via OpenZeppelin MCP. Use when building custom swap logic, async swaps, hook-owned liquidity, custom curves, dynamic fees, MEV protection, limit orders, or oracle hooks.","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fv4-hook-generator\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M7AAZYH75H4CS03WSW2EZ8DM","testing","For testing with Light Protocol programs and clients on localnet, devnet, and mainnet validation.","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftesting\u002FSKILL.md",[],[]]