Community艺术与设计github.com

alexbanda08/solana-arb-executor

Rust 实现的低延迟 Solana 套利执行技能,基于 Solana AI Kit:采用 Yellowstone gRPC 数据摄取、模拟优先的 Jito 捆绑包、交易落地、风险控制与紧急终止开关。MIT 许可。

兼容平台Claude Code~Codex CLI~Cursor
npx skills add alexbanda08/solana-arb-executor
AI Overview & Summary

该技能提供了 Solana 套利的 Rust 执行热路径框架,涵盖从数据流摄取、机会检测、模拟优先的 Jito 捆绑包构建与交易落地,到风险控制的完整闭环。它填补了现有套利分析工具(如 Python 信号分析与 TypeScript 示例)缺少的延迟敏感型执行层空白,强调在实际操作中“正确落地”和“风险纪律”比纯粹的速度更重要。技能支持 Yellowstone gRPC/ShredStream 数据源,内置最大敞口、日亏损上限、断路器与紧急终止开关等安全机制,且所有资金变动交易前都必须经过显式的真人确认和模拟验证。适用于 Claude Code、Cursor 等 AI 代理平台,开发者可通过路由文档和专用代理(架构师与性能工程师)获得渐进式的深度指导,从而构建安全、正确的执行机器人,而非保证盈利的托管服务。

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

文档

solana-arb-executor

Scaffolds the Rust execution hot path for Solana arbitrage: stream -> detect -> simulate -> bundle -> land, wrapped in a risk gate (caps, circuit breaker, kill-switch) and a confirm-gate. This is the on-chain layer that prior art only analyzes: agiprolabs/claude-trading-skills is Python analysis (signals, backtests, no execution), and TypeScript arb skills punt the latency-sensitive landing path. This is the genuine white space -- the part that has to be fast, correct, and safe.

Honest economics (load-bearing): spatial DEX arb on Solana is infrastructure-dominated and heavily contested; raw price gaps go to parties with better network position than a single box. A retail operator's durable edge is not raw speed -- it is correct landing (simulate-first, right CU price, tip sizing, retry discipline), risk discipline (caps/breaker/kill-switch), and less-contested opportunities (funding-basis, cross-venue rate gaps, longer-horizon plays). This is scaffolding + knowledge, not a hosted bot and not a guaranteed profit machine.

PRECEDENCE (read before any code-gen)

  1. Read references/safety-rails.md FIRST. Every emitted execution path obeys it.
  2. Never emit code that sends a fund-moving / signing transaction without an explicit typed human confirm-gate; no flag defeats it. Default DRY_RUN=true, REQUIRE_CONFIRM=true. Always simulate before submit.
  3. Use the pinned crate versions in references/sdk-versions.md (verified 2026-06). Flag jito-sdk-rust as early 0.x.
  4. Delegate program / Anchor / IDL / transaction-signing work to ../solana-dev/ via references/delegation.md. Do not duplicate it here.
  5. Mandatory caps (max-notional, max-position, daily-loss) + circuit breaker + kill-switch gate every order before it can reach the confirm-gate.

Task Routing Guide

Map the user's intent to exactly one leaf.

User asks about...Open this leaf
hot-path design / latency budgetreferences/architecture.md
stream accounts/slots / ShredStream ingestionreferences/streaming-ingestion.md
Jito bundle / tip / leader timingreferences/jito-bundles.md
land tx / priority fee / simulate / retriesreferences/transaction-landing.md
detect opportunity / spread / thresholdreferences/opportunity-detection.md
risk / circuit breaker / kill-switch / capsreferences/risk-and-killswitch.md
safety / confirm-gatereferences/safety-rails.md
crate / version / installreferences/sdk-versions.md
program / Anchor / signingreferences/delegation.md

Progressive disclosure

  • Router (this file): pointers only -- no bulk content.
  • Leaves (~60-200 lines each): dense, correct, minimal. Code lives in skill/templates/.
  • Pure logic is offline-testable: templates/src/fees.rs and templates/src/risk.rs are std-only and self-contained -- run rustc --edition 2021 --test fees.rs (and risk.rs) standalone. The full crate (stream.rs, jito.rs, detector.rs, main.rs) compiles with cargo build against the pinned crates.
  • Delegation: ../solana-dev/ for program / tx / signing.

Agents

AgentRoleModel
agents/arb-execution-architect.mdDesigns the latency budget, ingestion/landing topology, and risk envelope before codeopus
agents/rust-perf-engineer.mdWires stream -> detector -> RiskGate -> simulate-first Jito bundlesonnet

Commands

CommandDoes
commands/scaffold-executor.mdEmit the executor crate skeleton (DRY_RUN + REQUIRE_CONFIRM defaults)
commands/wire-yellowstone.mdGenerate the Yellowstone gRPC ingestion module with reconnect/backoff
commands/add-killswitch.mdDrop in the RiskGate with caps + circuit breaker + kill-switch

相关技能