[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FXF4J3WVSD07V9QNCC2Q6T":3,"skill-same:01M6FXF4J3WVSD07V9QNCC2Q6T":61},{"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":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":46,"install":47,"resources":60},"01M6FXF4J3WVSD07V9QNCC2Q6T","jb-cash-out-hook",null,"Generate custom Juicebox V5 cash out hooks from natural language specifications. Creates Solidity contracts implementing IJBCashOutHook and\u002For IJBRulesetDataHook with Foundry tests. First evaluates if off-the-shelf solutions (721 hook, Revnet) fit the use case.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmejango\u002Fjuicy\u002Fjb-cash-out-hook\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],"jb cash out hook","hook","natural language","juicebox v5","specifications","with","case","fit","tests","foundry","language","contracts","hooks","use","first","solidity","generate","2026-11-10 10:12:30",false,"---\nname: jb-cash-out-hook\ndescription: Generate custom Juicebox V5 cash out hooks from natural language specifications. Creates Solidity contracts implementing IJBCashOutHook and\u002For IJBRulesetDataHook with Foundry tests. First evaluates if off-the-shelf solutions (721 hook, Revnet) fit the use case.\n---\n\n# Juicebox V5 Cash Out Hook Generator\n\nGenerate custom cash out hooks for Juicebox V5 projects based on natural language specifications.\n\n## Before Writing Custom Code\n\n**Always evaluate if an off-the-shelf solution fits the user's needs:**\n\n| User Need | Recommended Solution |\n|-----------|---------------------|\n| Burn NFTs to reclaim funds | Deploy **nana-721-hook-v5** directly |\n| Fee extraction on cash outs | Deploy a **Revnet** (extracts 2.5% fees) |\n| Autonomous treasury with cash out rules | Use **revnet-core-v5** |\n\nIf off-the-shelf solutions fit, guide the user to deploy them instead of generating custom code.\n\n## V5 Cash Out Hook Architecture\n\nCash out hooks in V5 follow a two-stage pattern:\n\n### Stage 1: Data Hook (beforeCashOutRecordedWith)\n- Receives cash out info before recording\n- Returns tax rate, count, supply, and hook specifications\n- Can modify the effective cash out calculation\n- Implements `IJBRulesetDataHook`\n\n### Stage 2: Cash Out Hook (afterCashOutRecordedWith)\n- Executes after cash out is recorded\n- Receives forwarded funds and context\n- Implements `IJBCashOutHook`\n\n## JBAfterCashOutRecordedContext Fields\n\n```solidity\nstruct JBAfterCashOutRecordedContext {\n    address holder;                 \u002F\u002F Token holder cashing out\n    uint256 projectId;              \u002F\u002F Project ID\n    uint256 rulesetId;              \u002F\u002F Current ruleset ID\n    uint256 cashOutCount;           \u002F\u002F Tokens being cashed out\n    JBTokenAmount reclaimedAmount;  \u002F\u002F Amount reclaimed by holder\n    JBTokenAmount forwardedAmount;  \u002F\u002F Amount forwarded to hook\n    uint256 cashOutTaxRate;         \u002F\u002F Tax rate (0-10000)\n    address payable beneficiary;    \u002F\u002F Receives reclaimed funds\n    bytes hookMetadata;             \u002F\u002F Data from data hook\n    bytes cashOutMetadata;          \u002F\u002F Data from cash out initiator\n}\n```\n\n## Design Patterns\n\n### Simple Cash Out Hook (afterCashOutRecordedWith only)\nUse when you only need to execute logic after cash out without modifying calculations.\n\n```solidity\ncontract SimpleCashOutHook is IJBCashOutHook, ERC165 {\n    function afterCashOutRecordedWith(JBAfterCashOutRecordedContext calldata context) external payable {\n        \u002F\u002F Validate caller is a project terminal\n        \u002F\u002F Execute custom logic with forwarded funds\n    }\n\n    function supportsInterface(bytes4 interfaceId) public view override returns (bool) {\n        return interfaceId == type(IJBCashOutHook).interfaceId || super.supportsInterface(interfaceId);\n    }\n}\n```\n\n### Data Hook + Cash Out Hook (full control)\nUse when you need to modify tax rate, supply calculations, or intercept funds.\n\n```solidity\ncontract FullCashOutHook is IJBRulesetDataHook, IJBCashOutHook, ERC165 {\n    function beforeCashOutRecordedWith(JBBeforeCashOutRecordedContext calldata context)\n        external view returns (\n            uint256 cashOutTaxRate,\n            uint256 cashOutCount,\n            uint256 totalSupply,\n            JBCashOutHookSpecification[] memory hookSpecifications\n        )\n    {\n        \u002F\u002F Calculate custom tax rate or modify supply\n        \u002F\u002F Specify hooks and forwarded amounts\n    }\n\n    function afterCashOutRecordedWith(JBAfterCashOutRecordedContext calldata context) external payable {\n        \u002F\u002F Execute with forwarded funds\n        \u002F\u002F Handle fee extraction, burning, etc.\n    }\n\n    function beforePayRecordedWith(JBBeforePayRecordedContext calldata context)\n        external view returns (uint256 weight, JBPayHookSpecification[] memory hookSpecifications)\n    {\n        \u002F\u002F Pass through if not handling payments\n        return (context.weight, new JBPayHookSpecification[](0));\n    }\n\n    function hasMintPermissionFor(uint256) external pure returns (bool) {\n        return false;\n    }\n}\n```\n\n### Fee Extraction Pattern (from revnet-core-v5)\nRoute a percentage of cash outs to a fee beneficiary.\n\n```solidity\nfunction afterCashOutRecordedWith(JBAfterCashOutRecordedContext calldata context) external payable {\n    \u002F\u002F Forward fee to beneficiary\n    uint256 feeAmount = context.forwardedAmount.value;\n    if (feeAmount > 0) {\n        \u002F\u002F Process fee payment\n    }\n}\n```\n\n### NFT Burning Pattern (from nana-721-hook-v5)\nBurn NFTs when cashing out to reclaim proportional funds.\n\n```solidity\nfunction afterCashOutRecordedWith(JBAfterCashOutRecordedContext calldata context) external payable {\n    \u002F\u002F Decode token IDs from metadata\n    uint256[] memory tokenIds = abi.decode(context.cashOutMetadata, (uint256[]));\n\n    \u002F\u002F Verify ownership and burn\n    for (uint256 i; i \u003C tokenIds.length; i++) {\n        _burn(tokenIds[i]);\n    }\n}\n```\n\n## Generation Guidelines\n\n1. **Ask clarifying questions** about the desired cash out behavior\n2. **Evaluate off-the-shelf options** first\n3. **Choose the simplest pattern** that meets requirements\n4. **Include terminal validation** in afterCashOutRecordedWith\n5. **Generate Foundry tests** with fork testing\n6. **Use correct V5 terminology** (cash out, not redemption)\n\n## Example Prompts\n\n- \"Create a cash out hook that burns an NFT to unlock full reclaim value\"\n- \"I want to extract a 5% fee on all cash outs to a treasury address\"\n- \"Build a hook that only allows cash outs after a vesting period\"\n- \"Create a hook that requires holding a specific NFT to cash out\"\n\n## Reference Implementations\n\n- **nana-721-hook-v5**: https:\u002F\u002Fgithub.com\u002FBananapus\u002Fnana-721-hook-v5 (burns NFTs on cash out)\n- **revnet-core-v5**: https:\u002F\u002Fgithub.com\u002Frev-net\u002Frevnet-core-v5 (fee extraction)\n\n## Output Format\n\nGenerate:\n1. Main contract in `src\u002F`\n2. Interface in `src\u002Finterfaces\u002F` if needed\n3. Test file in `test\u002F`\n4. Deployment script in `script\u002F` if requested\n\nUse Foundry project structure with forge-std.\n","# Juicebox V5 Cash Out Hook Generator\n\nGenerate custom cash out hooks for Juicebox V5 projects based on natural language specifications.\n\n## Before Writing Custom Code\n\n**Always evaluate if an off-the-shelf solution fits the user's needs:**\n\n| User Need | Recommended Solution |\n|-----------|---------------------|\n| Burn NFTs to reclaim funds | Deploy **nana-721-hook-v5** directly |\n| Fee extraction on cash outs | Deploy a **Revnet** (extracts 2.5% fees) |\n| Autonomous treasury with cash out rules | Use **revnet-core-v5** |\n\nIf off-the-shelf solutions fit, guide the user to deploy them instead of generating custom code.\n\n## V5 Cash Out Hook Architecture\n\nCash out hooks in V5 follow a two-stage pattern:\n\n### Stage 1: Data Hook (beforeCashOutRecordedWith)\n- Receives cash out info before recording\n- Returns tax rate, count, supply, and hook specifications\n- Can modify the effective cash out calculation\n- Implements `IJBRulesetDataHook`\n\n### Stage 2: Cash Out Hook (afterCashOutRecordedWith)\n- Executes after cash out is recorded\n- Receives forwarded funds and context\n- Implements `IJBCashOutHook`\n\n## JBAfterCashOutRecordedContext Fields\n\n```solidity\nstruct JBAfterCashOutRecordedContext {\n    address holder;                 \u002F\u002F Token holder cashing out\n    uint256 projectId;              \u002F\u002F Project ID\n    uint256 rulesetId;              \u002F\u002F Current ruleset ID\n    uint256 cashOutCount;           \u002F\u002F Tokens being cashed out\n    JBTokenAmount reclaimedAmount;  \u002F\u002F Amount reclaimed by holder\n    JBTokenAmount forwardedAmount;  \u002F\u002F Amount forwarded to hook\n    uint256 cashOutTaxRate;         \u002F\u002F Tax rate (0-10000)\n    address payable beneficiary;    \u002F\u002F Receives reclaimed funds\n    bytes hookMetadata;             \u002F\u002F Data from data hook\n    bytes cashOutMetadata;          \u002F\u002F Data from cash out initiator\n}\n```\n\n## Design Patterns\n\n### Simple Cash Out Hook (afterCashOutRecordedWith only)\nUse when you only need to execute logic after cash out without modifying calculations.\n\n```solidity\ncontract SimpleCashOutHook is IJBCashOutHook, ERC165 {\n    function afterCashOutRecordedWith(JBAfterCashOutRecordedContext calldata context) external payable {\n        \u002F\u002F Validate caller is a project terminal\n        \u002F\u002F Execute custom logic with forwarded funds\n    }\n\n    function supportsInterface(bytes4 interfaceId) public view override returns (bool) {\n        return interfaceId == type(IJBCashOutHook).interfaceId || super.supportsInterface(interfaceId);\n    }\n}\n```\n\n### Data Hook + Cash Out Hook (full control)\nUse when you need to modify tax rate, supply calculations, or intercept funds.\n\n```solidity\ncontract FullCashOutHook is IJBRulesetDataHook, IJBCashOutHook, ERC165 {\n    function beforeCashOutRecordedWith(JBBeforeCashOutRecordedContext calldata context)\n        external view returns (\n            uint256 cashOutTaxRate,\n            uint256 cashOutCount,\n            uint256 totalSupply,\n            JBCashOutHookSpecification[] memory hookSpecifications\n        )\n    {\n        \u002F\u002F Calculate custom tax rate or modify supply\n        \u002F\u002F Specify hooks and forwarded amounts\n    }\n\n    function afterCashOutRecordedWith(JBAfterCashOutRecordedContext calldata context) external payable {\n        \u002F\u002F Execute with forwarded funds\n        \u002F\u002F Handle fee extraction, burning, etc.\n    }\n\n    function beforePayRecordedWith(JBBeforePayRecordedContext calldata context)\n        external view returns (uint256 weight, JBPayHookSpecification[] memory hookSpecifications)\n    {\n        \u002F\u002F Pass through if not handling payments\n        return (context.weight, new JBPayHookSpecification[](0));\n    }\n\n    function hasMintPermissionFor(uint256) external pure returns (bool) {\n        return false;\n    }\n}\n```\n\n### Fee Extraction Pattern (from revnet-core-v5)\nRoute a percentage of cash outs to a fee beneficiary.\n\n```solidity\nfunction afterCashOutRecordedWith(JBAfterCashOutRecordedContext calldata context) external payable {\n    \u002F\u002F Forward fee to beneficiary\n    uint256 feeAmount = context.forwardedAmount.value;\n    if (feeAmount > 0) {\n        \u002F\u002F Process fee payment\n    }\n}\n```\n\n### NFT Burning Pattern (from nana-721-hook-v5)\nBurn NFTs when cashing out to reclaim proportional funds.\n\n```solidity\nfunction afterCashOutRecordedWith(JBAfterCashOutRecordedContext calldata context) external payable {\n    \u002F\u002F Decode token IDs from metadata\n    uint256[] memory tokenIds = abi.decode(context.cashOutMetadata, (uint256[]));\n\n    \u002F\u002F Verify ownership and burn\n    for (uint256 i; i \u003C tokenIds.length; i++) {\n        _burn(tokenIds[i]);\n    }\n}\n```\n\n## Generation Guidelines\n\n1. **Ask clarifying questions** about the desired cash out behavior\n2. **Evaluate off-the-shelf options** first\n3. **Choose the simplest pattern** that meets requirements\n4. **Include terminal validation** in afterCashOutRecordedWith\n5. **Generate Foundry tests** with fork testing\n6. **Use correct V5 terminology** (cash out, not redemption)\n\n## Example Prompts\n\n- \"Create a cash out hook that burns an NFT to unlock full reclaim value\"\n- \"I want to extract a 5% fee on all cash outs to a treasury address\"\n- \"Build a hook that only allows cash outs after a vesting period\"\n- \"Create a hook that requires holding a specific NFT to cash out\"\n\n## Reference Implementations\n\n- **nana-721-hook-v5**: https:\u002F\u002Fgithub.com\u002FBananapus\u002Fnana-721-hook-v5 (burns NFTs on cash out)\n- **revnet-core-v5**: https:\u002F\u002Fgithub.com\u002Frev-net\u002Frevnet-core-v5 (fee extraction)\n\n## Output Format\n\nGenerate:\n1. Main contract in `src\u002F`\n2. Interface in `src\u002Finterfaces\u002F` if needed\n3. Test file in `test\u002F`\n4. Deployment script in `script\u002F` if requested\n\nUse Foundry project structure with forge-std.\n",{"name":5,"description":7},"main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fmejango\u002Fjuicy\u002Fjb-cash-out-hook",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add kbarbel640-del\u002Fskills --skill jb-cash-out-hook",{"tool":53,"command":54},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill jb-cash-out-hook",{"tool":56,"command":57},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill jb-cash-out-hook","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmejango\u002Fjuicy\u002Fjb-cash-out-hook\u002FSKILL.md",true,[],[62,87,110,128,133,153],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":35},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[69,70,71,23,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86],"crowd prompting","prompting","api","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content","ai agents",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":35},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[94,71,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,75,31],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":35},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[],[117,118,119,120,121,122,123,23,124,108,31,125,71,126,127],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":129,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":35},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[120,119,118,117,127,122,123,23,121,108,31,124,125,71,126],{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":35},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[140,141,142,143,144,145,146,147,148,149,150,151,152],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":35},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[],[160,161,29,162,23,163,164,40,165,125,166,167,168,169,170,84,171,172,173],"agent constitution","constitution","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]