⚡ ZapKit
Skills

zapkit-starknet

Teaches your AI assistant how to properly integrate Starknet wallets using ZapKit.

Install

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

What your AI learns

Wallet Connection

  • Proper ZapProvider setup and configuration
  • Using useConnect(), useWallet(), and useZapKit() hooks correctly
  • Handling all connection states (idle, connecting, connected, error)
  • Multi-strategy onboarding: Cartridge Controller, Stark Signer, Privy

Account Management

  • Reading wallet address and StarkNet ID
  • Handling account switching and disconnection
  • Proper cleanup on disconnect (async teardown)

Transaction Building

  • Using the TxBuilder API from @dngbuilds/zapkit-core
  • Multicall patterns for batching transactions
  • Error handling and retry logic
  • Gas estimation best practices

Network Configuration

  • Mainnet vs Sepolia vs Devnet setup
  • Chain ID handling with ChainId enum
  • RPC endpoint configuration
  • Network-specific contract addresses

Rules included

RulePriorityDescription
wallet-connectCRITICALAlways wrap app with ZapProvider; use hooks not direct SDK calls
transaction-buildingHIGHUse TxBuilder for multicall; always estimate gas first
error-handlingHIGHHandle UserRejectedRequestError separately from network errors
network-configMEDIUMUse ChainId enum, never hardcode chain IDs
account-lifecycleMEDIUMAlways call disconnect() before switching strategies

Example prompt

"Connect a Starknet wallet with Cartridge Controller and show the user's address"

Without skill — AI might use an outdated Starknet.js pattern. With skill — AI uses ZapProvider + useWallet() + ConnectWalletButton from the registry.

On this page