[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M783EG9PVNGC95H776TFBC49":3,"skill-same:01M783EG9PVNGC95H776TFBC49":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M783EG9PVNGC95H776TFBC49","defi-liquidity",null,"Uniswap v3 liquidity positions with the lp verbs: reading positions, pricing a deposit, adding, removing and collecting, the fee unit, and why a pool that a launchpad made is different.","theselfruleorg\u002Fpolyrob","theselfruleorg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128891129?v=4","01M783D1MFDP1D5ZXSNZMKHARH","01M783D1NEE9ATD39KJYCRR09J",12,"MIT","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fdata\u002Fprompts\u002Fskills\u002Fdefi-liquidity\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: defi-liquidity\ndescription: 'Uniswap v3 liquidity positions with the lp verbs: reading positions, pricing a deposit, adding, removing and collecting, the fee unit, and why a pool that a launchpad made is different.'\nlicense: MIT\nmetadata:\n  polyrob-when: 'Uniswap v3 liquidity: add, remove, collect fees'\n  polyrob-priority: '2'\n  polyrob-triggers: '{\"tool_ids\":[\"defi_trade\",\"defi_data\"]}'\n  polyrob-version: '2'\n---\n# DeFi Liquidity — Uniswap v3 positions\n\n## Liquidity\n\nUse `defi_data.lp_positions`, `lp_pool_info`, and `lp_quote` to read Uniswap v3\npositions and price a deposit. `defi_trade.lp_add` creates\u002Finitializes and mints,\nor increases a held token_id; `lp_remove` decreases and collects (optional burn\nat 100%); `lp_collect` collects both tokens without reducing liquidity\n(`protocol='v4'` too; with `account=`\u002F`nft=` for a v4 position an NFT's account\nowns: the fees land in that account). Writes\nrequire `DEFI_LIQUIDITY_ENABLED=true`, default to dry_run, and pass the shared\nmoney guard. Run each exact token approval separately when the verb names it.\nThe owner's chat verb is `\u002Flp`; `propose_action` cannot carry it (it is not a\ncard verb), so to put a liquidity move to the owner, dry-run it yourself and\nreport the numbers, and name `\u002Flp` as the owner's verb (the command-line rule\nis in `trade-execution`). Fee is in millionths:\n3000 means 0.3%, not 3000 bps. Amounts are human token units; max_spend_usd bounds\nthe sum of deposit legs (or gas for remove\u002Fcollect). Native is accepted on add;\nwithdrawals return wrapped native. A new pool needs an explicit initial_price\nin token_b per token_a. A token still on a launchpad curve requires\nfragment=true before creating a separate market.\n\nA launchpad's own liquidity venue is different from a plain pool. When a token\ngraduates from the curve of the launchpad the `launchpad` tool supports, it gets\na v4 pool whose LP fee is zero. Its hook collects the swap tax and pays creator\nescrow; the launch locker position cannot be withdrawn. Adding another position\nthere provides depth, not LP income: a full-range position sells your token to\nbuyers as they buy. `lp_pool_info`\u002F`lp_quote` with `protocol='v4'` read that\npool (token_a='native', token_b=the launched token), and\n`defi_data.pool_metrics` gives its depth, one-buy impact and code-hash check.\nA v4 add is `lp_add(protocol='v4', range='full')` — a NEW position only, in\nthree steps: the owner's one ERC-20 `approve_token(token, spender=Permit2)`, then\nyour `approve_token(token, spender=\u003Cv4 PositionManager>, amount, via='permit2')`\n(exact, expires in 15 min), then the add. `LP_ETH_CAP` (0 by default) must be\nset by the owner first. `lp_remove(protocol='v4', token_id=…)` withdraws a\npercentage and keeps the position NFT (no burn on v4); it returns NATIVE for a\nnative leg. Any other v4 pool reads too: `lp_positions(protocol='v4',\ntoken_id=…)` reads one position from the chain (owner, PoolKey, ticks,\nliquidity, what it holds now, the fees owed), without `token_id` it counts the\npositions on chain, finds their ids and reads each one; a pool read adds the\nfee and the last 24 hours of swaps, volume and LP fees; `lp_pool_info`\u002F`lp_quote` take `token_id`,\nor the full PoolKey (token_a, token_b, fee, tick_spacing, hooks when it has\none). A v4 pool has no address: its id is the hash of those five fields.\n\nA NEW v4 pool, or a custom range on a pool that is not the launchpad's, is the\nOWNER's declaration — never yours alone. Call `lp_add(protocol='v4', token_a,\ntoken_b, amount_a, amount_b, fee, tick_spacing, range='full'|'ticks:lo,hi',\ninitial_price, hooks if any)`: it sends NOTHING, stores the declaration and\nputs one card to the owner (pool id, range, price, both amounts, the value).\n`slippage_bps` is the allowed price gap there (max 500). Show the plan with\n`lp_add(protocol='v4', seed=\u003Cref>, dry_run=true)`. After the owner confirms\n(one use, one hour), make the two approvals the refusal names, then\n`lp_add(protocol='v4', seed=\u003Cref>, dry_run=false)`: the pool is created and\nthe position minted in ONE transaction (an empty pool has no safe price), or a\nplain mint when the pool exists within the gap of the confirmed price. The\nresult reads the position and the pool back; say only what it verified. Never\npromise that generic `call` can bypass a missing liquidity shape.\n\nA separate pool for a curve-phase token fragments the market and creates an\narbitrage spread. When you are the sole LP, sellers trade against your capital.\nRemoving your own liquidity removes holder exit depth and can be perceived as a\nrug; decide the intended horizon before depositing. Fee collections are not yet\nbooked as treasury income: their wallet_spend USD figure is gas. A submitted tx\nwith unverified receipt must be reconciled before any retry.\n\n## If a tool is missing\n\nFollow `harness-manual`; do the read steps you can, and never work around a\nmissing verb with a raw `call`, a browser dapp or another agent.\n\n## Related\n\n`token-launch`, `trade-execution`.\n","# DeFi Liquidity — Uniswap v3 positions\n\n## Liquidity\n\nUse `defi_data.lp_positions`, `lp_pool_info`, and `lp_quote` to read Uniswap v3\npositions and price a deposit. `defi_trade.lp_add` creates\u002Finitializes and mints,\nor increases a held token_id; `lp_remove` decreases and collects (optional burn\nat 100%); `lp_collect` collects both tokens without reducing liquidity\n(`protocol='v4'` too; with `account=`\u002F`nft=` for a v4 position an NFT's account\nowns: the fees land in that account). Writes\nrequire `DEFI_LIQUIDITY_ENABLED=true`, default to dry_run, and pass the shared\nmoney guard. Run each exact token approval separately when the verb names it.\nThe owner's chat verb is `\u002Flp`; `propose_action` cannot carry it (it is not a\ncard verb), so to put a liquidity move to the owner, dry-run it yourself and\nreport the numbers, and name `\u002Flp` as the owner's verb (the command-line rule\nis in `trade-execution`). Fee is in millionths:\n3000 means 0.3%, not 3000 bps. Amounts are human token units; max_spend_usd bounds\nthe sum of deposit legs (or gas for remove\u002Fcollect). Native is accepted on add;\nwithdrawals return wrapped native. A new pool needs an explicit initial_price\nin token_b per token_a. A token still on a launchpad curve requires\nfragment=true before creating a separate market.\n\nA launchpad's own liquidity venue is different from a plain pool. When a token\ngraduates from the curve of the launchpad the `launchpad` tool supports, it gets\na v4 pool whose LP fee is zero. Its hook collects the swap tax and pays creator\nescrow; the launch locker position cannot be withdrawn. Adding another position\nthere provides depth, not LP income: a full-range position sells your token to\nbuyers as they buy. `lp_pool_info`\u002F`lp_quote` with `protocol='v4'` read that\npool (token_a='native', token_b=the launched token), and\n`defi_data.pool_metrics` gives its depth, one-buy impact and code-hash check.\nA v4 add is `lp_add(protocol='v4', range='full')` — a NEW position only, in\nthree steps: the owner's one ERC-20 `approve_token(token, spender=Permit2)`, then\nyour `approve_token(token, spender=\u003Cv4 PositionManager>, amount, via='permit2')`\n(exact, expires in 15 min), then the add. `LP_ETH_CAP` (0 by default) must be\nset by the owner first. `lp_remove(protocol='v4', token_id=…)` withdraws a\npercentage and keeps the position NFT (no burn on v4); it returns NATIVE for a\nnative leg. Any other v4 pool reads too: `lp_positions(protocol='v4',\ntoken_id=…)` reads one position from the chain (owner, PoolKey, ticks,\nliquidity, what it holds now, the fees owed), without `token_id` it counts the\npositions on chain, finds their ids and reads each one; a pool read adds the\nfee and the last 24 hours of swaps, volume and LP fees; `lp_pool_info`\u002F`lp_quote` take `token_id`,\nor the full PoolKey (token_a, token_b, fee, tick_spacing, hooks when it has\none). A v4 pool has no address: its id is the hash of those five fields.\n\nA NEW v4 pool, or a custom range on a pool that is not the launchpad's, is the\nOWNER's declaration — never yours alone. Call `lp_add(protocol='v4', token_a,\ntoken_b, amount_a, amount_b, fee, tick_spacing, range='full'|'ticks:lo,hi',\ninitial_price, hooks if any)`: it sends NOTHING, stores the declaration and\nputs one card to the owner (pool id, range, price, both amounts, the value).\n`slippage_bps` is the allowed price gap there (max 500). Show the plan with\n`lp_add(protocol='v4', seed=\u003Cref>, dry_run=true)`. After the owner confirms\n(one use, one hour), make the two approvals the refusal names, then\n`lp_add(protocol='v4', seed=\u003Cref>, dry_run=false)`: the pool is created and\nthe position minted in ONE transaction (an empty pool has no safe price), or a\nplain mint when the pool exists within the gap of the confirmed price. The\nresult reads the position and the pool back; say only what it verified. Never\npromise that generic `call` can bypass a missing liquidity shape.\n\nA separate pool for a curve-phase token fragments the market and creates an\narbitrage spread. When you are the sole LP, sellers trade against your capital.\nRemoving your own liquidity removes holder exit depth and can be perceived as a\nrug; decide the intended horizon before depositing. Fee collections are not yet\nbooked as treasury income: their wallet_spend USD figure is gas. A submitted tx\nwith unverified receipt must be reconciled before any retry.\n\n## If a tool is missing\n\nFollow `harness-manual`; do the read steps you can, and never work around a\nmissing verb with a raw `call`, a browser dapp or another agent.\n\n## Related\n\n`token-launch`, `trade-execution`.\n",{"name":5,"license":14,"metadata":23,"description":7},{"polyrob-when":24,"polyrob-version":25,"polyrob-priority":25,"polyrob-triggers":26},"Uniswap v3 liquidity: add, remove, collect fees","2","{\"tool_ids\":[\"defi_trade\",\"defi_data\"]}","main","9e7fa070d6c1069417f6c2c50bc57195c5288903","data\u002Fprompts\u002Fskills\u002Fdefi-liquidity",2,"https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg","https:\u002F\u002Ftheselfrule.org","2026-11-14 16:54:43",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add theselfruleorg\u002Fpolyrob --skill defi-liquidity",{"tool":41,"command":42},"bunx","bunx skills add theselfruleorg\u002Fpolyrob --skill defi-liquidity",{"tool":44,"command":45},"pnpm","pnpm dlx skills add theselfruleorg\u002Fpolyrob --skill defi-liquidity","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fdata\u002Fprompts\u002Fskills\u002Fdefi-liquidity\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":18},"01M783NSEPG1S13E7W3GEQMG6J","echo-basics","How to use the echo tool from the echo fixture pack.","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fpacks\u002Fecho\u002Fpolyrob_echo\u002Fskills\u002Fecho-basics\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M783NM911CND5PQCYDHA9GGV","x-engagement","Operate X account communication on the API rail (the captured-browser rail only where the owner chose it)—read inboxes, post\u002Freply, send DMs, set up the account, with the real write gates and completion evidence","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fpacks\u002Fx\u002Fpolyrob_x\u002Fskills\u002Fx-engagement\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M783NGQ43PGVT6F9XQR4ZNP2","social-discovery","Discover public X\u002Fsocial accounts and conversations with AnySite first (anysite_describe, then anysite_api), using native X account reads where they are authoritative and preserving write gates","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fpacks\u002Fx\u002Fpolyrob_x\u002Fskills\u002Fsocial-discovery\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M783NDAEPJT10SD3DNR56H96","polymarket-trading","GATED: place\u002Fcancel Polymarket orders. Owner-only, read-first, >$500 confirmation gate; references crypto-trading-safety","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fpacks\u002Fmarkets\u002Fpolyrob_markets\u002Fskills\u002Fpolymarket-trading\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M783N8GADTQMKKBQT4Z3JJ84","polymarket-portfolio-review","Read the configured Polymarket account's positions and trade history from the public Data API (no address parameter); summarize exposure and P&L","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fpacks\u002Fmarkets\u002Fpolyrob_markets\u002Fskills\u002Fpolymarket-portfolio-review\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M783N5KTTTRRRSM7XY8SY4NF","polymarket-market-research","Read Polymarket markets (discover, details, price as implied probability, orderbook, spread, volume) with no wallet","https:\u002F\u002Fgithub.com\u002Ftheselfruleorg\u002Fpolyrob\u002Fblob\u002Fmain\u002Fpacks\u002Fmarkets\u002Fpolyrob_markets\u002Fskills\u002Fpolymarket-market-research\u002FSKILL.md",[],[]]