Skip to content
Back to skills

Marginfi

ASecurity

MarginFi — Solana lending and borrowing

  • 2,496 stars
  • 0 votes
  • 2 copies
  • 11 views
  • Added February 10, 2026
blockchainbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add alsk1992/CloddsBot --skill marginfi --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Marginfi?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Marginfi
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alsk1992-marginfi/badge)](https://www.skillsdirectory.com/skills/alsk1992-marginfi)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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

```bash
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

Files in this skill

  • SKILL.md1.4 KB
  • index.ts13.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in blockchain →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.