Agent skill

Marginfi

by alsk1992 in alsk1992/CloddsBot

“MarginFi — Solana lending and borrowing”

— description from SKILL.md by alsk1992
MITAuto-check passedBusiness, Finance & HR

Install Marginfi

skills CLI
$ npx skills add alsk1992/CloddsBot --skill marginfi -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install alsk1992/CloddsBot marginfi --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/alsk1992/CloddsBot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/skills/bundled/marginfi .claude/skills/marginfi && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
marginfi
GitHub stars
2.9k
Token cost
~356 tokens
SKILL.md length
47 words
Files
2
Skills in repo
116
Repo updated
First seen
Licence
MIT

At a glance

  • SKILL.md covers Commands, Examples, Configuration and See Also
  • Runs TypeScript scripts from its folder; reaches api.mainnet-beta.solana.com; needs SOLANA_PRIVATE_KEY

About this skill

Marginfi is a skill in alsk1992/CloddsBot (2.9k stars). Its SKILL.md is about 356 tokens, with 1 other file in the folder. Licence: MIT.

What it can do on your machine

Read from SKILL.md and the folder at commit c930628. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (TypeScript), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.mainnet-beta.solana.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • SOLANA_PRIVATE_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Marginfi loads about 356 tokens when it runs. Until then it costs about 12 tokens; SKILL.md has 47 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~12
When it runs · the whole SKILL.md, loaded when a task matches
~356

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from alsk1992/CloddsBot at commit c930628, republished under its MIT licence (© alsk1992). 47 words, ~356 tokens.

Download SKILL.mdSave it as .claude/skills/marginfi/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
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

© alsk1992, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in src/skills/bundled/marginfi of alsk1992/CloddsBot.

  • SKILL.md
  • index.ts

Open the folder on GitHubat commit c930628

Compare with similar skills

Marginfi next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Marginfi compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Marginfi this skillalsk1992/CloddsBot2.9k—~356Automated safety check: PassMIT
Swapper Depositswapperfinance/swapper-toolkit852—~1.8kAutomated safety check: PassMIT
Solana Payments Wallets Tradingnpc-live/clawfirm1561 repos~4.7kAutomated safety check: PassMIT
Squadsinternet-court/internet-court-skill6.5k2 repos~5.9kAutomated safety check: PassApache-2.0
Jupiter SkillLeoYeAI/openclaw-master-skills2.2k—~5.7kAutomated safety check: PassMIT
Kaminosendaifun/skills1301 repos~6.8kAutomated safety check: NotesApache-2.0

Similar skills

  • Swapper Deposit

    swapperfinance/swapper-toolkit

    Deposit and bridge funds into a wallet or protocol using Swapper Finance.

    852 GitHub stars~1.8k tokensUpdated 6 mo ago
    Business, Finance & HRAuto-check passed
  • Pay people in SOL or USDC, buy and sell tokens, check prices, discover trending and new tokens, create and manage Solana wallets, stake SOL, earn yield through lending and managed vaults, borrow…

    156 GitHub starsUsed in 1 repo~4.7k tokens
    Business, Finance & HRAuto-check passed
  • Squads

    internet-court/internet-court-skill

    Complete guide for Squads Protocol - Solana's leading smart account and multisig infrastructure.

    6.5k GitHub starsUsed in 2 repos~5.9k tokens
    Business, Finance & HRAuto-check passed
  • Jupiter Skill

    LeoYeAI/openclaw-master-skills

    Execute Jupiter API operations on Solana - fetch quotes, sign transactions, execute swaps, prediction markets.

    2.2k GitHub stars~5.7k tokensUpdated 2 mo ago
    Business, Finance & HRAuto-check passed
  • Kamino

    sendaifun/skills

    Complete guide for Kamino Finance - Solana's leading DeFi protocol for lending, borrowing, liquidity management, and leverage trading.

    130 GitHub starsUsed in 1 repo~6.8k tokens
    Business, Finance & HRAuto-check: notes
  • Torch Domain Auction Bot

    LeoYeAI/openclaw-master-skills

    Domain lending protocol on Solana. An agent skill from LeoYeAI/openclaw-master-skills.

    2.2k GitHub stars~5.6k tokensUpdated 2 mo ago
    Business, Finance & HRAuto-check passed

More from alsk1992/CloddsBot

All 116 skills in this repo
  • Qmd

    alsk1992/CloddsBot

    Local hybrid search for markdown notes and docs. An agent skill from alsk1992/CloddsBot.

    2.9k GitHub starsUsed in 3 repos~1.2k tokens
    Auto-check passed
  • AI Strategy

    alsk1992/CloddsBot

    AI Strategy - natural language to trades. An agent skill from alsk1992/CloddsBot.

    2.9k GitHub stars~670 tokensUpdated 7 days ago
    Auto-check passed
  • Alerts

    alsk1992/CloddsBot

    Create and manage price alerts for prediction markets. An agent skill from alsk1992/CloddsBot.

    2.9k GitHub stars~460 tokensUpdated 7 days ago
    Auto-check passed
  • Analytics

    alsk1992/CloddsBot

    Performance attribution, trade analytics, and strategy optimization

    2.9k GitHub stars~1.6k tokensUpdated 7 days ago
    Auto-check passed
  • Arbitrage

    alsk1992/CloddsBot

    Automated cross-platform arbitrage detection and monitoring. An agent skill from alsk1992/CloddsBot.

    2.9k GitHub stars~1.7k tokensUpdated 7 days ago
    Auto-check passed
  • Auto Reply

    alsk1992/CloddsBot

    Automatic response rules, patterns, and scheduled messages. An agent skill from alsk1992/CloddsBot.

    2.9k GitHub stars~1.5k tokensUpdated 7 days ago
    Auto-check passed

Works with

Questions about Marginfi

How do I install Marginfi in Claude Code?

Run `npx skills add alsk1992/CloddsBot --skill marginfi -a claude-code`. Or copy the skill folder (src/skills/bundled/marginfi in alsk1992/CloddsBot) into .claude/skills/marginfi in your project. Claude Code loads it when a task matches its description.

How do I install Marginfi in Codex?

Run `npx skills add alsk1992/CloddsBot --skill marginfi -a codex`. Or copy the skill folder (src/skills/bundled/marginfi in alsk1992/CloddsBot) into .agents/skills/marginfi in your project. Codex loads it when a task matches its description.

Can I use Marginfi in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add alsk1992/CloddsBot --skill marginfi -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/marginfi, .gemini/skills/marginfi, .github/skills/marginfi and .opencode/skills/marginfi in your project.

What does Marginfi need to run?

Going by SKILL.md and its folder, Marginfi needs TypeScript for the scripts in its folder and credentials named SOLANA_PRIVATE_KEY.

Does Marginfi access the network?

SKILL.md names 1 domain. In commands or code: api.mainnet-beta.solana.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Marginfi safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Marginfi use?

Marginfi is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Marginfi use?

About 356 tokens (SKILL.md is roughly 1.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Marginfi?

Skills that share tags, products or a category with Marginfi: Swapper Deposit (swapperfinance/swapper-toolkit, 852 stars), Solana Payments Wallets Trading (npc-live/clawfirm, 156 stars), Squads (internet-court/internet-court-skill, 6.5k stars) and Jupiter Skill (LeoYeAI/openclaw-master-skills, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Marginfi?

alsk1992 (a GitHub user) maintains it in alsk1992/CloddsBot, which has 2,933 GitHub stars. The repository holds 116 skills in this directory. The repository was last updated on October 2, 2026.

Source: alsk1992/CloddsBot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.