Solana Dev
solana-foundation/solana-dev-skill
A skill your agent uses when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana program", "fuzz my…
Covers designing, building, and debugging MagicBlock Ephemeral Rollup applications on Solana, from delegation to private payments.
$ npx skills add internet-court/internet-court-skill --skill magicblock -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install internet-court/internet-court-skill magicblock --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/internet-court/internet-court-skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/vendored/magicblock/magicblock-dev .claude/skills/magicblock && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "magicblock" agent skill from https://github.com/internet-court/internet-court-skill/tree/main/vendored/magicblock/magicblock-dev into .claude/skills/magicblock/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "magicblock", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/internet-court/internet-court-skill/tree/main/vendored/magicblock/magicblock-devType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add internet-court/internet-court-skill --skill magicblock -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install internet-court/internet-court-skill magicblock --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/internet-court/internet-court-skill.git skills-src && mkdir -p .agents/skills && cp -r skills-src/vendored/magicblock/magicblock-dev .agents/skills/magicblock && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "magicblock" agent skill from https://github.com/internet-court/internet-court-skill/tree/main/vendored/magicblock/magicblock-dev into .agents/skills/magicblock/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "magicblock", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add internet-court/internet-court-skill --skill magicblock -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install internet-court/internet-court-skill magicblock --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/internet-court/internet-court-skill.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/vendored/magicblock/magicblock-dev .cursor/skills/magicblock && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "magicblock" agent skill from https://github.com/internet-court/internet-court-skill/tree/main/vendored/magicblock/magicblock-dev into .cursor/skills/magicblock/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "magicblock", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/internet-court/internet-court-skill.git --path vendored/magicblock/magicblock-dev--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add internet-court/internet-court-skill --skill magicblock -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install internet-court/internet-court-skill magicblock --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/internet-court/internet-court-skill.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/vendored/magicblock/magicblock-dev .gemini/skills/magicblock && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "magicblock" agent skill from https://github.com/internet-court/internet-court-skill/tree/main/vendored/magicblock/magicblock-dev into .gemini/skills/magicblock/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "magicblock", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install internet-court/internet-court-skill magicblockInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add internet-court/internet-court-skill --skill magicblock -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/internet-court/internet-court-skill.git skills-src && mkdir -p .github/skills && cp -r skills-src/vendored/magicblock/magicblock-dev .github/skills/magicblock && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "magicblock" agent skill from https://github.com/internet-court/internet-court-skill/tree/main/vendored/magicblock/magicblock-dev into .github/skills/magicblock/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "magicblock", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add internet-court/internet-court-skill --skill magicblock -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install internet-court/internet-court-skill magicblock --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/internet-court/internet-court-skill.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/vendored/magicblock/magicblock-dev .opencode/skills/magicblock && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "magicblock" agent skill from https://github.com/internet-court/internet-court-skill/tree/main/vendored/magicblock/magicblock-dev into .opencode/skills/magicblock/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "magicblock", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
magicblockCovers designing, building, and debugging MagicBlock Ephemeral Rollup applications on Solana, from delegation to private payments.
MagicBlock's core mechanics for building on Solana get explained here: Ephemeral Rollups that lock a delegated account on the base layer while a faster clone executes under the same program owner, ephemeral accounts that exist only inside a rollup and must never hold the sole copy of durable balances or ownership, and delegation treated as a routing and lifecycle concern that leaves normal program and signer rules untouched.
Private Ephemeral Rollups gate a delegated account behind a TEE-backed, ER-local permission, Magic Actions schedule base-layer instructions from inside a rollup transaction atomically, and further sections cover oracles, randomness, session keys, and local validation for testing. It is meant to be paired with a general Solana development skill for scaffolding, PDAs, and SPL token work outside MagicBlock's own concerns.
8 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit fa89195. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
rpc.magicblock.appdevnet-router.magicblock.approuter.magicblock.appstatus.magicblock.appFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
MagicBlock Development on Solana loads about 3.8k tokens when it runs, and up to ~50k if it reads all its reference files. Until then it costs about 97 tokens; SKILL.md has 1,690 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from internet-court/internet-court-skill at commit fa89195, republished under its MIT licence (© internet-court). 1,690 words, ~3,815 tokens.
.claude/skills/magicblock/SKILL.md (or your agent's skills folder). This skill also uses 19 other files; get the full folder from GitHub.solana-dev skillUse this skill for MagicBlock-specific concerns: ER/PER, delegation, oracles, Session Keys, cranks, VRF,
Magic Actions, eSPL, and private payments. For general Solana or Anchor work such as scaffolding, PDAs,
account layouts, SPL tokens, clients, wallets, or LiteSVM/Mollusk testing, also load solana-dev.
Ephemeral Rollups enable high-performance, low-latency transactions by locking a delegated account on the base layer while an ER clone continues to execute under the account's original program owner. They are useful for gaming, real-time apps, and fast transaction throughput.
Ephemeral Accounts are born, used, and closed only inside an ER. They are useful for temporary high-frequency state, but they never commit to Solana and therefore cannot be the only copy of durable ownership, balances, rewards, or settlement results.
Delegation temporarily assigns the base-layer account to the Delegation Program and clones it into the ER with its original program owner. Normal program ownership, signer, authority, and account constraints still apply on the ER; delegation status is a routing and lifecycle concern, not a new application authorization rule.
Delegation debugging invariant: a properly delegated account looks owned by
the delegation program on base, owned by the original program on the ER endpoint
returned by router getDelegationStatus, and cloned into the ER with
delegated=true.
For the verified SDK v0.16.2 snapshot, use MagicIntentBundleBuilder to
schedule commit and commit-and-undelegate intents. Do not use the deprecated
free functions commit_accounts and commit_and_undelegate_accounts.
Private Ephemeral Rollups (PER) gate a delegated account inside a TEE-backed validator with an ER-local EphemeralPermission. Delegate only the data account on the base layer, then create, update, and close its permission on the ER with CreateEphemeralPermissionCpi, UpdateEphemeralPermissionCpi, and CloseEphemeralPermissionCpi. Do not create or delegate a separate base-layer permission account.
Magic Actions are base-layer instructions scheduled inside an ER transaction via
MagicIntentBundleBuilder.add_post_commit_actions(...). Each attempted base-layer transaction applies
its commit and actions atomically. If any BaseAction fails, the committor removes every BaseAction in
that affected TransactionStrategy before retrying its remaining commit strategy; actions in other
transaction/finalize strategies are outside that removal scope. Observe and reconcile every originally
scheduled action: scheduling or eventual commit success alone does not prove that any of them ran.
Commit sponsorship: every delegated account gets 10 free commits to base layer by default. To lift
the cap, either re-delegate (refreshes the quota) or attach the validator-scoped magic_fee_vault PDA
and a delegated fee payer to the intent bundle. The delegated payer is debited; the fee vault is the
validated destination credited with that commit fee.
Lamports top-up: when a delegated account (e.g. a delegated fee payer) needs more lamports on the ER side, use lamportsDelegatedTransferIx from the SDK. The transaction is submitted on base layer — the Ephemeral SPL Token program creates a single-use lamports PDA, funds it, and delegates it so the ER credits the destination.
Ephemeral SPL Token has two surfaces. In the SDK lifecycle model, clients use
delegateSpl/transferSpl/undelegateIx/withdrawSpl, and the ER balance appears as a normal SPL token
account at the owner's canonical ATA address, so Anchor programs can use plain SPL Token CPI. In the
direct-program model, contracts use ephemeral-spl-api and explicitly work with the eATA/global-vault
PDAs; do not apply the canonical-ATA model to that raw surface.
Pricing Oracle republishes supported market feeds for Solana/ER consumers. A safe integration verifies the expected feed identity, upstream publish-time freshness, value domain, exponent, checked arithmetic, and user price bounds; successful deserialization alone is not price validation.
Session Keys authorize a temporary signer for constrained application actions. Session validity is separate from SPL token authority: token spending also requires an explicit, bounded token delegate allowance.
Architecture:
┌─────────────────┐ delegate ┌─────────────────────┐
│ Base Layer │ ───────────────► │ Ephemeral Rollup │
│ (Solana) │ │ (MagicBlock) │
│ │ ◄─────────────── │ │
└─────────────────┘ undelegate └─────────────────────┘
~400ms ~10-50msUse Anchor with ephemeral-rollups-sdk; native and Pinocchio are also supported.
ephemeral-rollups-sdk / Anchor versions unless the task is an explicit upgradeanchor for Anchor 1.x programs, or anchor-compat for Anchor >=0.28,<1.0 programsRequired macros:
#[ephemeral] on the program module, before #[program] — injects the process_undelegation callback (the delegation program CPIs into it to return the account) and the commit/undelegate intent builders. Commit and undelegation require it; delegation itself does not. Include it on any program that delegates so its accounts can later be undelegated.#[delegate] and #[commit] on the respective delegation/commit account contexts.#[vrf] on a VRF request context and #[vrf_callback] on the VRF callback context — the
callback macro authenticates fulfillment. Enable the vrf feature on ephemeral-rollups-sdk.
SDK v0.16.2 re-exports VRF, so new Anchor code does not need a direct
ephemeral-vrf-sdk dependency. See vrf.md.Non-Anchor programs: use the
ephemeral-rollups-pinocchio crate (delegation, commit, and VRF have Pinocchio equivalents). The
engine examples repo ships Anchor and Pinocchio variants of roll-dice; use Pinocchio when
the target program is native rather than Anchor.
Versions in this skill are known-good snapshots or compatibility markers. Before changing dependencies, inspect the target repository's manifests, toolchain files, lockfiles, and relevant upstream sources. See resources.md for the dated snapshot and source links.
https://rpc.magicblock.app/devnet or https://rpc.magicblock.app/mainnethttps://devnet-router.magicblock.app/ or https://router.magicblock.app/fqdn returned by router getDelegationStatusFor a new application, integration design, migration, or implementation plan, read architecture-planning.md before writing code. Decide whether MagicBlock is needed, select the smallest product set, map accounts and transaction routing, define settlement and recovery, and choose validation environments. Ask at most three material questions per round; otherwise proceed with explicit assumptions.
https://rpc.magicblock.app/devnet or https://rpc.magicblock.app/mainnethttps://devnet-router.magicblock.app/ or https://router.magicblock.app/fqdn returned by router getDelegationStatus for the accountFor each implementation, record:
getDelegationStatus checks before operationsskipPreflight: true only for an ER
path with a known simulation incompatibility (document the reason and inspect execution logs)undelegateIx, wait for its base commit, and call the
legacy withdrawSpl(..., { idempotent: false }); use ephemeral-spl-api exports (not copied bytes
or guessed seeds) for direct CPIFor security-sensitive designs, reviews, and implementations, read security.md. Separate protocol guarantees from required integration validation, application policy, and ordinary Solana security. Do not present an application recommendation as a MagicBlock protocol guarantee.
For InvalidWritableAccount, missing private balances, validator mismatch, or
"account is delegated but ER rejects it" reports:
getDelegationStatus and use its fqdn for ER reads/transactions.For unexpected RPC, routing, oracle, or transaction errors that could be service-side:
https://status.magicblock.app/api/services as the source of truth.mainnet and devnet.asia, europe, usa, and tee..meta.services; currently er (Ephemeral Rollup), rpc_router, pricing_oracle, and vrf_oracle..environments[network].regions[region].servers; for mainnet Asia this includes as.magicblock.app..live_status[service]: true = Operational, false = Down, missing/undefined = N/A..metrics[service] as downtime minutes per day aligned with .meta.days in UTC.getHealth or getVersion, but do not let a single RPC probe replace the status API.When combining products, read composition-patterns.md and keep authority, token control, oracle validity, ER execution, base settlement, and asynchronous completion as separate guarantees.
When you implement changes, provide:
Before the final response, review the entire run against this skill's intended workflow.
Check:
If gaps are found, report them with evidence and request explicit approval for a separate maintenance task. Treat installed skill files as read-only during normal execution.
© internet-court, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 19 other files (references) in vendored/magicblock/magicblock-dev of internet-court/internet-court-skill.
Open the folder on GitHubat commit fa89195
MagicBlock Development on Solana next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| MagicBlock Development on Solana this skillinternet-court/internet-court-skill | 6.5k | — | ~3.8k | Automated safety check: Pass | MIT | |
| Solana Devsolana-foundation/solana-dev-skill | 574 | — | ~3.8k | Automated safety check: Pass | MIT | |
| RadarAuditware/radar | 154 | — | ~2.1k | Automated safety check: Pass | GPL-3.0 | |
| Safe Solana BuilderFrankcastleauditor/safe-solana-builder | 145 | — | ~3.6k | Automated safety check: Pass | None | |
| Wiremock TestOpenZeppelin/openzeppelin-relayer | 154 | — | ~1.6k | Automated safety check: Notes | AGPL-3.0 | |
| Solana Token Extensionssolanabr/ai-kit | 108 | — | ~3.5k | Automated safety check: Pass | MIT |
solana-foundation/solana-dev-skill
A skill your agent uses when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana program", "fuzz my…
Auditware/radar
Use radar for smart contract security analysis, AST generation, and detection template development.
Frankcastleauditor/safe-solana-builder
A skill your agent uses whenever the user wants to write, scaffold, or build a Solana smart contract or program from scratch.
OpenZeppelin/openzeppelin-relayer
Manage WireMock proxy for RPC testing. An agent skill from OpenZeppelin/openzeppelin-relayer.
solanabr/ai-kit
Helps choose, combine and create Token-2022 mint and account extensions on Solana with the spl-token CLI, @solana/kit or Anchor, and integrate the resulting mints.
moonpay/skills
A skill your agent uses when accessing Alchemy APIs for RPC calls, token balances, NFT metadata, asset transfers, transaction simulation, or Alchemy-specific features.
internet-court/internet-court-skill
Uploads one Kleros-related file per paid request to IPFS through the Kleros x402 gateway for 0.01 USDC on Base, returning a CID that Kleros contracts can reference.
internet-court/internet-court-skill
Guides building on the 0G Compute Network, a decentralized GPU marketplace for AI inference and fine-tuning, with SDK patterns and CLI commands.
internet-court/internet-court-skill
Creates, trades and settles permissionless prediction markets on Solana with any SPL token as collateral, including social-media and custom-oracle markets.
internet-court/internet-court-skill
Connects an agent to the BNB Chain MCP server to read blocks and contracts, move tokens and NFTs, register ERC-8004 agents and use Greenfield storage.
internet-court/internet-court-skill
Specifies how a GenLayer Intelligent Contract decision about an agent's performance becomes an ERC-7710 revocation or policy change, through a relayer or bridge and an EVM controller.
internet-court/internet-court-skill
Specifies how a GenLayer Intelligent Contract should supervise an AI agent, with review rubrics, evidence schemas and continue, warn, constrain or revoke decisions.
Works with
Categories
Covers designing, building, and debugging MagicBlock Ephemeral Rollup applications on Solana, from delegation to private payments. MagicBlock's core mechanics for building on Solana get explained here: Ephemeral Rollups that lock a delegated account on the base layer while a faster clone executes under the same program owner, ephemeral accounts that exist only inside a rollup and must never hold the sole copy of durable balances or ownership, and delegation treated as a routing and lifecycle concern that leaves normal program and signer rules untouched.
MagicBlock Development on Solana fits situations like: designing an Ephemeral Rollup feature for a Solana program; debugging a delegated account that isn't behaving as expected; implementing private payments or session keys with MagicBlock.
Run `npx skills add internet-court/internet-court-skill --skill magicblock -a claude-code`. Or copy the skill folder (vendored/magicblock/magicblock-dev in internet-court/internet-court-skill) into .claude/skills/magicblock in your project. Claude Code loads it when a task matches its description.
Run `npx skills add internet-court/internet-court-skill --skill magicblock -a codex`. Or copy the skill folder (vendored/magicblock/magicblock-dev in internet-court/internet-court-skill) into .agents/skills/magicblock in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add internet-court/internet-court-skill --skill magicblock -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/magicblock, .gemini/skills/magicblock, .github/skills/magicblock and .opencode/skills/magicblock in your project.
SKILL.md names no scripts, command-line tools or credentials: MagicBlock Development on Solana is instructions for the agent only. Our summary lists: MagicBlock SDK (verified against v0.16.2).
SKILL.md names 4 domains. In commands or code: rpc.magicblock.app, devnet-router.magicblock.app, router.magicblock.app and status.magicblock.app; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
MagicBlock Development on Solana is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.8k tokens (SKILL.md is roughly 15k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 46k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with MagicBlock Development on Solana: Solana Dev (solana-foundation/solana-dev-skill, 574 stars), Radar (Auditware/radar, 154 stars), Safe Solana Builder (Frankcastleauditor/safe-solana-builder, 145 stars) and Wiremock Test (OpenZeppelin/openzeppelin-relayer, 154 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
internet-court (a GitHub organization) maintains it in internet-court/internet-court-skill, which has 6,471 GitHub stars. The repository holds 80 skills in this directory. The repository was last updated on August 19, 2026.
Source: internet-court/internet-court-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.