# Generate Complete Solana Projects

Building a Solana program and wallet frontend requires coordinated Rust, TypeScript, Anchor, and Next.js files. This skill creates a consistent project scaffold and setup workflow.

## Install

```bash
npx skillstore add mszgy/generating-solana-projects
```

## Metadata

- Status: approved
- Slug: mszgy-generating-solana-projects
- Skillstore revision: r2
- Version status: missing
- Tree hash: 8fac439e2cb31def30fd37093ac42a094ab5c3f3bd9dbf6eae068ac060b9cfd4
- Author: MSzgy
- GitHub username: MSzgy
- License: MIT
- Repository: https://github.com/MSzgy/generating-solana-projects/tree/main/
- Ref: 02be9409c79ca1183f7844009c14d9df684d0cf9
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: confirmation\_required
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: filesystem, scripts, network, external\_commands
- Quality score: 38
- Quality tier: warning
- Public page: https://skillstore.pages.dev/skills/mszgy-generating-solana-projects
- Manifest: https://skillstore.pages.dev/api/skills/mszgy-generating-solana-projects/manifest

## Capabilities

- Produces an Anchor 0.32.1 project tree with Rust program modules and workspace configuration.
- Creates state, error, and instruction-handler templates for a requested Solana program.
- Adds TypeScript tests configured for the Anchor provider and workspace.
- Scaffolds a Next.js 14 frontend with Phantom, Solflare, and Anchor client integration.
- Provides localnet build, test, deployment, and frontend startup commands.

## Use Cases

- Prototype a voting application: Create an Anchor voting program, TypeScript tests, and a wallet-connected interface for local validation.
- Bootstrap a marketplace project: Generate program modules and frontend components for listings, offers, and wallet transactions.
- Teach Anchor architecture: Show how Rust programs, generated types, tests, configuration, and Next.js clients connect.

## Prompt Templates

### Create a starter counter

```
Create a Solana counter project named {project_name}. Use Anchor 0.32.1 and include a Next.js wallet interface, tests, and localnet setup.
```

### Build a voting application

```
Generate a voting application named {project_name}. Include poll creation, one vote per wallet, poll closing, negative tests, and a results interface.
```

### Design a staking prototype

```
Create a token staking prototype for {token_mint}. Add pool initialization, stake, unstake, reward claims, authority checks, calculation tests, and a dashboard.
```

### Plan a governed treasury

```
Generate a DAO treasury project with proposals, weighted voting, timelocked execution, and role constraints. Include invariant tests and document every trust assumption.
```

## Limitations

- Generated code is a scaffold and does not guarantee production security or correctness.
- Program IDs must be generated and updated in three project files.
- The output requires external Rust, Solana, Anchor, Node.js, and Yarn toolchains.
- Pinned framework versions and package ranges require compatibility and vulnerability review.

## Best Practices

- Begin on localnet and verify every generated program ID before testing.
- Add adversarial tests for signers, ownership, PDAs, arithmetic, authorization, and account substitution.
- Commit reviewed lockfiles and obtain an independent audit before any mainnet deployment.

## Anti Patterns

- Do not deploy placeholder handlers or generic account constraints to mainnet.
- Do not store private keys, seed phrases, or wallet files inside the generated project.
- Do not accept dependency updates without lockfile review, integrity checks, and testing.

## Security Audit

- Audited at: 2026-08-09T09:18:45.535\+00:00
- Summary: All 19 static findings are false positives caused by documentation paths, standard imports, local endpoints, framework configuration, or Markdown formatting. However, the skill promotes production-ready Solana deployments without mandatory security controls and installs dependency ranges without lockfile guidance. Security review and reproducible dependency controls are required before publication.

## Stats

- Views: 130
- Downloads: 14
- Favorites: 1
- Popularity score: 0
