⚡ ZapKit
Skills

zapkit-defi

Teaches your AI assistant DeFi-specific patterns for building on Starknet with ZapKit.

Install

npx skills add dngbuilds/zapkit --skill zapkit-defi

What your AI learns

Token Operations

  • ERC-20 token approval and transfer patterns on Starknet
  • Multicall approve + swap in a single transaction
  • Token amount formatting and decimal handling
  • Balance fetching and caching strategies

Swap Integration

  • AMM integration patterns (Ekubo, JediSwap, 10KSwap)
  • Quote fetching and slippage protection
  • Multi-hop routing basics
  • Price impact warnings

Lending & Borrowing

  • Lending protocol patterns (zkLend, Nostra)
  • Supply, borrow, repay transaction flows
  • Health factor monitoring
  • Liquidation risk display

Staking

  • Liquid staking patterns (e.g. stSTRK)
  • Stake, unstake, claim reward flows
  • APY calculation and display
  • Unbonding period handling

Bridge

  • Cross-chain bridge patterns (StarkGate, LayerSwap)
  • Deposit and withdrawal flows
  • Bridge status tracking

Rules included

RulePriorityDescription
token-approvalsCRITICALAlways check allowance before swap; batch approve + action in multicall
slippage-protectionCRITICALNever submit swaps without slippage bounds
amount-handlingHIGHUse BigInt for all token amounts; format only at display layer
quote-freshnessHIGHRe-fetch quotes before submission; show staleness warnings
error-recoveryMEDIUMHandle reverted transactions gracefully; show actionable error messages
balance-cachingMEDIUMCache balances with SWR pattern; invalidate after transactions

Example prompt

"Build a token swap UI that lets users swap ETH for STRK on Starknet"

Without skill — AI might use Ethereum-style patterns that don't work on Starknet. With skill — AI uses Starknet multicall for approve+swap, handles felt252 amounts correctly, and adds proper slippage protection.

On this page