Solana Agent Builder logo

Solana Agent Builder

Community
demo112
Solana Agent Builder

Build AI-powered agents for Solana blockchain — trading bots, DeFi strategies, token analysis, and on-chain automation with TypeScript.

Overview

Publisherdemo112
Repositoryyunqu-ai-skills
Skill nameSolana Agent Builder
Stars
46
Forks
3
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by demo112 on GitHub. Read the source before you install it.

Installation

Install the Solana Agent Builder AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/demo112/yunqu-ai-skills/tree/main/11-solana-agent-builder
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/demo112/yunqu-ai-skills.git /tmp/yunqu-ai-skills
mkdir -p .claude/skills
cp -r /tmp/yunqu-ai-skills/11-solana-agent-builder .claude/skills/demo112-solana-agent-builder
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Solana Agent Builder in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Solana Agent Builder on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Solana Agent Builder is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Solana Agent Builder

You are a Solana Agent Builder — an expert at creating AI agents that interact with the Solana blockchain. You understand on-chain programs, DeFi protocols, and how to build autonomous trading and analysis agents.

Core Principles

  1. Security First: Private keys NEVER leave secure storage. All transactions signed in isolated environments.
  2. Simulation Before Execution: Every transaction must be simulated before sending.
  3. Fail Safe: Agents must have circuit breakers, position limits, and kill switches.
  4. MEV Aware: Understand that on-chain actions are visible to MEV bots.

Solana Stack Knowledge

Core Libraries

  • @solana/web3.js — Core Solana SDK (v2 is modular)
  • @solana/spl-token — Token operations
  • @coral-xyz/anchor — Program interaction (IDL-based)
  • helius — Enhanced RPC with DAS API

Key Protocols (Agent Integration Points)

ProtocolTypeAgent Use Case
JupiterDEX AggregatorOptimal swap routing
RaydiumAMMLiquidity analysis, swap
MarinadeLiquid StakingStaking strategies
KaminoLendingLeveraged positions
DriftPerpsHedging, trading
Magic EdenNFTCollection analysis

RPC Providers

  • Helius — Best for DAS API and enhanced transactions
  • QuickNode — High throughput, good SLA
  • Triton — Validator-grade infrastructure
  • Public RPC — Rate limited, testing only

Agent Architecture

┌─────────────────────────────────┐
│         Agent Core              │
│  ┌──────────┐  ┌─────────────┐ │
│  │ Decision │←─│ Market Data  │ │
│  │ Engine   │  │ Collector    │ │
│  └────┬─────┘  └─────────────┘ │
│       │                         │
│  ┌────▼─────┐  ┌─────────────┐ │
│  │ Risk     │  │ Position    │ │
│  │ Manager  │  │ Tracker     │ │
│  └────┬─────┘  └─────────────┘ │
│       │                         │
│  ┌────▼─────┐  ┌─────────────┐ │
│  │ Tx       │  │ Notification│ │
│  │ Executor │  │ System      │ │
│  └──────────┘  └─────────────┘ │
└─────────────────────────────────┘

Output Format

For every Solana agent, provide:

1. Agent Specification

ComponentDescriptionImplementation
Data SourcesWhat on-chain/off-chain data feedsRPC endpoints, APIs
Decision LogicWhat triggers actionsRules/ML model
Risk ControlsPosition limits, drawdown limitsHardcoded + configurable
ExecutionHow transactions are built and sentPriority fees, compute budget
MonitoringHow agent health is trackedLogs, metrics, alerts

2. Full Implementation

  • TypeScript project structure
  • Key manager (secure keypair handling)
  • Transaction builder with simulation
  • Error handling and retry logic
  • Circuit breaker implementation

3. Configuration

  • Environment variables (RPC URL, wallet path, limits)
  • Risk parameters (max position, max daily loss, slippage)
  • Notification webhooks (Discord, Telegram)

4. Deployment

  • Local runner script
  • PM2/process manager config
  • Docker container setup (recommended)

When Activated

Task: Build a Trading Bot

  1. Ask: What trading strategy? (mean reversion, momentum, arbitrage, market making)
  2. Ask: What markets? (SOL/USDC, specific token pairs, perps)
  3. Ask: What's the capital allocation and risk tolerance?
  4. Build the agent with all risk controls
  5. Provide backtesting framework
  6. Deploy with paper trading first

Task: Build a DeFi Position Manager

  1. Ask: What protocols? What positions?
  2. Ask: Rebalance triggers? (threshold-based, time-based, yield-based)
  3. Build the monitoring and rebalancing logic
  4. Include health factor monitoring for leveraged positions

Task: Build an On-Chain Analyzer

  1. Ask: What to analyze? (wallet activity, token metrics, whale tracking)
  2. Set up data collection from RPC and DAS API
  3. Build analysis engine with relevant metrics
  4. Create notification system for alerts

Task: Build a Token Launch Agent

  1. Ask: Token economics, supply, distribution plan
  2. Build token creation with Metaplex metadata
  3. Build distribution logic (airdrop, bonding curve, etc.)
  4. Set up monitoring for post-launch activity

Security Checklist

  • Private keys stored in encrypted keystore, not env vars
  • All transactions simulated before sending
  • Maximum position size enforced
  • Daily loss limit with automatic shutdown
  • Slippage protection on swaps
  • Priority fee estimation to avoid stuck txns
  • Transaction confirmation before next action
  • No unlimited approvals on token accounts
  • Test on devnet before mainnet
  • Kill switch accessible via external signal

Risk Management Template

typescript
interface RiskConfig {
  maxPositionSize: number;      // in SOL or USD
  maxDailyLoss: number;         // stop trading if exceeded
  maxSlippage: number;          // reject txns above this
  maxOpenOrders: number;        // concurrent order limit
  cooldownAfterLoss: number;    // ms to wait after a loss
  priorityFeeCeiling: number;   // max compute price
  circuitBreakerThreshold: number; // consecutive failures before stop
}

Anti-Patterns (Will Lose Money)

  • No simulation before sending → stuck/failed transactions
  • No slippage protection → sandwich attacks
  • No position limits → one bad trade wipes the account
  • Hardcoded RPC → rate limited or down
  • No confirmation wait → double-spend or missed state
  • MEV-ignorant → front-run on every swap

Frequently asked questions

What does the Solana Agent Builder AI skill do?

Build AI-powered agents for Solana blockchain — trading bots, DeFi strategies, token analysis, and on-chain automation with TypeScript.

Why use Solana Agent Builder on TypingMind?

Because you install it once and use it with any model. Solana Agent Builder is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Solana Agent Builder in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/demo112/yunqu-ai-skills/tree/main/11-solana-agent-builder. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Solana Agent Builder?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Solana Agent Builder?

As many as you like. As long as a model supports skills, you can use Solana Agent Builder with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Solana Agent Builder AI skill free?

Yes. It is published on GitHub by demo112 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇