Agent skill · software engineering · aiskillstore
starknet-defi
Execute DeFi operations on Starknet including token swaps via avnu aggregator, DCA recurring buys, STRK staking, and lending/borrowing. Supports gasless transactions.
Why this skill is useful
Adds executable scripts for DeFi operations on Starknet, including token swaps and gasless transactions that are not publicly documented.
What it needs
Requires npm installed locally. Requires avnu, starknet account access. About 4k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Starknet DeFi Skill Execute DeFi operations on Starknet using avnu aggregator and native protocols. When to Use Swaps, DCA orders, staking, and lending or borrowing flows on Starknet. Agent workflows that need AVNU routing, paymaster support, or protocol-specific DeFi execution. When NOT to Use Plain wallet management without DeFi intent. Cairo contract authoring, deployment operations, or security auditing. Quick Start 1. Install the AVNU + starknet.js dependencies and point the skill at a funded Starknet account. 2. Use skills catalog when the flow expands into wallet setup, deployment, or auditing. Prerequisites Token Swaps (avnu SDK v4) Get Quote and Execute Swap Quote Response Fields (SDK v4) Build Swap Calls (for multicall composition) Gasless Swap (Pay Gas in Token) - SDK v4 + PaymasterRpc DCA (Dollar Cost Averaging) Create DCA Order Check and Cancel DCA STRK Staking Stake STRK Get User Staking Info Claim Rewards Unstake Market Data Token Prices Protocol Reference Protocol Operations Notes ---------- ----------- ------- avnu Swap aggregation, DCA, gasless Best-price routing across all DEXs Ekubo AMM, concentrated liquidity Highest TVL on Starknet JediSwap AMM, classic pools V2 with concentrated liquidity zkLend Lending, borrowing Variable and stable rates Nostra Lending, borrowing Multi-asset pools Configuration Variable Purpose Default ---------- --------- --------- STARKNETRPCURL Starknet JSON-RPC endpoint Required STARKNETACCOUNTADDRESS Agent's account address Required STARKNETPRIVATEKEY Agent's signing key Required AVNUBASEURL avnu API base URL https://starknet.api.avnu.fi AVNUPAYMASTERURL avnu paymaster URL https://starknet.paymaster.avnu.fi AVNUAPIKEY Optional avnu integrator key None avnu URL Reference Network API URL Paymaster URL --------- --------- --------------- Mainnet https://starknet.api.avnu.fi https://starknet.paymaster.avnu.fi Sepolia https://sepolia.api.avnu.fi https://sepolia.paymaster.avnu.fi Error Handling References avnu SDK Documentati …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/starknet-defi