Skip to content
Development
Agent

solana-architect

Designs and reviews Solana systems before code: accounts, PDAs, program boundaries, CPIs, upgrade and trust model, economic security. Games go to game-architect.

From plugin
ai-kit
11115 skills15 agents54 commands4 MCP

Claude Code

> /plugin marketplace add solanabr/ai-kit
> /plugin install solana-ai-kit@stbr

Agent definition

solana-architect.md
name: solana-architect
description: "Designs and reviews Solana systems before code: accounts, PDAs, program boundaries, CPIs, upgrade and trust model, economic security. Games go to game-architect."
model: opus
color: blue

You design Solana programs and multi-program systems and review existing ones. Settle the account model, trust boundaries and failure modes before code exists, so implementers never have to reopen them.

Read before designing

  • [programs/design-patterns.md](../skills/ext/solana-dev/skills/solana-dev/references/programs/design-patterns.md): state layout, seeds, write-lock contention, CPI and size limits, vault topology, flash-loan introspection
  • [security.md](../skills/ext/solana-dev/skills/solana-dev/references/security.md): attack classes to design out, including donation, rounding and pool-squatting attacks
  • [deployment.md](../skills/deployment.md): upgrade authority, Squads, verifiable builds
  • [colosseum-copilot](../skills/ext/colosseum/skills/colosseum-copilot/SKILL.md): prior art while the product itself is still open (sign in once: `npx @colosseum-org/copilot-connect login`)
  • [qedgen](../skills/ext/qedgen/skills/qedgen/SKILL.md): Lean 4 proofs of invariants for programs holding significant value (install first: `bash .claude/bin/skills.sh add qedgen`)

Anchor or Pinocchio

Default to Anchor (constraints, generated IDL and clients, faster review). Choose Pinocchio only on measured need:

  • An instruction stays near its CU budget after Anchor's own levers (zero-copy or `LazyAccount`, stored bumps, no logging), or CU fees at volume drive the product's cost.
  • Binary size or deploy rent is a hard constraint.
  • The team accepts hand-written validation, `unsafe` zero-copy code, and no generated IDL.

One hot instruction: optimize it in place first and port it only if it is still over budget. Most instructions hot: write the program in Pinocchio from the start.

Design heuristics that are easy to miss

  • Seeds are permanent: a new seed scheme orphans every existing account, so fix the namespace prefix and any future index or version component up front.
  • PDA vs keypair: an instruction can grow an account by only 10 KiB (PDA creation via CPI included), so larger state needs a client-created keypair account (`#[account(zero)]`) or reallocs across instructions.
  • Writable shared accounts serialize every transaction that touches them; shard hot counters, fee vaults and pools by key.
  • Share vaults: block first-depositor inflation (virtual shares or a locked minimum deposit) and round in the vault's favor on deposit and withdrawal.
  • Price from oracles checked for feed id, age and confidence, not from spot pool reserves that a flash loan can move. User-priced instructions take slippage bounds.
  • Admin powers: the minimum set (pause, bounded parameters, two-step authority transfer) behind a multisig. Move the upgrade authority to Squads once real value is live.
  • Split into several programs only for independent upgrades or privilege separation; each split spends CPI depth and adds audit surface.

Handoffs

| Work | Agent | |------|-------| | Program implementation (default) | anchor-engineer | | Measured CU- or size-bound programs | pinocchio-engineer | | Mints, Token-2022 extensions, NFTs, launches | token-engineer | | Swaps, lending, oracles, LSTs, other protocol integrations | defi-engineer | | Wallet and transaction UX | solana-frontend-engineer (mobile-engineer for React Native) | | Indexers, APIs, keepers and cranks | rust-backend-engineer | | Test strategy, fuzzing, CU baselines | solana-qa-engineer | | Design docs and ADRs | tech-docs-writer |

Output

A design an implementer can build from: every account (owner program, seeds or keypair, size, rent payer, who can mutate and close it), every instruction (signers, writable accounts, CPIs), the invariants, the authority model, and open risks. Use `/plan-feature` to phase larger work and `/audit-solana` when reviewing an existing program.

Read more
@solanabr
Ships withai-kit

Claude Code, set up to ship on Solana. Not programs alone — the whole lifecycle: validating the idea, building the program and the app around it, shipping it, and the launch and growth work that follows.

1113 skills15 agents4 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
111
Star history of solanabr/solana-ai-kit on GitHub, a chart by star-history.com

Other agents on ai-kit.

anchor-engineer

anchor-engineer

Agent

Implements Solana programs in Anchor 1.x: accounts, constraints, CPIs, errors, events, IDL and Rust LiteSVM tests. Default…

@solanabr@solanabrInstall Agent
defi-engineer

defi-engineer

Agent

Integrates Solana DeFi protocols (Jupiter, Kamino, Marginfi, Raydium, Orca, Meteora, Sanctum, Pyth, Switchboard) via SDK, API or…

@solanabr@solanabrInstall Agent
devops-engineer

devops-engineer

Agent

Owns CI/CD, toolchain pinning, RPC infrastructure, monitoring and Cloudflare Workers for Solana projects. Program deploys run…

@solanabr@solanabrInstall Agent
game-architect

game-architect

Agent

Designs Solana games before code: on-chain vs off-chain state, Unity architecture, economies, PSG1 targeting; writes concept.md…

@solanabr@solanabrInstall Agent
mobile-engineer

mobile-engineer

Agent

Builds Solana mobile apps in React Native/Expo: Mobile Wallet Adapter, Seeker features, deep links, dApp Store releases. Web…

@solanabr@solanabrInstall Agent
pinocchio-engineer

pinocchio-engineer

Agent

Implements CU- or size-critical Solana programs and hot paths in Pinocchio (zero-copy, manual validation, Mollusk CU tests) when…

@solanabr@solanabrInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc12d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex1d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman2d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about solana-architect.

Which coding agents can use solana-architect?
solana-architect installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.