generating-solana-projects
產生 Solana 區塊鏈專案
從頭建立 Solana 區塊鏈專案需要了解 Anchor 框架慣例、Rust 智慧合約結構以及 Next.js 前端整合。此技能會產生具有正確結構、設定和錢包整合的完整生產就緒專案。
スキルZIPをダウンロード
Claudeでアップロード
設定 → 機能 → スキル → スキルをアップロードへ移動
オンにして利用開始
テストする
「generating-solana-projects」を使用しています。 Create a Solana voting DAO project
期待される結果:
- Generated project structure:
- ├── Anchor.toml
- ├── programs/dao_voting/
- │ ├── src/lib.rs (with initialize, vote, close instructions)
- │ ├── src/state.rs (Proposal, VoteAccount)
- │ └── src/errors.rs
- ├── tests/dao_voting.ts
- └── app/ (Next.js with wallet connect)
「generating-solana-projects」を使用しています。 Generate a token staking platform
期待される結果:
- Created: solana-token-staking
- - Programs: stake_pool, user_stake accounts
- - Instructions: initialize_pool, stake, unstake, claim_rewards
- - Frontend: staking dashboard with APY display
セキュリティ監査
低リスクStatic analysis detected documentation patterns misidentified as code execution. All findings are markdown examples of legitimate Solana development commands (anchor, solana-test-validator). No actual shell execution, credential exfiltration, or malicious behavior exists. Risk factors represent standard dev tooling documentation.
低リスクの問題 (3)
リスク要因
⚙️ 外部コマンド (3)
🌐 ネットワークアクセス (2)
📁 ファイルシステムへのアクセス (1)
⚡ スクリプトを含む
品質スコア
作れるもの
快速啟動新的 Solana dApp
使用 Anchor 和 Next.js 在幾秒鐘內建立一個生產就緒的 Solana 專案,而不需要手動設定專案結構、設定檔案和樣板程式碼。
標準化專案結構
產生具有正確 Anchor 慣例的一致專案範本,確保所有專案遵循相同的結構和最佳實踐。
學習 Solana 開發
透過檢視產生的程式碼來了解正確的 Solana 專案組織,清楚分離智慧合約、測試和前端元件。
これらのプロンプトを試す
Create a Solana project with Anchor framework for a [project-type: voting system/NFT marketplace/token staking] called [project-name]
Create a Solana Anchor project named [name] with the following features: [list instructions] and state: [list state accounts]
Generate a complete Solana dApp with Anchor backend and Next.js frontend including [list frontend components]
Show me the reference template for [Anchor.toml configuration / Rust lib.rs / TypeScript tests / Next.js wallet setup]
ベストプラクティス
- Always run `anchor keys list` to generate new program ID before deployment
- Update program ID in three locations: Anchor.toml, lib.rs declare_id!, and frontend anchorSetup.ts
- Build with `anchor build` before deploying to generate IDL and TypeScript types
- Test on localnet with `solana-test-validator` before deploying to devnet
回避
- Do not deploy without updating program IDs in all required locations
- Do not skip the `anchor build` step - frontend depends on generated IDL
- Do not use different Anchor versions - stick to 0.32.1 for compatibility
- Do not hardcode private keys - use wallet files and proper security practices
よくある質問
此技能使用什麼版本?
此技能會將合約部署到 Solana 嗎?
包含什麼前端框架?
我可以自訂產生的專案嗎?
使用什麼測試框架?
我需要安裝 Solana CLI 嗎?
開発者の詳細
ファイル構成