FS

frankcastleauditor/safe-solana-builder

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

149 stars 品質 53 トレンド 8

frankcastleauditor/safe-solana-builder は [https://github.com/frankcastleauditor/safe-solana-builder.] からインポートされた Agent Skill の候補です

概要

frankcastleauditor/safe-solana-builder は [https://github.com/frankcastleauditor/safe-solana-builder.] からインポートされた Agent Skill の候補です

概要(AI 翻訳)

生産グレード、セキュリティファースト・ソラナプログラムを書くための最初のクロードスキル

ソラナのセキュリティ研究者によって構築された, ソラナの開発者のために — あなたのコードは既に硬化した監査に到着します.

お問い合わせ

これは何ですか?

Safe Solana Builderは、AIコーディングワークフロー(Claude / Cursor)に読み込むことができるセキュリティスキルシステムです。そのため、Frank CastleのSolanaセキュリティナレッジは、単一のコードを記述する前に適用されます。

これはプロンプトではありません。 Claudeを強制するレイヤード参照アーキテクチャです。

  • 適切なフレームワーク(Anchor、Native Rust、またはPinocchio)を選択し、マッチングセキュリティ規則を読み込みます
  • テスト方法(LiteSVMまたはフレームワークのデフォルト)を選択し、一致するテストパターンを読み込みます
  • キーボードに触れる前にプログラムのリスクレベル(低い/ Medium媒体/ ♠ Critical)を評価する
  • CPI、PDA、アカウント検証、算術、トークン-2022など、実際の監査結果から描画されたセキュリティルールのキュレーションセットを適用します。
  • 完全なプロジェクト足場を提供 — だけではなく、 lib.rs
  • 事前識別されたセキュリティエッジケースでテストファイルのスケルトンを生成する
  • 適用されるすべての規則およびすべての既知の制限を文書化するセキュリティチェックリストを出力します

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

🛡️ Safe Solana Builder

The first Claude skill for writing production-grade, security-first Solana programs.

Built by a Solana security researcher, for Solana developers — so your code arrives at audit already hardened.


What Is This?

Safe Solana Builder is a security skill system you can load into AI coding workflows (Claude / Cursor) so Frank Castle’s Solana security knowledge is applied before writing a single line of code.

This is not a prompt. It is a layered reference architecture that forces Claude to:

  • Select the right framework (Anchor, Native Rust, or Pinocchio) and load the matching security ruleset
  • Choose a testing approach (LiteSVM or framework default) and load the matching test patterns
  • Assess the program’s risk level (🟢 Low / 🟡 Medium / 🔴 Critical) before touching the keyboard
  • Apply a curated set of security rules drawn from real audit findings — CPIs, PDAs, account validation, arithmetic, Token-2022, and more
  • Deliver a full project scaffold — not just lib.rs
  • Generate a test file skeleton with security edge cases pre-identified
  • Output a security checklist documenting every rule applied and every known limitation

Every program this skill produces has a first layer of protection baked in before it reaches an auditor.


Why It Exists

Most AI-generated Solana code is a liability.

Missing ownership checks. Non-canonical bumps. Stale data used after CPIs. No duplicate account guards. No checked arithmetic. It compiles, it looks right, and it fails on mainnet.

The Cyfrin team built a skill like this for Solidity. Nobody built one for Solana — until now.


What It Produces

For every program request, the skill outputs:

Output Description
Full project scaffold Anchor.toml, Cargo.toml, proper folder structure — ready to anchor build or cargo build-sbf
lib.rs Complete, compilable program with inline security comments
Test file LiteSVM or framework-default — happy path tests implemented + security edge case tests scaffolded with TODO bodies
security-checklist.md Every rule applied, every assumption made, every known limitation flagged

Skill Structure

safe-solana-builder/
├── SKILL.md                        ← Orchestrator: workflow, risk assessment, output format
├── references/
│   ├── shared-base.md              ← Framework-agnostic rules (PDAs, CPIs, arithmetic, Token-2022...)
│   ├── anchor.md                   ← Anchor-specific: constraints, account types, reload(), close...
│   ├── native-rust.md              ← Native Rust: manual validation sequence, invoke, deserialization...
│   ├── pinocchio.md                ← Pinocchio: zero-copy patterns, bytemuck, wincode, CPI, Shank IDL...
│   └── litesvm.md                  ← LiteSVM: test setup, sysvar control, CU profiling, account injection...
└── examples/
    └── nft-whitelist-mint/
GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add frankcastleauditor/safe-solana-builder
MCP 初心者?mcpskill.org のガイドから始めましょう →