.cursor/skills/solana/SKILL.md
# Skill: solana ## Scope - Solana dApp UI development (React/Next.js) with framework-kit - Wallet connection and signing flows - Transaction building, sending, and confirmation UX - On-chain program development with Anchor 0.32.1 - Client SDK generation from IDLs - Local testing with Anchor test framework - Address validation and transaction patterns Does NOT cover: - EVM frontend development (see wagmi skill) - General blockchain concepts ## Assumptions - Anchor 0.32.1 for program developm
npx skillsauth add blockmatic-icebox/basilic-old .cursor/skills/solanaInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Does NOT cover:
@solana/client and @solana/react-hooks for UI development@solana/kit for client/RPC/transaction code@solana/web3.js v1.x for legacy compatibility@solana/client + @solana/react-hooks) for React/Next.js UI@solana/kit for client/RPC/transaction codePublicKey from @solana/web3.js@solana/web3.js to adapter boundaries when legacy dependencies require itPublicKey.isOnCurve() before useprograms/ directory@solana/web3-compat for legacy adapter boundaries@solana/kit types (Address, Signer) over web3.js types@solana-program/* instruction builders over hand-rolled instruction data@solana/web3.js types to adapter modules (don't leak across app)@solana/web3.js types leak across entire appAlways validate Solana addresses before use:
import { PublicKey } from '@solana/web3.js'
function validateSolanaAddress(address: string): boolean {
try {
const publicKey = new PublicKey(address)
return PublicKey.isOnCurve(publicKey)
} catch {
return false
}
}
Use Anchor 0.32.1 for program development:
programs/ directorytests/ directoryscripts/ directoryAnchor.toml at project rootUse Anchor test framework (includes local validator):
# Run tests with local validator
anchor test
# Run tests without starting validator (requires running separately)
anchor test --skip-local-validator
web3-frontend for EVM frontend workdevelopment
# Skill: wagmi ## Scope - React/Next.js wallet integration with Wagmi v3 for EVM chains - Contract interactions using viem v2 for address validation and transaction building - Transaction state management and error handling - Custom hooks wrapping wagmi for contract-specific interactions Does NOT cover: - Solana frontend development - Backend RPC interactions - Smart contract development ## Assumptions - Wagmi v3.3.2+ - viem v2.44.4 - React 18+ or Next.js 14+ - TypeScript v5+ with strict mo
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
development
Advanced TypeScript patterns for type-safe, maintainable code using sophisticated type system features. Use when building type-safe APIs, implementing complex domain models, or leveraging TypeScript's advanced type capabilities.
development
TanStack Query (React Query) for async operations, data fetching, caching, and state management. Use when: fetching server data, managing async operations, caching responses, handling mutations, or any operation that benefits from automatic state management and caching.