marginfi-development/SKILL.md
Build or analyze integrations on the Solana-based marginfi protocol using the official TypeScript SDK, Rust CLI, and protocol docs. Use when implementing or reviewing marginfi deposits, withdrawals, borrows, repayments, flash loans, liquidations, permissionless banks, bank configuration, account-health logic, or raw instruction mapping, and ground the work in official marginfi documentation before coding.
npx skillsauth add laitszkin/apollo-toolkit marginfi-developmentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
answering-questions-with-research when the user needs marginfi guidance combined with fresh external verification or local repository discovery.Build or review marginfi integrations with the smallest correct implementation that still respects the protocol's account model, bank risk parameters, oracle rules, and operational constraints.
Map the request to one of these paths:
mfi-v2Then load only the matching reference sections from references/official-development-notes.md.
Re-check live official docs when the task depends on:
Use references/source-index.md to jump to the right official page quickly.
Use for frontends, bots, services, scripts, or integration tests.
MarginfiClient.fetch(getConfig(...), wallet, connection).Use for operator workflows, group or bank administration, and quick protocol interaction from the terminal.
Use when you need exact instruction names, account constraints, or error mapping.
mfi-v2 instruction and error sections first.When finishing marginfi work:
references/official-development-notes.md: condensed marginfi development guidance from official docs.references/source-index.md: official page index and when to consult each source.development
Guides the agent through creating a new Agent Skill from scratch. Use when the user wants to build a skill, create a new skill, scaffold a skill directory, or author a SKILL.md. Do NOT use for optimising or rewriting existing skills — use 'optimise-skill' for that. Do NOT use for editing files that are already part of a skill. Do NOT use for creating non-skill content like documentation, scripts, or project files.
development
Guides the agent through creating a new Agent Skill from scratch. Use when the user wants to build a skill, create a new skill, scaffold a skill directory, or author a SKILL.md. Do NOT use for optimising or rewriting existing skills — use 'optimise-skill' for that. Do NOT use for editing files that are already part of a skill. Do NOT use for creating non-skill content like documentation, scripts, or project files.
development
Review a pull request — interactive PR selection via `gh`, 4-dimension code review (hallucinated code, architecture, performance, test validity), then post severity-graded comments with fix suggestions on the PR. Not for spec-based review — use `review` instead.
tools
協助完成自動化版本發佈。同步文檔、更新版本號、推送 tag 並建立 GitHub Release。