Production-ready agent skills for building rebalance, swap, and withdrawal strategies for Gamma's Uniswap V4 MultiPositionManager vaults.
List available skills:
npx skills add GammaStrategies/agent-skills --listInteractive install with agent picker:
npx skills add GammaStrategies/agent-skills --skill gamma-strategy-builder -gInstall non-interactively (CI/copy-paste):
npx skills add GammaStrategies/agent-skills --skill gamma-strategy-builder -g -yInstall for specific agents:
npx skills add GammaStrategies/agent-skills --skill gamma-strategy-builder -a codex -a openclaw -g -ySkills are runtime instruction modules for agents, not model training.
- Repo exposes one or more
skills/<name>/SKILL.mdfiles. - Installer links selected skills to selected agents (
codex,openclaw, etc.). /skillsin the agent UI shows linked skills available to that agent.- Skill triggers when user prompt explicitly names it or matches
description. - Agent loads
SKILL.mdfirst, then optionalreferences/andscripts/as needed.
Agent-selection UX behavior:
- If you omit
-aand omit-y, installer prompts with a multi-select agent picker. - If you pass
-a ..., install is scoped to those agents. - If you pass
-y, prompts are skipped.
Build RebalanceParams, RebalanceSwapParams, and withdrawal parameters for EOA relayer bots operating Gamma MultiPositionManager vaults.
Covers:
- Strategy selection (singleUniform, gaussian, uniform, triangle, camel, exponential)
- Sentinel values (
type(int24).maxfor current-tick centering,0,0weights for proportional mode) - Aggregator swap construction (KyberSwap, Odos, 0x, ParaSwap)
- Withdrawal strategies (
withdraw,withdrawCustom) - SimpleLens preview calls for
outMin/inMinslippage arrays - EOA relayer trigger patterns (tick delta, direction-only, cooldown, circuit breaker, ratio-based)
- Bundled helper script to emit normalized
--strategy-jsonpayloads forgamma-openclaw start - Bundled helper script to emit normalized
--swap-jsonpayloads forgamma-openclaw deploy --swap - Bundled helper script to emit normalized
withdrawCustomJSON payloads with offline scaffold or optional SimpleLens preview
- Skill catalog:
AVAILABLE_SKILLS.md
Install local CLI deps:
npm installRun onboarding:
npm exec gamma-openclaw initinit assumes manager is already deployed from frontend and asks for:
- chain + rpc
- existing
MultiPositionManageraddress - bot key setup
Health check:
npm exec gamma-openclaw doctorPreflight checks (contracts, aggregators, roles):
npm exec gamma-openclaw prepareDeploy manager (dry-run simulation):
npm exec gamma-openclaw deploy --dry-runDeploy manager (send transaction):
npm exec gamma-openclaw deployStart scaffold runner:
npm exec gamma-openclaw startGenerate strategy file with interactive wizard:
npm exec gamma-openclaw -- strategy wizardGenerate from intent prompt, save, and run one cycle:
npm exec gamma-openclaw -- strategy wizard --prompt "single uniform +/-5% around current price, rebalance up only" --runSweep native gas token from bot wallet:
npm exec gamma-openclaw -- sweep-native --to 0xYourEOA --dry-run
npm exec gamma-openclaw -- sweep-native --to 0xYourEOATypical lifecycle:
- Deploy/fund manager on frontend.
- Run
initto configure bot + manager. - Fund bot gas.
- Grant
grantRelayerRole(bot)from manager owner. - Run
doctor,prepare, thenstart.
Smoke test script (recommended before live):
./scripts/smoke-test.sh --manager 0xYourVaultAddressSystemd template for production runs:
templates/systemd/gamma-openclaw.service
All contract ABIs, parameter guides, and protocol documentation are bundled under each skill's references/ directory. See skills/gamma-strategy-builder/references/ for:
rebalance-params.md—RebalanceParamsfield-by-field guiderebalance-swap-params.md—SwapParamsconstruction and aggregator flowstrategies.md— strategy contract behaviorsentinel-values.md— special values and validation ruleswithdrawal-strategies.md— withdrawal flows and previewsregistry-defaults.md— chain defaults and registry structure
Gamma-provided chain defaults are stored in registry/networks.v1.json. Registry contract keys cover: factory, deployers, lenses, relayer factory, pool manager, and state view.