원클릭으로
lbamm-pool-hook
Generate complete ILimitBreakAMMPoolHook Solidity implementations
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Generate complete ILimitBreakAMMPoolHook Solidity implementations
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Design an apptoken -- map high-level requirements to protocols, configuration steps, and implementation skills
Apptoken ecosystem knowledge -- token standards (ERC-721C, ERC-1155C, ERC-20C), apptoken categories, cross-protocol integration patterns. Use this skill whenever the user asks about apptokens, Creator Token Standards, ERC-20C/ERC-721C/ERC-1155C, Limit Break tokens, cross-protocol integration, or how the apptoken ecosystem fits together.
Generate integration code for the LBAMM CLOBTransferHandler -- on-chain limit order book with maker deposits, FIFO order filling, and price-linked lists. Generates Foundry scripts for maker flows (deposit, open/close orders, withdraw) and taker flows (filling orders through AMM swaps). Use this skill whenever the user asks about LBAMM CLOB, on-chain order books, limit orders on LBAMM, maker/taker flows, CLOB deposits, or filling CLOB orders.
LBAMM transfer handler architecture -- how transfer handlers work during swap settlement, the ILimitBreakAMMTransferHandler interface, executor validation hooks, callback patterns, and custom handler development. Use this skill whenever the user asks about LBAMM transfer handlers, swap settlement, ammHandleTransfer, custom settlement logic, ITransferHandlerExecutorValidation, how swaps use transfer data, or writing a custom handler contract.
Generate DEX integration contracts that call LBAMM
Generate integration code for the LBAMM PermitTransferHandler -- gasless swap execution via EIP-712 signed permits with optional cosigner. Generates Foundry scripts, signing code, and transferData encoding for fill-or-kill and partial fill permit swaps.
| name | lbamm-pool-hook |
| description | Generate complete ILimitBreakAMMPoolHook Solidity implementations |
| user-invocable | true |
| disable-model-invocation | true |
| argument-hint | [description of desired pool hook behavior] |
Generate a complete ILimitBreakAMMPoolHook implementation based on the user's requirements.
Before generating code, check the user's project is configured:
foundry.toml must exist. If not: forge initlib/lbamm-core/ must exist. If not: forge install limitbreakinc/lbamm-coreremappings.txt needs @limitbreak/lbamm-core/=lib/lbamm-core/. Append if missing -- do not overwrite existing entries.lbamm-examples -- see lbamm-protocol/references/local-dev.md. Generated scripts should read addresses from environment variables (vm.envAddress) so they work with the local Anvil deployment.Parse requirements from $ARGUMENTS -- identify the pool hook behavior (dynamic fees, pool creation gating, LP access control, oracle pricing for single provider pools, etc.)
Resolve ambiguities before generating -- if $ARGUMENTS mentions external contracts without addresses (e.g., "a price oracle", "a registry", "a token"), ask the user whether they have an existing contract (and get the address) or want a new one generated. Similarly, clarify pool type (Dynamic vs Single Provider) if not obvious, or specific configuration values that would change the implementation. Ask everything in a single message. If clear, proceed.
Determine capabilities needed:
getPoolFeeForSwap() (pool must be created with fee = 55_555)validatePoolCreation()validatePoolAddLiquidity(), validatePoolRemoveLiquidity(), validatePoolCollectFees()ISingleProviderPoolHook extension with getPoolPriceForSwap() and getPoolLiquidityProvider()Generate a complete Solidity contract that:
pragma solidity 0.8.24;ILimitBreakAMMPoolHook (or ISingleProviderPoolHook if targeting single provider pools)poolHookManifestUri()Note fee bounds:
poolFeeBPS <= 10_000 for input-based swapspoolFeeBPS < 10_000 (strictly less) for output-based swapsmaxHookFee0/maxHookFee1references/pool-hook-interface.md -- Full interface, ISingleProviderPoolHook extension, dynamic fee sentinelreferences/pool-hook-patterns.md -- Dynamic fee hook, access-controlled pool, oracle pricing hook exampleslbamm-protocol55_555 sentinel), LP access control, or oracle pricing. Required for Single Provider pools (must implement ISingleProviderPoolHook).@limitbreak/lbamm-core/src/interfaces/hooks/ILimitBreakAMMPoolHook.sol
lbamm-pool-type-single-provider/src/interfaces/ISingleProviderPoolHook.sol
@limitbreak/lbamm-core/src/DataTypes.sol