Skip to content

galleonlabs/crypto-defi-skills / packages/lp/skills/lp-execute

lp-execute

Verified

Safely carry out a user-requested Uniswap v2, v3, or v4 or Aerodrome or Slipstream liquidity action through a user-controlled wallet. Use only when the user explicitly asks to open, increase, decrease, collect, recenter, stake, unstake, claim, or exit and a trusted wallet execution tool is available. Requires exact confirmation, one-step receipt checks, and chain-state reconciliation.

references/transaction-state-machine.md

View on GitHub
# Transaction state machine

Use this state machine for every write.

```text
DISCOVER -> BIND -> QUOTE -> BUILD
BUILD -> APPROVAL_REQUIRED | SIMULATE
APPROVAL_REQUIRED -> CONFIRM_APPROVAL -> SUBMIT_ONE -> RECEIPT -> REREAD -> BUILD
SIMULATE -> CONFIRM_ACTION -> SUBMIT_ONE -> RECEIPT -> REREAD -> RECONCILE
RECONCILE -> COMPLETE | BUILD_NEXT | STOP | RECOVER
```

## Discover and bind

Read the wallet and chain from the signer, not from prior conversation. Resolve contracts from current official deployment records and verify deployed bytecode. Bind a plan identifier or hash to all material fields.

## Quote and build

Use current onchain state or an official protocol integration. Add hard spend, receive, liquidity, price, slippage, impact, gas, and deadline limits. Reject empty calldata, placeholder payloads, unrecognized selectors, unknown multicalls, and values that exceed the plan.

Return either finite approvals or one ready action. Never treat action calldata built before approval receipts as current. Bind each phase to a canonical plan digest.

## Simulate and confirm

Simulate from the exact wallet with the exact native value. Decode nested calls, approvals, transfers, mints, burns, stakes, and claims. Compare expected state changes with the plan. Then obtain the exact confirmation contract. A confirmation binds the plan digest and all displayed terms.

## Submit one

Submit one transaction. Record the tool request ID, wallet transaction ID, chain hash, nonce, and submission time when available. Do not submit the next dependent transaction yet.

## Receipt and reread

Wait for a receipt on the bound chain. Check status, block, confirmations or finality, target, sender, nonce, logs, and effective gas. Reread balances, allowances, ownership, liquidity, fee or reward state, range, gauge custody, and loose assets.

## Reconcile

Compare the observed state with the expected diff. If exact, complete or build the next dependent step from the mined state. If different, stop and report the delta. Never continue from intended state.

Keep writes serialized per wallet and nonce. A parallel read is safe; parallel dependent writes are not.
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall