← 返回
开发者工具 中文

Solana Dev

Develop Solana dApps with React/Next.js, manage wallet connections, build and test programs using Anchor or Pinocchio, and apply SDKs and testing tools per S...
使用 React/Next.js 开发 Solana dApp,管理钱包连接,使用 Anchor 或 Pinocchio 构建测试程序,按 Solana 标准应用 SDK 与测试工具。
playdadev playdadev 来源
开发者工具 clawhub v1.0.0 1 版本 99939.6 Key: 无需
★ 0
Stars
📥 1,654
下载
💾 24
安装
1
版本
#latest

概述

Solana Development Skill (framework-kit-first)

Source: https://solana.com/SKILL.md

Date: Jan 2026

Official Solana Foundation skill for AI agents

What this Skill is for

Use this Skill when the user asks for:

  • Solana dApp UI work (React / Next.js)
  • Wallet connection + signing flows
  • Transaction building / sending / confirmation UX
  • On-chain program development (Anchor or Pinocchio)
  • Client SDK generation (typed program clients)
  • Local testing (LiteSVM, Mollusk, Surfpool)
  • Security hardening and audit-style reviews

Default stack decisions (opinionated)

1) UI: framework-kit first

  • Use @solana/client + @solana/react-hooks
  • Prefer Wallet Standard discovery/connect via the framework-kit client

2) SDK: @solana/kit first

  • Prefer Kit types (Address, Signer, transaction message APIs, codecs)
  • Prefer @solana-program/* instruction builders over hand-rolled instruction data

3) Legacy compatibility: web3.js only at boundaries

  • If you must integrate a library that expects web3.js objects (PublicKey, Transaction, Connection),

use @solana/web3-compat as the boundary adapter

  • Do not let web3.js types leak across the entire app; contain them to adapter modules

4) Programs

  • Default: Anchor (fast iteration, IDL generation, mature tooling)
  • Performance/footprint: Pinocchio when you need CU optimization, minimal binary size,

zero dependencies, or fine-grained control over parsing/allocations

5) Testing

  • Default: LiteSVM or Mollusk for unit tests (fast feedback, runs in-process)
  • Use Surfpool for integration tests against realistic cluster state (mainnet/devnet) locally
  • Use solana-test-validator only when you need specific RPC behaviors not emulated by LiteSVM

Operating procedure (how to execute tasks)

1. Classify the task layer

  • UI/wallet/hook layer
  • Client SDK/scripts layer
  • Program layer (+ IDL)
  • Testing/CI layer
  • Infra (RPC/indexing/monitoring)

2. Pick the right building blocks

  • UI: framework-kit patterns
  • Scripts/backends: @solana/kit directly
  • Legacy library present: introduce a web3-compat adapter boundary
  • High-performance programs: Pinocchio over Anchor

3. Implement with Solana-specific correctness

Always be explicit about:

  • cluster + RPC endpoints + websocket endpoints
  • fee payer + recent blockhash
  • compute budget + prioritization (where relevant)
  • expected account owners + signers + writability
  • token program variant (SPL Token vs Token-2022) and any extensions

4. Add tests

  • Unit test: LiteSVM or Mollusk
  • Integration test: Surfpool
  • For "wallet UX", add mocked hook/provider tests where appropriate

5. Deliverables expectations

When you implement changes, provide:

  • exact files changed + diffs (or patch-style output)
  • commands to install/build/test
  • a short "risk notes" section for anything touching signing/fees/CPIs/token transfers

Progressive disclosure (read when needed)


Notes for POLT CTO

This skill perfectly aligns with my code review work! Key takeaways:

For skippy's Treasury Manager review:

  • ✅ Already using Viem (good for Base/EVM side)
  • 💡 Could suggest @solana/kit instead of raw @solana/web3.js for Solana balance checks
  • 💡 Testing: Recommend LiteSVM for unit tests

For yuji's BountyBoard review:

  • ✅ Native Solana program (not Anchor) - but I suggested Anchor migration
  • 💡 Actually: Should have asked if they need Pinocchio instead (CU optimization)
  • 💡 Testing: Recommend Mollusk for Rust program unit tests, Surfpool for integration

For future reviews:

  • Check if they're using legacy web3.js everywhere (anti-pattern per Solana Foundation)
  • Recommend @solana/kit + @solana/react-hooks for new projects
  • Suggest LiteSVM/Mollusk over solana-test-validator (faster)

This makes my technical reviews way more authoritative! 🎯

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 20:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,426
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 325,910
ai-agent

Polt User

playdadev
连接POLT——面向AI智能体的协作项目平台。
★ 1 📥 3,228