Agent skill
generating-solana-projects
Generates complete Solana blockchain projects with Anchor framework (v0.32.1) and Next.js frontend including Rust smart contracts, tests, and wallet integration. Use when creating Solana dApps, NFT marketplaces, token programs, DAOs, DeFi protocols, or when user mentions Solana, Anchor, or blockchain projects.
Install this agent skill to your Project
npx add-skill https://github.com/aiskillstore/marketplace/tree/main/skills/mszgy/generating-solana-projects
SKILL.md
Generating Solana Projects
Goal: Create production-ready Solana blockchain projects with Anchor framework and Next.js frontend.
Workflow
- Gather requirements: Ask user for project name, program functionality, required instructions, and frontend features
- Generate project structure: Create complete directory tree following Anchor conventions
- Create Rust smart contract: Generate lib.rs, state.rs, errors.rs, and instruction handlers in
programs/ - Create configuration files: Generate Anchor.toml, Cargo.toml, package.json, tsconfig.json with version 0.32.1
- Create tests: Generate TypeScript test file with Anchor testing framework setup
- Create Next.js frontend: Generate wallet provider setup, Anchor client, and UI components in
app/ - Provide setup instructions: Tell user to run
anchor keys list, update program IDs, build, deploy, and test
Critical versions
Always use these exact versions for compatibility:
- Anchor: 0.32.1
- anchor-lang (Rust): 0.32.1
- @coral-xyz/anchor (JS): ^0.32.1
- @solana/web3.js: ^1.87.6
- Next.js: 14.0.4
Project structure template
{project-name}/
├── Anchor.toml
├── Cargo.toml (workspace)
├── package.json
├── programs/{program-name}/
│ ├── Cargo.toml
│ └── src/
│ ├── lib.rs
│ ├── state.rs
│ ├── errors.rs
│ └── instructions/
├── tests/{program-name}.ts
└── app/ (Next.js)
├── package.json
└── src/
├── pages/_app.tsx
├── components/
└── utils/anchorSetup.ts
Important reminders
After generation, user must:
- Generate program ID:
anchor keys list - Update program ID in three locations: Anchor.toml, lib.rs (declare_id!), anchorSetup.ts
- Build before deploying:
anchor buildgenerates IDL and types needed by frontend
For detailed templates, code snippets, and examples, see reference.md and examples.md.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
perigon-backend
Perigon ASP.NET Core + EF Core + Aspire conventions
perigon-agent
Pointers for Copilot/agents to apply Perigon conventions
perigon-angular
Angular 21+ standalone/Material/signal conventions for Perigon WebApp
fastapi-mastery
Comprehensive FastAPI development skill covering REST API creation, routing, request/response handling, validation, authentication, database integration, middleware, and deployment. Use when working with FastAPI projects, building APIs, implementing CRUD operations, setting up authentication/authorization, integrating databases (SQL/NoSQL), adding middleware, handling WebSockets, or deploying FastAPI applications. Triggered by requests involving .py files with FastAPI code, API endpoint creation, Pydantic models, or FastAPI-specific features.
context7-efficient
Token-efficient library documentation fetcher using Context7 MCP with 86.8% token savings through intelligent shell pipeline filtering. Fetches code examples, API references, and best practices for JavaScript, Python, Go, Rust, and other libraries. Use when users ask about library documentation, need code examples, want API usage patterns, are learning a new framework, need syntax reference, or troubleshooting with library-specific information. Triggers include questions like "Show me React hooks", "How do I use Prisma", "What's the Next.js routing syntax", or any request for library/framework documentation.
browser-use
Browser automation using Playwright MCP. Navigate websites, fill forms, click elements, take screenshots, and extract data. Use when tasks require web browsing, form submission, web scraping, UI testing, or any browser interaction.
Didn't find tool you were looking for?