soroban

Develop and test Soroban smart contracts for the Stellar network in Rust.

3|Updated Jun 23, 2026
One-click install
npx skills add https://github.com/WritzProtocol/writz --skill soroban-writzprotocol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: soroban
Source: https://github.com/WritzProtocol/writz/tree/main/.agents/skills/soroban
Command: npx skills add https://github.com/WritzProtocol/writz --skill soroban-writzprotocol

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires soroban-sdk, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to Soroban smart contract development, addressing the challenges of writing, testing, securing, and deploying contracts on the Stellar network.

Core Features & Use Cases

  • Project Setup and Structure: Step-by-step instructions for setting up a new project and understanding contract structure.
  • Storage Types: Explains the different storage types available in Soroban and when to use each.
  • Authorization and Security: Best practices for implementing secure authorization and avoiding common security pitfalls.
  • Testing Strategies: Detailed strategies for unit testing, integration testing, and advanced testing techniques like fuzz testing.
  • Building and Deploying: Guidance on building optimized WASM files, deploying contracts, and invoking functions.

Quick Start

Use the soroban skill to get started with writing your first Soroban contract by running the following command: stellar contract init my-contract.

Frequently Asked Questions about soroban

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I develop Soroban smart contracts for the Stellar network?

Soroban smart contract development on the Stellar network involves writing contracts in Rust, utilizing the soroban-sdk, and following structured guides for project setup, security patterns, and deployment workflows. It provides comprehensive instructions for building optimized WASM files and invoking functions.

How do I set up a new Soroban contract project?

To set up a new Soroban contract project, run the command `stellar contract init my-contract` to initialize the structure. This process establishes the foundational project directory and configures the necessary environment for writing and testing contracts in Rust.

What testing strategies should I use for Soroban smart contracts?

Testing strategies for Soroban smart contracts include unit testing, integration testing, and advanced techniques like fuzz testing. These frameworks ensure contract reliability and help validate authorization logic and storage type behavior before deployment on the Stellar network.

How do I implement secure authorization in Soroban contracts?

Implementing secure authorization in Soroban contracts requires following specific best practices to avoid common security pitfalls. The Skill provides detailed guidance on establishing secure authorization patterns and integrating them properly with Stellar's architecture.

What storage types are available in Soroban and when should I use them?

Soroban offers different storage types for smart contracts, each suited for specific data persistence needs. Understanding when to use each storage type is crucial for optimizing contract performance and managing state effectively on the Stellar network.

Do I need Rust and the Soroban SDK to build Stellar smart contracts?

Yes, building Stellar smart contracts with Soroban requires familiarity with Rust and the Soroban SDK. This Skill depends on the soroban-sdk and assumes you understand Stellar's architecture to effectively develop, test, and deploy contracts.