/permit2:permit2-signature-transferfrom permit2
Uses permitWitnessTransferFrom for gasless token transfers with EIP-712 signatures. Use when implementing swap/deposit/withdraw with Permit2 signature-based authorization.
Ships in permit2. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The recommended pattern for IndexedEx operations. Users sign one EIP-712 message off-chain - no pre-approval needed.
import { SignatureTransfer, PERMIT2_ADDRESS } from '@uniswap/permit2-sdk'
import { useSignTypedData, useWriteContract } from 'wagmi'
import { parseUnits, keccak256, encodePacked } from 'viem'
// Build permit (what user authorizes)
const permit: SignatureTransfer.PermitTransferFrom = {
permitted: { token: tokenInAddress, amount: parseUnits('100', 6) },
nonce: BigInt(Date.now()) << 8n,
deadline: BigInt(Math.floor(Date.now() / 1000) + 1800n)
}
// Build witness (binds signature to this specific action)
const witness = {
actionId: keccak256(encodePacked(
['address', 'address', 'address', 'uint256'],
[tokenIn, tokenOut, vaultAddress, amountIn]
)),
}
// Get EIP-712 data
const { domain, types, values } = SignatureTransfer.getPermitData(
permit,
PERMIT2_ADDRESS,
chainId,
{ witness, witnessTypeName: 'Witness', witnessType: WITNESS_TYPE }
)
// User signs
const signature = await signTypedDataAsync(domain, types, values)
const WITNESS_TYPE: Record<string, TypedDataField[]> = {
Witness: [{ name: 'actionId', type: 'bytes32' }]
}
// actionId includes maxAmountIn since that's variable
const witness = {
actionId: keccak256(encodePacked(
['address', 'address', 'address', 'uint256', 'uint256'],
[tokenIn, tokenOut, vaultAddress, amountOut, maxAmountIn]
))
}
See permit2-signature-transfer-contract skill for Solidity implementation.
What SKILL.md sets; muted values are Claude Code's defaults
2 plugins ship this exact skill · first indexed Jul 20, 2026
10 skills in this plugin
/permit2-addressesCanonical Permit2 contract addresses by chain. Use when configuring multi-chain support./permit2-allowance-flowComplete approval flow with reset-to-zero pattern. Use when implementing full ERC20 and Permit2 approval workflow./permit2-allowance-transferUses AllowanceTransfer for persistent token approvals. Use when user grants recurring spend authority to the protocol.Other plugins' skills for the same job
/permit2-nonce-managementBitmap nonce patterns for Permit2 signature replay protection. Use when generating nonces for SignatureTransfer permits.permit2@cyotee is listed by cyotee/cyotee-claude-plugins — review the source before installing
npx claudepluginhub cyotee/cyotee-claude-plugins --plugin permit2