[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FXH29RAQ9AA2ZC9TNNYPSB":3,"skill-same:01M6FXH29RAQ9AA2ZC9TNNYPSB":62},{"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":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":47,"install":48,"resources":61},"01M6FXH29RAQ9AA2ZC9TNNYPSB","jb-pay-hook",null,"Generate custom Juicebox V5 pay hooks from natural language specifications. Creates Solidity contracts implementing IJBPayHook and\u002For IJBRulesetDataHook with Foundry tests. First evaluates if off-the-shelf solutions (buyback hook, 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-pay-hook\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"jb pay hook","pay","hook","tests","juicebox v5","specifications","with","case","fit","foundry","natural language","language","contracts","hooks","use","first","solidity","generate","2026-11-10 10:12:30",false,"---\nname: jb-pay-hook\ndescription: Generate custom Juicebox V5 pay hooks from natural language specifications. Creates Solidity contracts implementing IJBPayHook and\u002For IJBRulesetDataHook with Foundry tests. First evaluates if off-the-shelf solutions (buyback hook, 721 hook, Revnet) fit the use case.\n---\n\n# Juicebox V5 Pay Hook Generator\n\nGenerate custom pay 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| Token buybacks via Uniswap | Deploy **nana-buyback-hook-v5** directly |\n| Tiered NFT rewards on payment | Deploy **nana-721-hook-v5** directly |\n| Autonomous tokenized treasury | Deploy a **Revnet** via revnet-core-v5 |\n| Revnet with NFT tiers | Use **Tiered721RevnetDeployer** |\n| Revnet with custom pay hooks | Use **PayHookRevnetDeployer** |\n\nIf off-the-shelf solutions fit, guide the user to deploy them instead of generating custom code.\n\n## V5 Pay Hook Architecture\n\nPay hooks in V5 follow a two-stage pattern:\n\n### Stage 1: Data Hook (beforePayRecordedWith)\n- Receives payment info before recording\n- Returns adjusted weight and hook specifications\n- Implements `IJBRulesetDataHook`\n\n### Stage 2: Pay Hook (afterPayRecordedWith)\n- Executes after payment is recorded\n- Receives forwarded funds and context\n- Implements `IJBPayHook`\n\nA contract can implement both interfaces (like the buyback hook) or just the pay hook.\n\n## JBAfterPayRecordedContext Fields\n\n```solidity\nstruct JBAfterPayRecordedContext {\n    address payer;                  \u002F\u002F Payment originator\n    uint256 projectId;              \u002F\u002F Project being paid\n    uint256 rulesetId;              \u002F\u002F Current ruleset ID\n    JBTokenAmount amount;           \u002F\u002F Payment amount\n    JBTokenAmount forwardedAmount;  \u002F\u002F Amount forwarded to hook\n    uint256 weight;                 \u002F\u002F Token minting weight\n    uint256 newlyIssuedTokenCount;  \u002F\u002F Tokens minted\n    address beneficiary;            \u002F\u002F Token recipient\n    bytes hookMetadata;             \u002F\u002F Data from data hook\n    bytes payerMetadata;            \u002F\u002F Data from payer\n}\n```\n\n## Design Patterns\n\n### Simple Pay Hook (afterPayRecordedWith only)\nUse when you only need to execute logic after payment without modifying minting behavior.\n\n```solidity\ncontract SimplePayHook is IJBPayHook, ERC165 {\n    function afterPayRecordedWith(JBAfterPayRecordedContext calldata context) external payable {\n        \u002F\u002F Validate caller is a project terminal\n        \u002F\u002F Execute custom logic\n    }\n\n    function supportsInterface(bytes4 interfaceId) public view override returns (bool) {\n        return interfaceId == type(IJBPayHook).interfaceId || super.supportsInterface(interfaceId);\n    }\n}\n```\n\n### Data Hook + Pay Hook (full control)\nUse when you need to modify weight, intercept funds, or control hook routing.\n\n```solidity\ncontract FullPayHook is IJBRulesetDataHook, IJBPayHook, ERC165 {\n    function beforePayRecordedWith(JBBeforePayRecordedContext calldata context)\n        external view returns (uint256 weight, JBPayHookSpecification[] memory hookSpecifications)\n    {\n        \u002F\u002F Analyze payment, determine routing\n        \u002F\u002F Return weight and hook specs\n    }\n\n    function afterPayRecordedWith(JBAfterPayRecordedContext calldata context) external payable {\n        \u002F\u002F Execute with forwarded funds\n    }\n\n    function beforeCashOutRecordedWith(JBBeforeCashOutRecordedContext calldata context)\n        external view returns (uint256, uint256, uint256, JBCashOutHookSpecification[] memory)\n    {\n        \u002F\u002F Pass through if not handling cash outs\n        return (context.ruleset.cashOutTaxRate, context.cashOutCount, context.totalSupply, new JBCashOutHookSpecification[](0));\n    }\n\n    function hasMintPermissionFor(uint256) external pure returns (bool) {\n        return false; \u002F\u002F Only true if hook needs to mint\n    }\n}\n```\n\n### Contract-as-Owner Pattern\nUse when the project needs to be autonomous with structured rules and delegated permissions.\n\nReference: **revnet-core-v5** (REVDeployer)\n- Contract owns the Juicebox project NFT\n- Implements hooks and controls project configuration\n- Delegates authority via JBPermissions\n\n## Generation Guidelines\n\n1. **Ask clarifying questions** about the desired behavior\n2. **Evaluate off-the-shelf options** first\n3. **Choose the simplest pattern** that meets requirements\n4. **Include terminal validation** in afterPayRecordedWith\n5. **Generate Foundry tests** with fork testing against deployed contracts\n6. **Use correct V5 terminology** (ruleset, cash out, weight, reserved rate)\n\n## Example Prompts\n\n- \"Create a pay hook that mints a custom ERC20 token proportional to payments\"\n- \"I want to reward payers with points based on payment amount\"\n- \"Build a hook that routes 10% of payments to a charity address\"\n- \"Create an autonomous project that caps individual payment amounts\"\n\n## Reference Implementations\n\n- **nana-buyback-hook-v5**: https:\u002F\u002Fgithub.com\u002FBananapus\u002Fnana-buyback-hook-v5\n- **nana-721-hook-v5**: https:\u002F\u002Fgithub.com\u002FBananapus\u002Fnana-721-hook-v5\n- **revnet-core-v5**: https:\u002F\u002Fgithub.com\u002Frev-net\u002Frevnet-core-v5\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 Pay Hook Generator\n\nGenerate custom pay 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| Token buybacks via Uniswap | Deploy **nana-buyback-hook-v5** directly |\n| Tiered NFT rewards on payment | Deploy **nana-721-hook-v5** directly |\n| Autonomous tokenized treasury | Deploy a **Revnet** via revnet-core-v5 |\n| Revnet with NFT tiers | Use **Tiered721RevnetDeployer** |\n| Revnet with custom pay hooks | Use **PayHookRevnetDeployer** |\n\nIf off-the-shelf solutions fit, guide the user to deploy them instead of generating custom code.\n\n## V5 Pay Hook Architecture\n\nPay hooks in V5 follow a two-stage pattern:\n\n### Stage 1: Data Hook (beforePayRecordedWith)\n- Receives payment info before recording\n- Returns adjusted weight and hook specifications\n- Implements `IJBRulesetDataHook`\n\n### Stage 2: Pay Hook (afterPayRecordedWith)\n- Executes after payment is recorded\n- Receives forwarded funds and context\n- Implements `IJBPayHook`\n\nA contract can implement both interfaces (like the buyback hook) or just the pay hook.\n\n## JBAfterPayRecordedContext Fields\n\n```solidity\nstruct JBAfterPayRecordedContext {\n    address payer;                  \u002F\u002F Payment originator\n    uint256 projectId;              \u002F\u002F Project being paid\n    uint256 rulesetId;              \u002F\u002F Current ruleset ID\n    JBTokenAmount amount;           \u002F\u002F Payment amount\n    JBTokenAmount forwardedAmount;  \u002F\u002F Amount forwarded to hook\n    uint256 weight;                 \u002F\u002F Token minting weight\n    uint256 newlyIssuedTokenCount;  \u002F\u002F Tokens minted\n    address beneficiary;            \u002F\u002F Token recipient\n    bytes hookMetadata;             \u002F\u002F Data from data hook\n    bytes payerMetadata;            \u002F\u002F Data from payer\n}\n```\n\n## Design Patterns\n\n### Simple Pay Hook (afterPayRecordedWith only)\nUse when you only need to execute logic after payment without modifying minting behavior.\n\n```solidity\ncontract SimplePayHook is IJBPayHook, ERC165 {\n    function afterPayRecordedWith(JBAfterPayRecordedContext calldata context) external payable {\n        \u002F\u002F Validate caller is a project terminal\n        \u002F\u002F Execute custom logic\n    }\n\n    function supportsInterface(bytes4 interfaceId) public view override returns (bool) {\n        return interfaceId == type(IJBPayHook).interfaceId || super.supportsInterface(interfaceId);\n    }\n}\n```\n\n### Data Hook + Pay Hook (full control)\nUse when you need to modify weight, intercept funds, or control hook routing.\n\n```solidity\ncontract FullPayHook is IJBRulesetDataHook, IJBPayHook, ERC165 {\n    function beforePayRecordedWith(JBBeforePayRecordedContext calldata context)\n        external view returns (uint256 weight, JBPayHookSpecification[] memory hookSpecifications)\n    {\n        \u002F\u002F Analyze payment, determine routing\n        \u002F\u002F Return weight and hook specs\n    }\n\n    function afterPayRecordedWith(JBAfterPayRecordedContext calldata context) external payable {\n        \u002F\u002F Execute with forwarded funds\n    }\n\n    function beforeCashOutRecordedWith(JBBeforeCashOutRecordedContext calldata context)\n        external view returns (uint256, uint256, uint256, JBCashOutHookSpecification[] memory)\n    {\n        \u002F\u002F Pass through if not handling cash outs\n        return (context.ruleset.cashOutTaxRate, context.cashOutCount, context.totalSupply, new JBCashOutHookSpecification[](0));\n    }\n\n    function hasMintPermissionFor(uint256) external pure returns (bool) {\n        return false; \u002F\u002F Only true if hook needs to mint\n    }\n}\n```\n\n### Contract-as-Owner Pattern\nUse when the project needs to be autonomous with structured rules and delegated permissions.\n\nReference: **revnet-core-v5** (REVDeployer)\n- Contract owns the Juicebox project NFT\n- Implements hooks and controls project configuration\n- Delegates authority via JBPermissions\n\n## Generation Guidelines\n\n1. **Ask clarifying questions** about the desired behavior\n2. **Evaluate off-the-shelf options** first\n3. **Choose the simplest pattern** that meets requirements\n4. **Include terminal validation** in afterPayRecordedWith\n5. **Generate Foundry tests** with fork testing against deployed contracts\n6. **Use correct V5 terminology** (ruleset, cash out, weight, reserved rate)\n\n## Example Prompts\n\n- \"Create a pay hook that mints a custom ERC20 token proportional to payments\"\n- \"I want to reward payers with points based on payment amount\"\n- \"Build a hook that routes 10% of payments to a charity address\"\n- \"Create an autonomous project that caps individual payment amounts\"\n\n## Reference Implementations\n\n- **nana-buyback-hook-v5**: https:\u002F\u002Fgithub.com\u002FBananapus\u002Fnana-buyback-hook-v5\n- **nana-721-hook-v5**: https:\u002F\u002Fgithub.com\u002FBananapus\u002Fnana-721-hook-v5\n- **revnet-core-v5**: https:\u002F\u002Fgithub.com\u002Frev-net\u002Frevnet-core-v5\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-pay-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":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add kbarbel640-del\u002Fskills --skill jb-pay-hook",{"tool":54,"command":55},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill jb-pay-hook",{"tool":57,"command":58},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill jb-pay-hook","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fmejango\u002Fjuicy\u002Fjb-pay-hook\u002FSKILL.md",true,[],[63,88,111,129,134,154],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":36},"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",[],[70,71,72,24,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87],"crowd prompting","prompting","api","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content","ai agents",{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":36},"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",[],[95,72,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,76,32],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":36},"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",[],[118,119,120,121,122,123,124,24,125,109,32,126,72,127,128],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":130,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":36},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[121,120,119,118,128,123,124,24,122,109,32,125,126,72,127],{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":36},"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",[],[141,142,143,144,145,146,147,148,149,150,151,152,153],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":36},"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",[],[161,162,30,163,24,164,165,41,166,126,167,168,169,170,171,85,172,173,174],"agent constitution","constitution","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]