Agent Skill · Limit Break

tokenmaster-integrator

Generate TokenMaster transaction integration code -- buy/sell/spend flows, advanced orders, EIP-712 signing, oracles

Provider: Limit Break Path in repo: SKILL.md

Skill body

TokenMaster Integrator

Generate transaction integration code for TokenMaster buy/sell/spend flows.

Project Setup

Before generating code, check the user’s project is configured:

  1. Foundry: foundry.toml must exist. If not: forge init
  2. TokenMaster: lib/tm-tokenmaster/ must exist. If not: forge install limitbreakinc/tm-tokenmaster
  3. Remappings: remappings.txt needs @limitbreak/tm-tokenmaster/=lib/tm-tokenmaster/. Append if missing – do not overwrite existing entries.
  4. Local testing: For local development, use apptoken-dev to bootstrap an Anvil node with all Apptoken protocols at their deterministic addresses – see apptoken-general/references/project-setup.md.

Instructions

  1. Parse requirements from $ARGUMENTS
  2. Resolve ambiguities before generating – if $ARGUMENTS references specific tokens or hooks without addresses, or the transaction type (basic vs advanced, with/without cosigner) isn’t clear, ask in a single message. If clear, proceed.
  3. Determine transaction type: basic buy/sell, advanced buy/sell with signed orders, spend (always requires signed order)
  4. Generate integration code with proper struct construction, approvals, and signing
  5. Handle: native token via msg.value, ERC20 approvals, PermitC transfers, cosigning, oracle integration

Reference Files

Common Mistakes

When to Use This vs Other Skills

Skill frontmatter

user-invocable: true disable-model-invocation: true argument-hint: [description of transaction or integration requirements]