FS

frankcastleauditor/safe-solana-builder

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

149 stars 품질 53 트렌드 8

frankcastleauditor/safe-solana-builder는 [T0]]에서 가져온 에이전트 기술 후보입니다

개요

frankcastleauditor/safe-solana-builder는 [T0]]에서 가져온 에이전트 기술 후보입니다

개요(AI 번역)

** 생산 등급, 보안 우선 Solana 프로그램을 작성하기위한 최초의 Claude 기술. **

Solana 보안 연구자에 의해 구축, Solana 개발자에 대 한 — 그래서 당신의 코드는 이미 강하게 감사에 도착.


이것은 무엇입니까?

Safe Solana Builder는 AI 코딩 워크플로우(Claude / Cursor)에 로드할 수 있는 보안 기술 시스템이므로 Frank Castle의 Solana 보안 지식은 코드의 단일 줄을 작성하기 전에 적용됩니다.

이것은 프롬프트가 아닙니다. Claude를 강제하는 계층화된 참조 아키텍처입니다.

  • 적절한 프레임 워크 (Anchor, Native Rust 또는 Pinocchio)를 선택하고 일치하는 보안 규칙을로드하십시오.
  • 테스트 접근 (LiteSVM 또는 Framework default)를 선택하고 일치하는 테스트 패턴을로드하십시오.
  • 키보드를 터치하기 전에 프로그램의 위험 수준 ( Low Low / Medium Medium / ✓ Critical)을 분류
  • CPI, PDA, 계정 유효성 검사, arithmetic, Token-2022 및 기타
  • 전체 프로젝트 비계를 제공 - 단지 lib.rs]
  • 보안 가장자리 케이스로 테스트 파일 skeleton 생성
  • 적용된 모든 규칙 및 모든 알려진 제한을 문서화하는 보안 체크리스트를 출력

이 페이지는 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 가이드부터 시작하세요 →