Eth To Sol Skill — Security skill for Claude Code
AI skill for converting existing Ethereum contracts into Solana programs, while benefitting from Solana architecture and security.
How to install Eth To Sol Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open solana-foundation/eth-to-sol-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Eth To Sol Skill does
AI skill for converting existing Ethereum contracts into Solana programs, while benefitting from Solana architecture and security.
Alternatives in Security
- FastAPI Review — Review a FastAPI application for architecture, async correctness, dependency injection, Pydantic schemas, secu 243.5k ★
- Query Token Audit — Audit token security to detect scams, honeypots, and malicious contracts across BSC, Base, Solana, and Ethereu 483 ★
- Bountyforge — All-round bug bounty skill for Claude Code parallelized agents for smart contract audits (EVM, Move, Solana, T 399 ★
README
eth-to-sol
A Claude skill that ports Ethereum/Solidity contracts to production-grade Solana programs and teaches the developer what changed and why.
What it does
Given a Solidity contract, the skill produces:
- A faithful Anchor port — semantically identical, deliberately un-Solana.
- A Solana-native refactor — restructured around SPL programs, PDAs, the account model, and Sealevel parallelism. Production-ready.
- A structured diff between the two ports.
- An explanation log — a per-change record of what / why / benefit / tradeoff. This is the teaching artifact.
The two-pass structure is the point. The faithful port is the baseline that makes the refactor's value legible. A developer who reads only the optimized version learns what production Solana looks like; a developer who reads both learns *why*.
Invoking the skill
Inside Claude Code with this directory available as a skill:
Run the eth-to-sol skill on this contract:
The skill reads `SKILL.md`, traverses its decision tree to load only the sub-files relevant to the input, runs the pre-flight checklist, and emits the four artifacts.
For the reference example, the inputs and outputs are pre-built under `examples/token-fundraiser/` (Solidity ERC-20 crowdfund → canonical `tokens/token-fundraiser` shape from solana-developers/program-examples).
Directory layout
eth-to-sol/
├── README.md # this file
├── SKILL.md # router — loaded on every invocation; lean
├── translation/ # mechanical Solidity → Anchor mapping
│ ├── mental-model.md
│ ├── type-mapping.md
│ ├── pattern-mapping.md
│ └── stdlib-mapping.md
├── optimization/ # Solana-native restructuring guidance
│ ├── account-model.md
│ ├── pdas.md
│ ├── parallelism.md
│ ├── compute-budget.md
│ ├── transactions-and-commitment.md
│ ├── rent-and-size.md
│ └── program-splitting.md
├── security/
Related Skills
Audit Solana
Security audit for Solana programs (Anchor/native)
Setup CI CD
Setup CI/CD pipeline with automated security checks for Solana programs
Deep
Execute the current task using DEEP mode for architecture, security, data, infrastructure, public contracts, o
Smart Contract Security Review
Run security review on Scalus smart contracts at specified path
Audit Infra
Infrastructure-first security audit — secrets, supply chain, CI/CD, LLM/skill security, OWASP, STRIDE. Complem
Bug Bounty Hunter
All-round bug bounty skill for Claude Code — parallelized agents for smart contract audits (EVM, Move, Solana,
Related Agents
Solana QA Engineer
Testing and quality assurance specialist for Solana programs. Owns all testing frameworks (Mollusk, LiteSVM, S
Cpi Auditor
Read-only CPI safety auditor for Solana Rust programs. Performs structured checklist-driven review of CPI site
Business Process Analyst
PROACTIVELY USE this agent when you need to analyze existing business processes, identify improvement opportun