StarkFiStarkFi

Agent Skills

10 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 10 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 in one multicall
stakingtransactionStake, unstake, claim, compound rewards
lendingtransactionVesu V2: supply, borrow, repay, withdraw, close
portfoliowallet-dataAggregated DeFi dashboard with USD valuations
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
"Send 10 USDC to 0x04a3..."send
"Swap 100 USDC for ETH"trade
"Swap USDC→ETH and USDT→STRK"multi-swap
"Swap ETH then stake STRK"batch
"Stake 1000 STRK with Karnot"staking
"Supply 500 USDC to Prime pool"lending
"Show me my portfolio"portfolio
"I'm getting rate limit errors"config

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