StarkFiStarkFi

Agent Skills

12 pre-packaged multi-step workflows for AI agents — install in one command

What Are Skills?

Skills are pre-packaged, multi-step workflows that AI agents can follow to accomplish complex DeFi tasks on Starknet. Each skill contains a SKILL.md file with step-by-step instructions, prerequisites, error handling, and expected outcomes.

Unlike MCP tools (which are individual function calls), skills orchestrate multiple tools and decisions into a complete workflow — for example, checking auth status → fetching a swap quote → confirming with the user → executing → verifying the transaction.

Installation

Install all 12 StarkFi skills into your AI assistant with a single command:

npx skills add ahmetenesdur/starkfi

This uses Vercel's Skills CLI to add the skills directly to your agent (e.g., Antigravity, Claude Code).

Prerequisites

  1. Node.js v18 or later
  2. StarkFi Auth Server running (required for authentication and transaction signing)
  3. No manual CLI installation needed — all skills use npx starkfi@latest internally

Available Skills

SkillCategoryDescription
authenticate-walletauthEmail OTP login, session management, wallet deploy
balancewallet-dataCheck STRK, ETH, and ERC-20 token balances
sendtransactionTransfer tokens to a Starknet address
tradetransactionSwap tokens via Fibrous aggregation
multi-swaptransactionMultiple swaps in one transaction (up to 3 pairs)
batchtransactionCombine swap + stake + supply + send + borrow + repay + withdraw + DCA in one multicall
stakingtransactionStake, unstake, claim, compound rewards
lendingtransactionVesu V2: supply, borrow, repay, monitor, auto-rebalance
dcatransactionDCA: preview, create, list, cancel recurring buy orders
confidentialtransactionTongo Cash: fund, transfer, withdraw, ragequit, rollover (ZK privacy)
portfoliowallet-dataDeFi dashboard + portfolio optimization via rebalancing
configutilityRPC, network, gas settings, transaction status

Getting Started

Typical Workflow

Skills follow a natural progression — authenticate first, then check your state, then execute operations:

1. authenticate-wallet  →  Login and verify your session
2. balance / portfolio  →  Check funds and existing positions
3. trade / send / ...   →  Execute DeFi operations
4. config (tx-status)   →  Verify transaction results

Trigger Examples

Your AI agent automatically selects the right skill based on what you say:

You say...Skill triggered
"Log me in with my email"authenticate-wallet
"How much STRK do I have?"balance
"What's in my wallet?"balance
"Send 10 USDC to 0x04a3..."send
"Swap 100 USDC for ETH"trade
"Get me the best price for ETH"trade
"Swap USDC→ETH and USDT→STRK"multi-swap
"Swap ETH then stake STRK"batch
"Withdraw from lending and swap"batch
"Stake 1000 STRK with Karnot"staking
"Earn yield on my STRK"staking
"Supply 500 USDC to Prime pool"lending
"Is my position safe?"lending
"Fix my risky position"lending
"Show me my portfolio"portfolio
"Rebalance to 50% ETH, 30% USDC"portfolio
"What am I worth on Starknet?"portfolio
"DCA 100 USDC into ETH daily"dca
"Show my active DCA orders"dca
"Cancel my recurring buy"dca
"I'm getting rate limit errors"config
"Switch to testnet"config
"Enable free gas mode"config
"Set up my Tongo account"confidential
"Fund 100 USDC confidentially"confidential
"Send 50 tokens privately"confidential

Skill Structure

Each skill is a self-contained directory with a SKILL.md file:

skills/
├── authenticate-wallet/
│   └── SKILL.md
├── trade/
│   └── SKILL.md
├── staking/
│   └── SKILL.md
└── ...

Every SKILL.md follows a consistent structure:

SectionPurpose
YAML FrontmatterName, description (triggers AI matching), and metadata
PrerequisitesRequired auth state, minimum versions
RulesHard constraints the agent must follow
CommandsCLI commands with full syntax
ParametersOptions table with types and defaults
ExamplesReal-world command examples
Error HandlingError → cause → resolution table
Related SkillsCross-references to complementary skills

How Agents Use Skills

When an MCP-compatible agent (like Claude, Cursor, or Windsurf) connects to StarkFi:

  1. The agent discovers available skills via the skills/ directory
  2. It matches the user's intent to the best skill using the description field
  3. The SKILL.md provides a structured recipe — the agent follows it step by step
  4. Each step maps to a CLI command (via npx starkfi@latest)
  5. Error handling tables tell the agent exactly what to do when things fail

Skills vs MCP Tools

SkillsMCP Tools
ScopeMulti-step workflowsSingle function calls
FormatMarkdown instructionsJSON-schema typed tools
UsageAgent reads and followsAgent calls directly
Example"Complete a swap" (quote → confirm → execute → verify)swap_tokens(args)
Best forComplex workflows with decisionsSimple, atomic operations

Skills and MCP tools are complementary — an agent can use skills for guided workflows and MCP tools for ad-hoc operations.

Edit on GitHub

Last updated on

On this page