[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AB0XM3PSR7V3Q2ZRR0Q0FB":3,"skill-same:01M7AB0XM3PSR7V3Q2ZRR0Q0FB":54},{"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":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":35,"ownerHtmlUrl":36,"ownerBlogUrl":37,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M7AB0XM3PSR7V3Q2ZRR0Q0FB","v4-sdk-integration",null,"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.","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\u002Fskills\u002Fv4-sdk-integration\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: v4-sdk-integration\ndescription: >\n  App-layer SDK guide for building swap and liquidity experiences directly with the Uniswap v4 SDK.\n  Use when user asks about \"v4 sdk\", \"uniswap v4\", \"v4 swap\", \"v4 liquidity\", \"PoolManager\",\n  \"V4Planner\", \"StateView\", \"PositionManager\", \"pool state\", \"v4 position\", \"uniswap sdk\",\n  or when building swap\u002Fliquidity UX directly with SDKs rather than via the Trading API.\nallowed-tools: Read, Write, Edit, Glob, Grep, Bash(npm:*), Bash(npx:*), Bash(yarn:*), Bash(curl:*), WebFetch\nmodel: opus\nlicense: MIT\nmetadata:\n  author: uniswap\n  version: '1.0.0'\n---\n\n# Uniswap v4 SDK Integration\n\n> App-layer SDK for swaps, quotes, and liquidity. For Solidity hook contracts, use the\n> `uniswap-hooks` skill. For Trading API or v3-centric swaps, use the `swap-integration` skill.\n\n## When to Use\n\n- Token swap UI (single-hop or multi-hop)\n- Quote\u002Fprice display before executing a trade\n- Liquidity position management (add\u002Fremove\u002Fcollect)\n- Pool state reads (price, tick, liquidity)\n\n## Packages\n\n```bash\nnpm i @uniswap\u002Fv4-sdk @uniswap\u002Fsdk-core @uniswap\u002Funiversal-router-sdk\n```\n\n---\n\n## v4 vs v3 Decision Table\n\n| Aspect             | v3                         | v4                                            |\n| ------------------ | -------------------------- | --------------------------------------------- |\n| Swap execution     | SwapRouter directly        | Universal Router required (V4Planner)         |\n| Pool architecture  | One contract per pool      | Singleton PoolManager                         |\n| Pool state reads   | Direct pool contract       | StateView contract                            |\n| Native ETH         | Wrap to WETH               | Native support (`Ether.onChain(chainId)`)     |\n| Position NFTs      | NonfungiblePositionManager | PositionManager + multicall                   |\n| Fee collection     | Explicit `collect()`       | Automatic on position modification            |\n| Position discovery | Onchain enumeration        | Offchain event indexing                       |\n| Token approvals    | Direct approve             | Permit2 required                              |\n| Contract addresses | Same across chains         | Different per chain — verify from deployments |\n\n---\n\n## Core Contracts (Per Chain)\n\nLook up addresses at \u003Chttps:\u002F\u002Fdocs.uniswap.org\u002Fcontracts\u002Fv4\u002Fdeployments> — they differ per chain.\n\n| Contract         | Purpose                                                                                 |\n| ---------------- | --------------------------------------------------------------------------------------- |\n| PoolManager      | Singleton pool state                                                                    |\n| Universal Router | Swap execution entry point                                                              |\n| Quoter           | Offchain quote simulation (callStatic)                                                  |\n| StateView        | Pool state reads (getSlot0, getLiquidity)                                               |\n| PositionManager  | LP position lifecycle                                                                   |\n| Permit2          | Token approval layer (same across chains: `0x000000000022D473030F116dDEE9F6B43aC78BA3`) |\n\n---\n\n## Swap Pattern (Universal Router)\n\nAll swaps use: V4Planner -> RoutePlanner -> Universal Router `execute()`.\n\n**Single-hop (exact input):**\n\n```typescript\nimport { Actions, V4Planner } from '@uniswap\u002Fv4-sdk';\nimport { CommandType, RoutePlanner } from '@uniswap\u002Funiversal-router-sdk';\n\nconst v4Planner = new V4Planner();\nv4Planner.addAction(Actions.SWAP_EXACT_IN_SINGLE, [swapConfig]);\nv4Planner.addAction(Actions.SETTLE_ALL, [inputCurrency, amountIn]);\nv4Planner.addAction(Actions.TAKE_ALL, [outputCurrency, amountOutMinimum]);\n\nconst routePlanner = new RoutePlanner();\nroutePlanner.addCommand(CommandType.V4_SWAP, [v4Planner.actions, v4Planner.params]);\n\nconst deadline = Math.floor(Date.now() \u002F 1000) + 3600;\n\u002F\u002F Note: universalRouter.execute() is pseudocode for the viem call pattern.\n\u002F\u002F With viem, use: walletClient.writeContract({ address: UNIVERSAL_ROUTER_ADDRESS, abi: universalRouterAbi, functionName: 'execute', args: [routePlanner.commands, [v4Planner.finalize()], deadline], ...txOptions })\nawait universalRouter.execute(routePlanner.commands, [v4Planner.finalize()], deadline, txOptions);\n```\n\n**Multi-hop (exact input):**\n\n```typescript\nimport { Actions, V4Planner, encodeMultihopExactInPath } from '@uniswap\u002Fv4-sdk';\nimport { CommandType, RoutePlanner } from '@uniswap\u002Funiversal-router-sdk';\n\nconst v4Planner = new V4Planner();\n\u002F\u002F Build multi-hop path: tokenA -> tokenB -> tokenC\nconst path = encodeMultihopExactInPath([poolKeyAB, poolKeyBC], tokenA);\nv4Planner.addAction(Actions.SWAP_EXACT_IN, [{ path, amountIn, amountOutMinimum }]);\n\u002F\u002F SETTLE_ALL uses first pool's input currency; TAKE_ALL uses last pool's output currency\nv4Planner.addAction(Actions.SETTLE_ALL, [tokenA, amountIn]);\nv4Planner.addAction(Actions.TAKE_ALL, [tokenC, amountOutMinimum]);\n\nconst routePlanner = new RoutePlanner();\nroutePlanner.addCommand(CommandType.V4_SWAP, [v4Planner.actions, v4Planner.params]);\n\nconst deadline = Math.floor(Date.now() \u002F 1000) + 3600;\n\u002F\u002F Note: universalRouter.execute() is pseudocode for the viem call pattern.\n\u002F\u002F With viem, use: walletClient.writeContract({ address: UNIVERSAL_ROUTER_ADDRESS, abi: universalRouterAbi, functionName: 'execute', args: [routePlanner.commands, [v4Planner.finalize()], deadline], ...txOptions })\nawait universalRouter.execute(routePlanner.commands, [v4Planner.finalize()], deadline, txOptions);\n```\n\n**SwapConfig** (`SwapExactInSingle`):\n\n```typescript\nconst swapConfig = {\n  poolKey: { currency0, currency1, fee, tickSpacing, hooks },\n  zeroForOne,\n  amountIn,\n  amountOutMinimum,\n  hookData: '0x00',\n};\n```\n\n---\n\n## Quoting Pattern\n\nUse the Quoter contract with `callStatic` — this simulates the swap offchain without executing it\nor spending gas.\n\n```typescript\nconst quote = await quoterContract.callStatic.quoteExactInputSingle({\n  poolKey,\n  zeroForOne,\n  exactAmount: amountIn,\n  hookData: '0x00',\n});\n```\n\nFour available methods:\n\n- `quoteExactInputSingle` — single-hop, exact input amount\n- `quoteExactInput` — multi-hop, exact input amount\n- `quoteExactOutputSingle` — single-hop, exact output amount\n- `quoteExactOutput` — multi-hop, exact output amount\n\n---\n\n## Pool State Reads (StateView)\n\n```typescript\nimport { Pool } from '@uniswap\u002Fv4-sdk';\n\nconst poolId = Pool.getPoolId(currency0, currency1, fee, tickSpacing, hooks);\n\nconst [slot0, liquidity] = await Promise.all([\n  stateViewContract.getSlot0(poolId),\n  stateViewContract.getLiquidity(poolId),\n]);\n\u002F\u002F slot0 → { sqrtPriceX96, tick, protocolFee, lpFee }\n```\n\n---\n\n## ERC20 Approval Flow (Permit2)\n\nERC20 swaps require two approvals — token -> Permit2, then Permit2 -> Universal Router:\n\n```typescript\n\u002F\u002F Step 1: Approve Permit2 on the token contract\nawait erc20Contract.approve(PERMIT2_ADDRESS, MaxUint256);\n\n\u002F\u002F Step 2: Approve Universal Router on Permit2\nawait permit2Contract.approve(tokenAddress, UNIVERSAL_ROUTER_ADDRESS, MAX_UINT160, deadline);\n```\n\nNative ETH swaps bypass both approvals — pass `value` in the transaction options instead.\n\n---\n\n## Position Management (PositionManager)\n\nAll operations use `PositionManager.multicall()`:\n\n| Operation        | SDK Method                                                  |\n| ---------------- | ----------------------------------------------------------- |\n| Add liquidity    | `V4PositionManager.addCallParameters(position, options)`    |\n| Remove liquidity | `V4PositionManager.removeCallParameters(position, options)` |\n| Collect fees     | `V4PositionManager.collectCallParameters(options)`          |\n| Create position  | `V4PositionManager.createCallParameters(position, options)` |\n\n```typescript\nconst { calldata, value } = V4PositionManager.addCallParameters(position, {\n  slippageTolerance: new Percent(50, 10_000),\n  deadline: deadline.toString(),\n  tokenId: tokenId.toString(),\n  useNative: token0.isNative ? Ether.onChain(chainId) : undefined,\n  batchPermit,\n  hookData: '0x',\n});\n\nawait walletClient.writeContract({\n  address: POSITION_MANAGER_ADDRESS,\n  functionName: 'multicall',\n  args: [[calldata]],\n  value: BigInt(value),\n});\n```\n\n---\n\n## Strict Rules\n\n- NEVER call PoolManager directly for swaps — ALWAYS route through Universal Router.\n- NEVER assume contract addresses are the same across chains — look up from the deployments page.\n- NEVER call Quoter onchain (gas expensive) — ALWAYS use `callStatic` for offchain simulation.\n- NEVER skip Permit2 for ERC20 swaps — direct `approve` to Universal Router will not work.\n- ALWAYS set a deadline on swaps and LP operations.\n- ALWAYS handle native ETH with `Ether.onChain(chainId)`, not WETH, in v4 pool contexts.\n- ALWAYS use `Pool.getPoolId()` to compute pool identifiers — do not construct manually.\n\n---\n\n## Links\n\n- SDK overview: \u003Chttps:\u002F\u002Fdocs.uniswap.org\u002Fsdk\u002Fv4\u002Foverview>\n- Swap guides: \u003Chttps:\u002F\u002Fdocs.uniswap.org\u002Fsdk\u002Fv4\u002Fguides\u002Fswaps\u002Fquoting>\n- Liquidity guide: \u003Chttps:\u002F\u002Fdocs.uniswap.org\u002Fsdk\u002Fv4\u002Fguides\u002Fliquidity\u002Fadd-remove-liquidity>\n- Pool data: \u003Chttps:\u002F\u002Fdocs.uniswap.org\u002Fsdk\u002Fv4\u002Fguides\u002Fadvanced\u002Fpool-data>\n- Deployments: \u003Chttps:\u002F\u002Fdocs.uniswap.org\u002Fcontracts\u002Fv4\u002Fdeployments>\n- npm: \u003Chttps:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@uniswap\u002Fv4-sdk>\n\n---\n\n## Related Skills\n\n- `swap-integration` — Trading API and v3-centric swap integration (not direct v4 SDK)\n- `uniswap-hooks` — Solidity hook contract generation (not app-layer SDK)\n","# Uniswap v4 SDK Integration\n\n> App-layer SDK for swaps, quotes, and liquidity. For Solidity hook contracts, use the\n> `uniswap-hooks` skill. For Trading API or v3-centric swaps, use the `swap-integration` skill.\n\n## When to Use\n\n- Token swap UI (single-hop or multi-hop)\n- Quote\u002Fprice display before executing a trade\n- Liquidity position management (add\u002Fremove\u002Fcollect)\n- Pool state reads (price, tick, liquidity)\n\n## Packages\n\n```bash\nnpm i @uniswap\u002Fv4-sdk @uniswap\u002Fsdk-core @uniswap\u002Funiversal-router-sdk\n```\n\n---\n\n## v4 vs v3 Decision Table\n\n| Aspect             | v3                         | v4                                            |\n| ------------------ | -------------------------- | --------------------------------------------- |\n| Swap execution     | SwapRouter directly        | Universal Router required (V4Planner)         |\n| Pool architecture  | One contract per pool      | Singleton PoolManager                         |\n| Pool state reads   | Direct pool contract       | StateView contract                            |\n| Native ETH         | Wrap to WETH               | Native support (`Ether.onChain(chainId)`)     |\n| Position NFTs      | NonfungiblePositionManager | PositionManager + multicall                   |\n| Fee collection     | Explicit `collect()`       | Automatic on position modification            |\n| Position discovery | Onchain enumeration        | Offchain event indexing                       |\n| Token approvals    | Direct approve             | Permit2 required                              |\n| Contract addresses | Same across chains         | Different per chain — verify from deployments |\n\n---\n\n## Core Contracts (Per Chain)\n\nLook up addresses at \u003Chttps:\u002F\u002Fdocs.uniswap.org\u002Fcontracts\u002Fv4\u002Fdeployments> — they differ per chain.\n\n| Contract         | Purpose                                                                                 |\n| ---------------- | --------------------------------------------------------------------------------------- |\n| PoolManager      | Singleton pool state                                                                    |\n| Universal Router | Swap execution entry point                                                              |\n| Quoter           | Offchain quote simulation (callStatic)                                                  |\n| StateView        | Pool state reads (getSlot0, getLiquidity)                                               |\n| PositionManager  | LP position lifecycle                                                                   |\n| Permit2          | Token approval layer (same across chains: `0x000000000022D473030F116dDEE9F6B43aC78BA3`) |\n\n---\n\n## Swap Pattern (Universal Router)\n\nAll swaps use: V4Planner -> RoutePlanner -> Universal Router `execute()`.\n\n**Single-hop (exact input):**\n\n```typescript\nimport { Actions, V4Planner } from '@uniswap\u002Fv4-sdk';\nimport { CommandType, RoutePlanner } from '@uniswap\u002Funiversal-router-sdk';\n\nconst v4Planner = new V4Planner();\nv4Planner.addAction(Actions.SWAP_EXACT_IN_SINGLE, [swapConfig]);\nv4Planner.addAction(Actions.SETTLE_ALL, [inputCurrency, amountIn]);\nv4Planner.addAction(Actions.TAKE_ALL, [outputCurrency, amountOutMinimum]);\n\nconst routePlanner = new RoutePlanner();\nroutePlanner.addCommand(CommandType.V4_SWAP, [v4Planner.actions, v4Planner.params]);\n\nconst deadline = Math.floor(Date.now() \u002F 1000) + 3600;\n\u002F\u002F Note: universalRouter.execute() is pseudocode for the viem call pattern.\n\u002F\u002F With viem, use: walletClient.writeContract({ address: UNIVERSAL_ROUTER_ADDRESS, abi: universalRouterAbi, functionName: 'execute', args: [routePlanner.commands, [v4Planner.finalize()], deadline], ...txOptions })\nawait universalRouter.execute(routePlanner.commands, [v4Planner.finalize()], deadline, txOptions);\n```\n\n**Multi-hop (exact input):**\n\n```typescript\nimport { Actions, V4Planner, encodeMultihopExactInPath } from '@uniswap\u002Fv4-sdk';\nimport { CommandType, RoutePlanner } from '@uniswap\u002Funiversal-router-sdk';\n\nconst v4Planner = new V4Planner();\n\u002F\u002F Build multi-hop path: tokenA -> tokenB -> tokenC\nconst path = encodeMultihopExactInPath([poolKeyAB, poolKeyBC], tokenA);\nv4Planner.addAction(Actions.SWAP_EXACT_IN, [{ path, amountIn, amountOutMinimum }]);\n\u002F\u002F SETTLE_ALL uses first pool's input currency; TAKE_ALL uses last pool's output currency\nv4Planner.addAction(Actions.SETTLE_ALL, [tokenA, amountIn]);\nv4Planner.addAction(Actions.TAKE_ALL, [tokenC, amountOutMinimum]);\n\nconst routePlanner = new RoutePlanner();\nroutePlanner.addCommand(CommandType.V4_SWAP, [v4Planner.actions, v4Planner.params]);\n\nconst deadline = Math.floor(Date.now() \u002F 1000) + 3600;\n\u002F\u002F Note: universalRouter.execute() is pseudocode for the viem call pattern.\n\u002F\u002F With viem, use: walletClient.writeContract({ address: UNIVERSAL_ROUTER_ADDRESS, abi: universalRouterAbi, functionName: 'execute', args: [routePlanner.commands, [v4Planner.finalize()], deadline], ...txOptions })\nawait universalRouter.execute(routePlanner.commands, [v4Planner.finalize()], deadline, txOptions);\n```\n\n**SwapConfig** (`SwapExactInSingle`):\n\n```typescript\nconst swapConfig = {\n  poolKey: { currency0, currency1, fee, tickSpacing, hooks },\n  zeroForOne,\n  amountIn,\n  amountOutMinimum,\n  hookData: '0x00',\n};\n```\n\n---\n\n## Quoting Pattern\n\nUse the Quoter contract with `callStatic` — this simulates the swap offchain without executing it\nor spending gas.\n\n```typescript\nconst quote = await quoterContract.callStatic.quoteExactInputSingle({\n  poolKey,\n  zeroForOne,\n  exactAmount: amountIn,\n  hookData: '0x00',\n});\n```\n\nFour available methods:\n\n- `quoteExactInputSingle` — single-hop, exact input amount\n- `quoteExactInput` — multi-hop, exact input amount\n- `quoteExactOutputSingle` — single-hop, exact output amount\n- `quoteExactOutput` — multi-hop, exact output amount\n\n---\n\n## Pool State Reads (StateView)\n\n```typescript\nimport { Pool } from '@uniswap\u002Fv4-sdk';\n\nconst poolId = Pool.getPoolId(currency0, currency1, fee, tickSpacing, hooks);\n\nconst [slot0, liquidity] = await Promise.all([\n  stateViewContract.getSlot0(poolId),\n  stateViewContract.getLiquidity(poolId),\n]);\n\u002F\u002F slot0 → { sqrtPriceX96, tick, protocolFee, lpFee }\n```\n\n---\n\n## ERC20 Approval Flow (Permit2)\n\nERC20 swaps require two approvals — token -> Permit2, then Permit2 -> Universal Router:\n\n```typescript\n\u002F\u002F Step 1: Approve Permit2 on the token contract\nawait erc20Contract.approve(PERMIT2_ADDRESS, MaxUint256);\n\n\u002F\u002F Step 2: Approve Universal Router on Permit2\nawait permit2Contract.approve(tokenAddress, UNIVERSAL_ROUTER_ADDRESS, MAX_UINT160, deadline);\n```\n\nNative ETH swaps bypass both approvals — pass `value` in the transaction options instead.\n\n---\n\n## Position Management (PositionManager)\n\nAll operations use `PositionManager.multicall()`:\n\n| Operation        | SDK Method                                                  |\n| ---------------- | ----------------------------------------------------------- |\n| Add liquidity    | `V4PositionManager.addCallParameters(position, options)`    |\n| Remove liquidity | `V4PositionManager.removeCallParameters(position, options)` |\n| Collect fees     | `V4PositionManager.collectCallParameters(options)`          |\n| Create position  | `V4PositionManager.createCallParameters(position, options)` |\n\n```typescript\nconst { calldata, value } = V4PositionManager.addCallParameters(position, {\n  slippageTolerance: new Percent(50, 10_000),\n  deadline: deadline.toString(),\n  tokenId: tokenId.toString(),\n  useNative: token0.isNative ? Ether.onChain(chainId) : undefined,\n  batchPermit,\n  hookData: '0x',\n});\n\nawait walletClient.writeContract({\n  address: POSITION_MANAGER_ADDRESS,\n  functionName: 'multicall',\n  args: [[calldata]],\n  value: BigInt(value),\n});\n```\n\n---\n\n## Strict Rules\n\n- NEVER call PoolManager directly for swaps — ALWAYS route through Universal Router.\n- NEVER assume contract addresses are the same across chains — look up from the deployments page.\n- NEVER call Quoter onchain (gas expensive) — ALWAYS use `callStatic` for offchain simulation.\n- NEVER skip Permit2 for ERC20 swaps — direct `approve` to Universal Router will not work.\n- ALWAYS set a deadline on swaps and LP operations.\n- ALWAYS handle native ETH with `Ether.onChain(chainId)`, not WETH, in v4 pool contexts.\n- ALWAYS use `Pool.getPoolId()` to compute pool identifiers — do not construct manually.\n\n---\n\n## Links\n\n- SDK overview: \u003Chttps:\u002F\u002Fdocs.uniswap.org\u002Fsdk\u002Fv4\u002Foverview>\n- Swap guides: \u003Chttps:\u002F\u002Fdocs.uniswap.org\u002Fsdk\u002Fv4\u002Fguides\u002Fswaps\u002Fquoting>\n- Liquidity guide: \u003Chttps:\u002F\u002Fdocs.uniswap.org\u002Fsdk\u002Fv4\u002Fguides\u002Fliquidity\u002Fadd-remove-liquidity>\n- Pool data: \u003Chttps:\u002F\u002Fdocs.uniswap.org\u002Fsdk\u002Fv4\u002Fguides\u002Fadvanced\u002Fpool-data>\n- Deployments: \u003Chttps:\u002F\u002Fdocs.uniswap.org\u002Fcontracts\u002Fv4\u002Fdeployments>\n- npm: \u003Chttps:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@uniswap\u002Fv4-sdk>\n\n---\n\n## Related Skills\n\n- `swap-integration` — Trading API and v3-centric swap integration (not direct v4 SDK)\n- `uniswap-hooks` — Solidity hook contract generation (not app-layer SDK)\n",{"name":5,"model":24,"license":15,"metadata":25,"description":28,"allowed-tools":29},"opus",{"author":26,"version":27},"uniswap","1.0.0","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.\n","Read, Write, Edit, Glob, Grep, Bash(npm:*), Bash(npx:*), Bash(yarn:*), Bash(curl:*), WebFetch","main","1c523aba5cdf867a79f078847075492d7778092a","skills\u002Fv4-sdk-integration",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":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add themusebook\u002Fskills --skill v4-sdk-integration",{"tool":46,"command":47},"bunx","bunx skills add themusebook\u002Fskills --skill v4-sdk-integration",{"tool":49,"command":50},"pnpm","pnpm dlx skills add themusebook\u002Fskills --skill v4-sdk-integration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fv4-sdk-integration\u002FSKILL.md",true,[],[55,63,70,77,84,91],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"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":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"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":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"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":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"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":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"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",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7AAZCRTDMVYHC3317A01EE6","swap-planner","This skill should be used when the user asks to \"swap tokens\", \"trade ETH for USDC\", \"exchange tokens on Uniswap\", \"buy tokens\", \"sell tokens\", \"convert ETH to stablecoins\", \"find memecoins\", \"discover tokens\", \"research tokens\", \"tokens to buy\", \"find tokens to swap\", \"what should I buy\", or mentions swapping, trading, researching, discovering, buying, or exchanging tokens on any Uniswap-supported chain. Supports both known token swaps and token discovery workflows (discovery uses keyword search and web search — there is no live \"trending\" feed). Generates deep links to execute swaps in the Uniswap interface.","https:\u002F\u002Fgithub.com\u002Fthemusebook\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fswap-planner\u002FSKILL.md",[],[]]