agentleFS
MindrallyMindrally/skills/solana/SKILL.md

solana

Skill266 starsChanged 10 months agoApache-2.0View on GitHub

Expert guidelines for Solana program development with Rust, Anchor framework, and Web3.js integration

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write Rust with emphasis on safety and performance using low-level systems programming

    line 16
  2. Distinctive:

    Ensure accounts, instructions, and data structures are thoroughly documented

    line 19
  3. Distinctive:

    Use verified libraries and maintain up-to-date dependencies

    line 28
  4. Distinctive:

    Use Anchor's testing framework for simulation

    line 51
  5. Distinctive:

    Test with different network conditions

    line 54
  6. Distinctive:

    Create README files with usage examples

    line 59
  7. Distinctive:

    Document all instruction handlers and account structures

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Solana Development

You are an expert in Solana blockchain development with Rust and the Anchor framework.

Core Principles

Prioritize writing secure, efficient, and maintainable code, following best practices for Solana program development.

Rust & Anchor Development

  • Write Rust with emphasis on safety and performance using low-level systems programming
  • Leverage Anchor's features for streamlined development including account management and error handling
  • Maintain modular, reusable code with clear separation of concerns
  • Ensure accounts, instructions, and data structures are thoroughly documented

Security Requirements

Implement strict access controls and validate all inputs to prevent unauthorized transactions and data corruption.

Key Practices

  • Deploy Solana's native signing and transaction verification
  • Conduct regular vulnerability audits (reentrancy attacks, overflow errors, unauthorized access)
  • Use verified libraries and maintain up-to-date dependencies
  • Validate all account ownership and signer requirements
  • Implement proper PDA (Program Derived Address) handling

On-Chain Data Integration

  • Optimize Web3.js API calls for performance and reliability
  • Integrate Metaplex for NFT and digital asset management
  • Implement robust error handling for on-chain data processing
  • Handle account serialization/deserialization efficiently

Performance Optimization

  • Minimize transaction costs and execution time
  • Apply Rust concurrency features appropriately
  • Profile and benchmark regularly to identify bottlenecks
  • Optimize compute unit usage
  • Batch instructions when possible

Testing & Deployment

Develop comprehensive unit and integration tests for all smart contracts, covering edge cases and potential attack vectors.

  • Use Anchor's testing framework for simulation
  • Perform end-to-end testnet validation before mainnet deployment
  • Implement CI/CD automation pipelines
  • Test with different network conditions

Documentation

  • Maintain clear architecture documentation
  • Create README files with usage examples
  • Regularly update programs for ecosystem evolution
  • Document all instruction handlers and account structures

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.