Skip to content
Skill

Pump swap SDK

Guides code that quotes and builds PumpSwap AMM swap, deposit and withdraw instructions

Pump swap SDK is an open-source agent skill for finance and payments. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
37
Last commit
License
MIT
Listing updated

Similar skills

About Pump swap SDK

This skill teaches an agent to work with the @pump-fun/pump-swap-sdk package for the PumpSwap AMM program on Solana. The SDK builds TransactionInstruction arrays rather than signing or sending anything, so the caller assembles and submits the transaction. The skill explains the main conventions: amounts are BN values in raw base units of each mint, and slippage is given as a percentage.

The guide walks through two entry points, an online class that fetches on-chain pool state over a Connection and an offline builder that turns that state into instructions. It lists the four swap builders (buy and sell, sized by base or quote input), the deposit and withdraw flows, pool creation, and creator fee collection, along with the pure quote helpers. It also points the agent to the SDK source files to confirm method signatures before using anything not covered in the guide.

Safety rules are built in: quotes should use a read-only RPC, any signing or swapping step needs a summary table and explicit user confirmation, private keys and seed phrases are never requested or stored, and token metadata read from chain is treated as untrusted data. Expects a TypeScript project with @solana/web3.js and bn.js.

When your agent uses it

Write TypeScript that quotes and builds PumpSwap AMM swap, deposit and withdraw instructions on Solana with @pump-fun/pump-swap-sdk. Use when code needs to trade or provide liquidity on a PumpSwap pool.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (3 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the pumpswap-sdk plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add nirholas/pump-swap-sdk
/plugin install pumpswap-sdk@pump-swap-sdk

Or copy only this skill to ~/.claude/skills/pump-swap-sdk:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nirholas/pump-swap-sdk.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/pump-swap-sdk &&
cp -R "$tmp/plugins/pumpswap-sdk/skills/pump-swap-sdk" ~/.claude/skills/pump-swap-sdk &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/pump-swap-sdk inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/pump-swap-sdk to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nirholas/pump-swap-sdk.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/pump-swap-sdk &&
cp -R "$tmp/plugins/pumpswap-sdk/skills/pump-swap-sdk" ~/.agents/skills/pump-swap-sdk &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/pump-swap-sdk inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/pump-swap-sdk to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nirholas/pump-swap-sdk.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/pump-swap-sdk &&
cp -R "$tmp/plugins/pumpswap-sdk/skills/pump-swap-sdk" ~/.cursor/skills/pump-swap-sdk &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/pump-swap-sdk inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/nirholas/pump-swap-sdk.git --path plugins/pumpswap-sdk/skills/pump-swap-sdk

Or copy the folder to ~/.gemini/skills/pump-swap-sdk yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/pump-swap-sdk:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nirholas/pump-swap-sdk.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/pump-swap-sdk &&
cp -R "$tmp/plugins/pumpswap-sdk/skills/pump-swap-sdk" ~/.copilot/skills/pump-swap-sdk &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/pump-swap-sdk inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/nirholas/pump-swap-sdk.git

Then copy pump-swap-sdk/plugins/pumpswap-sdk/skills/pump-swap-sdk into your agent's skills folder as pump-swap-sdk. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Swap instruction builders
Covers the four buy and sell builders that take either base or quote as the fixed input amount.
Quote helpers
Describes the offline quote functions for swaps, multi-hop routes and fee basis points.
Liquidity deposit and withdraw
Outlines the autocomplete and explicit flows for adding and removing LP positions.
Pool creation and creator fees
Explains how to build new pool instructions and collect coin creator vault fees.
Read-only quoting guidance
Recommends a read-only RPC for quotes and a confirmation table before any signing step.

Good for

  • Write TypeScript that quotes a buy of a PumpSwap token
  • Build sell instructions with slippage limits for a pool
  • Add liquidity to an existing PumpSwap pool from base tokens
  • Create a new PumpSwap pool and its initial instructions
  • Collect creator fees from a PumpSwap coin vault

Pump swap SDK FAQ

What does the skill need installed?

It uses the @pump-fun/pump-swap-sdk npm package, with @solana/web3.js for Connection and PublicKey and bn.js for BN amounts.

Does the SDK sign or send transactions?

No. It returns TransactionInstruction arrays, and the caller places them in a transaction and handles signing and sending.

How is slippage expressed?

As a percentage, so a value of 1 means 1 percent.

When does the skill apply?

When code needs to trade or provide liquidity on a PumpSwap pool.

How do I install Pump swap SDK in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/pump-swap-sdk to use it in all your projects, or to .claude/skills/pump-swap-sdk in one project. Or install the pumpswap-sdk plugin, which includes it: /plugin marketplace add nirholas/pump-swap-sdk, then /plugin install pumpswap-sdk@pump-swap-sdk.

Does Pump swap SDK run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Pump swap SDK?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Pump swap SDK?

The closest alternatives to Pump swap SDK are Swap tokens, Swap integration, Swap planner, Liquidity planner and Unify balance.

Where this comes from

  • Description: from the skill's own SKILL.md.