المهارات generating-solana-projects
📦

generating-solana-projects

مخاطر منخفضة ⚙️ الأوامر الخارجية🌐 الوصول إلى الشبكة📁 الوصول إلى نظام الملفات⚡ يحتوي على سكربتات

產生 Solana 區塊鏈專案

從頭建立 Solana 區塊鏈專案需要了解 Anchor 框架慣例、Rust 智慧合約結構以及 Next.js 前端整合。此技能會產生具有正確結構、設定和錢包整合的完整生產就緒專案。

يدعم: Claude Codex Code(CC)
⚠️ 67 ضعيف
1

تنزيل ZIP المهارة

2

رفع في Claude

اذهب إلى Settings → Capabilities → Skills → Upload skill

3

فعّل وابدأ الاستخدام

اختبرها

استخدام "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

التدقيق الأمني

مخاطر منخفضة
v1 • 1/23/2026

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.

5
الملفات التي تم فحصها
1,012
الأسطر التي تم تحليلها
7
النتائج
1
إجمالي عمليات التدقيق
مشكلات منخفضة المخاطر (3)
Documentation Patterns Misidentified as Code Execution
Static scanner detected backtick syntax in markdown files as shell command execution. These are markdown code block formatting and documentation examples showing bash commands like `anchor keys list`, `anchor build`, `anchor deploy`. No actual code execution occurs.
Hardcoded URLs Are Standard Configuration
Detected hardcoded URL https://api.apr.dev (Solana registry) and localhost IP 127.0.0.1. These are legitimate configuration values for Solana development, not credential exfiltration or malicious network calls.
Path Traversal in Templates Is Legitimate
Path sequences like ../../../target/idl/ are legitimate relative import paths in generated project templates. These are proper relative paths for project structure, not path traversal vulnerabilities.

عوامل الخطر

⚙️ الأوامر الخارجية (3)
🌐 الوصول إلى الشبكة (2)
📁 الوصول إلى نظام الملفات (1)
⚡ يحتوي على سكربتات
لم يتم تسجيل أي مواقع محددة
تم تدقيقه بواسطة: claude

درجة الجودة

38
الهندسة المعمارية
100
قابلية الصيانة
87
المحتوى
23
المجتمع
84
الأمان
91
الامتثال للمواصفات

ماذا يمكنك بناءه

快速啟動新的 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

الأسئلة المتكررة

此技能使用什麼版本?
Anchor v0.32.1、anchor-lang 0.32.1、@coral-xyz/anchor ^0.32.1、@solana/web3.js ^1.87.6、Next.js 14.0.4。
此技能會將合約部署到 Solana 嗎?
不會。此技能只產生專案檔案。使用者必須自行執行 anchor build、anchor deploy 和 anchor test 指令。
包含什麼前端框架?
Next.js 14 搭配 TypeScript、適用於 React 的 Solana 錢包介面,以及用於錢包連接的基本 UI 元件。
我可以自訂產生的專案嗎?
可以。此技能產生的範本可以修改。若要自訂,請使用 reference.md 取得特定程式碼範本。
使用什麼測試框架?
使用 Mocha、Chai 和 ts-mocha 的 Anchor 測試框架進行 TypeScript 智慧合約測試。
我需要安裝 Solana CLI 嗎?
需要。使用者需要安裝 Rust、Solana CLI 1.18+ 和 Anchor CLI 0.32.1 才能使用產生的專案。

تفاصيل المطور

المؤلف

MSzgy

الترخيص

MIT

مرجع

main

بنية الملفات