marginfi-development

Build or review marginfi integrations using official TypeScript SDK, Rust CLI, or on-chain instructions.

4|2|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/LaiTszKin/apollo-toolkit --skill marginfi-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: marginfi-development
Source: https://github.com/LaiTszKin/apollo-toolkit/tree/main/marginfi-development
Command: npx skills add https://github.com/LaiTszKin/apollo-toolkit --skill marginfi-development

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Marginfi development efforts often risk drift from official guidance, resulting in insecure or inconsistent implementations. This skill provides a doc-first framework to build or analyze integrations using the official TypeScript SDK, Rust CLI, and protocol docs.

Core Features & Use Cases

  • Ground integrations in official marginfi documentation before coding.
  • Support working surfaces: TypeScript SDK, Rust CLI, and raw program instructions.
  • Validate deposits, borrows, repayments, withdrawals, flash loans, liquidations, or permissionless banks against canonical sources and surface explicit caveats.

Quick Start

Consult the official Marginfi docs, select the correct development surface (TypeScript SDK, Rust CLI, or raw program work), and load the relevant reference sections before implementing.

Frequently Asked Questions about marginfi-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a marginfi integration using the TypeScript SDK?

To build a marginfi integration, ground your TypeScript SDK implementation in official documentation by loading relevant reference sections before coding deposits, borrows, or withdrawals.

What is the best way to execute marginfi flash loans and liquidations?

Executing marginfi flash loans and liquidations requires validating raw on-chain instructions against canonical protocol sources to surface explicit caveats and ensure secure implementation.

Does the marginfi Rust CLI support permissionless bank operations?

Yes, the marginfi Rust CLI supports permissionless bank operator tasks when validated against official documentation, ensuring correct configuration and execution of protocol-level operations.

How do I prevent drift from official marginfi protocol guidance?

Prevent marginfi protocol drift by requiring explicit official sources, confirmed bank and environment details, and actionable steps with cited references before implementing any integration logic.

Can I use raw on-chain instructions for marginfi deposits and repayments?

Yes, raw on-chain instructions support marginfi deposits and repayments when grounded in official documentation, providing copy-pasteable steps with cited sources for secure execution.

What are the limitations of building marginfi integrations without official docs?

Building marginfi integrations without official documentation risks insecure or inconsistent implementations due to drift from canonical protocol guidance and unvalidated bank environment details.