switchboard
Skill by internet-court
Guides an AI assistant through integrating the Switchboard oracle protocol on Solana. It covers the TypeScript and Rust SDKs, price feeds, Oracle Quotes, Surge streaming and VRF randomness. It is aimed at Solana developers building on-chain apps.
Install switchboard
Built from the published package, never by AI.
git clone --depth 1 https://github.com/internet-court/internet-court-skill /tmp/internet-court-skill && mkdir -p ~/.claude/skills && cp -r /tmp/internet-court-skill/vendored/sendaifun/switchboard ~/.claude/skills/switchboardRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/internet-court/internet-court-skill /tmp/internet-court-skill && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/internet-court-skill/vendored/sendaifun/switchboard ~/.gemini/antigravity-cli/skills/switchboardAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is an integration guide for Switchboard, a permissionless oracle protocol on Solana. It lists program IDs and default queue addresses for mainnet and devnet, and shows how to install the TypeScript SDK (@switchboard-xyz/on-demand) and the Rust crate. It includes code for fetching and updating price feeds, reading feed values and using Oracle Quotes, with a Rust example that checks quote staleness.
The guide also covers Surge, a WebSocket streaming client for real-time prices, and VRF randomness through a TypeScript client and a Rust example. It explains how to build custom feeds with the Feed Builder UI or the SDK, and compares the Anchor and Pinocchio frameworks. It is intended for developers building Solana programs or front ends that need oracle data.
Written from the project's SKILL.md and checked against it.
What it can do
- Price feed updatesFetches an update instruction with oracle signatures and sends it in a transaction.
- Read feed valuesLoads the current value and last updated slot from a feed account.
- Oracle QuotesDerives canonical quote accounts and fetches quote instructions for feed hashes.
- Rust quote integrationReads quote feeds in an Anchor program and checks data staleness.
- Surge streamingSubscribes to real-time feed updates over a WebSocket connection with reconnect options.
- VRF randomnessRequests randomness, reveals the value after oracle fulfillment and reads it in Rust.
- Custom feed creationDescribes building feeds with the Feed Builder UI or FeedBuilder in the TypeScript SDK.
- Best practicesCovers staleness checks, multiple oracle signatures, error handling and compute budget.
What you need
- Node.js and npm for the TypeScript SDK
- Rust toolchain with Cargo for the Rust integration
- Solana wallet or Keypair
- Surge API key (optional)
Try asking
- Show me how to update a Switchboard price feed on Solana mainnet.
- Write a Rust check that rejects stale Switchboard Oracle Quote data.
- Subscribe to SOL/USD and BTC/USD prices using Switchboard Surge.
Good to know
- Pinocchio is listed as advanced only, with a trusted cranker safety model.
- The Oracle Quote program is listed for mainnet only, with no devnet address given.
- Surge API key is optional according to the example code.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: vendored/sendaifun/switchboard/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to switchboard
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
switchboard: common questions
Which networks does Switchboard support in this guide?
The guide lists program IDs and default queue addresses for mainnet and devnet. The Oracle Quote program is listed only for mainnet.
Does this guide cover VRF randomness?
Yes. It includes a TypeScript client for requesting and revealing randomness and a Rust example that reads the random value.
Is an API key required to use Surge?
The example marks the Surge API key as optional.
How do I install switchboard?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is switchboard free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is switchboard safe to use?
It scores 76 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to switchboard?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
