Skip to content
Automation
Skill

/marginfi

MarginFi — Solana lending and borrowing

From plugin
cloddsbot
651120 skills
Install
$ npx -y skills add alsk1992/CloddsBot --skill marginfi --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/marginfi

Context preview

The summary Claude sees to decide when to auto-load this skill.

MarginFi — Solana lending and borrowing

SKILL.md

marginfi.SKILL.md
name: marginfi
description: "MarginFi — Solana lending and borrowing"
emoji: "🏦"
commands:
  - /marginfi
gates:
  envs:
    - SOLANA_PRIVATE_KEY

MarginFi

MarginFi is a lending and borrowing protocol on Solana. Deposit collateral, borrow assets, and monitor your health factor to avoid liquidation.

Commands

Lending

/marginfi deposit <amount> <token>     Deposit collateral
/marginfi withdraw <amount|all> <token> Withdraw collateral
/marginfi borrow <amount> <token>      Borrow assets
/marginfi repay <amount|all> <token>   Repay borrowed assets

Account

/marginfi account                      View positions (deposits & borrows)
/marginfi health                       Check health factor & liquidation risk

Markets

/marginfi banks                        List all lending pools with APY
/marginfi rates                        View supply/borrow interest rates table

Examples

/marginfi deposit 100 USDC
/marginfi borrow 1 SOL
/marginfi health
/marginfi repay all SOL
/marginfi withdraw all USDC
/marginfi banks
/marginfi rates

Configuration

export SOLANA_PRIVATE_KEY="your-base58-private-key"
export SOLANA_RPC_URL="https://api.mainnet-beta.solana.com"  # Optional

See Also

  • `/kamino` — Kamino Finance lending + liquidity vaults
  • `/solend` — Solend lending protocol
  • `/jup` — Jupiter DEX aggregator
  • `/bags` — Portfolio overview
Read more
Ships withcloddsbot

Open Source AI trading agent that operates autonomously across 1000+ markets - Polymarket, Kalshi, Binance, Hyperliquid, Solana DEXs, 5 EVM chains. Scans for edge, executes instantly, manages risk while you sleep. Agent commerce protocol for machine-to-machine payments. Self-hosted. Built on Claude.

Get the whole plugin
Stats
651
Stars
139
Forks
Maintained
Maintenance
TypeScript
Language
MIT
License
1mo ago
Last commit
6mo ago
Created

Repo: alsk1992/CloddsBot