원클릭으로
tokenmaster-hook
Generate TokenMaster hook contracts -- buy hooks, sell hooks, spend hooks for advanced order post-execution logic
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Generate TokenMaster hook contracts -- buy hooks, sell hooks, spend hooks for advanced order post-execution logic
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 | tokenmaster-hook |
| description | Generate TokenMaster hook contracts -- buy hooks, sell hooks, spend hooks for advanced order post-execution logic |
| user-invocable | true |
| disable-model-invocation | true |
| argument-hint | [description of hook requirements - what should happen after buy/sell/spend] |
Generate hook contracts for TokenMaster advanced order post-execution logic.
Before generating code, check the user's project is configured:
foundry.toml must exist. If not: forge initlib/tm-tokenmaster/ must exist. If not: forge install limitbreakinc/tm-tokenmasterremappings.txt needs @limitbreak/tm-tokenmaster/=lib/tm-tokenmaster/. Append if missing -- do not overwrite existing entries.apptoken-dev to bootstrap an Anvil node with all Apptoken protocols at their deterministic addresses -- see apptoken-general/references/project-setup.md.references/hook-interfaces.md -- ITokenMasterBuyHook, ITokenMasterSellHook, ITokenMasterSpendHook signaturesreferences/hook-patterns.md -- Annotated hook implementation examplestokenmaster-protocolsellTokensAdvanced -- if the order specifies address(0) as hook, the transaction reverts. Always deploy a sell hook contract even if it's a no-op.msg.sender == TOKENMASTER_ROUTER -- anyone can call the hook function directly otherwise.tokenMasterToken parameter matches the expected token -- a single hook contract may serve multiple tokens, and without validation an attacker could invoke it with a different token.