Agent Skill · Limit Break

tokenmaster-deployer

Generate TokenMaster token deployment scripts -- pool type selection, parameter construction, deterministic addressing

Provider: Limit Break Path in repo: SKILL.md

Skill body

TokenMaster Deployer

Generate deployment scripts for TokenMaster tokens.

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 doesn’t specify pool type (Standard vs Stable vs Promotional) and it’s not obvious from context, or mentions a paired token without an address, ask in a single message. Also clarify fee percentages, creator shares, or infrastructure fee caps if they’d significantly change the deployment. If clear, proceed.
  3. Determine pool type: Standard (flexible tokenomics), Stable (fixed price), Promotional (no market value)
  4. Construct DeploymentParameters + PoolDeploymentParameters with encoded pool-specific initialization args
  5. Compute deterministic address via factory.computeDeploymentAddress()
  6. Generate Foundry deployment script calling router.deployToken()
  7. Post-deployment: configure pool settings, set order signers, configure trusted channels if needed

Reference Files

Common Mistakes

When to Use This vs Other Skills

Skill frontmatter

user-invocable: true disable-model-invocation: true argument-hint: [description of token requirements - pool type, paired token, pricing, fees]