Stellar Development Skill (Soroban-first)
What this Skill is for
Use this Skill when the user asks for:
- Soroban smart contract development (Rust)
- Stellar dApp frontend work (React / Next.js / Node.js)
- Wallet connection + signing flows (Freighter, etc.)
- Transaction building / sending / confirmation
- Stellar Asset issuance and management
- Client SDK usage (JavaScript, Python, Go, Rust)
- Zero-knowledge proof verification (where supported by target network/protocol)
- Privacy-preserving applications (privacy pools, confidential tokens)
- Local testing and deployment
- Security hardening and audit-style reviews
What this Skill is NOT for
- Bitcoin, Ethereum, Solana, or other non-Stellar blockchain development
- Stellar node/validator operation (see validators docs)
- General Rust programming unrelated to Soroban
- Stellar protocol governance or CAP authoring
Default stack decisions (opinionated)
1. Smart Contracts: Soroban (Rust)
- Use Soroban SDK (
soroban-sdk crate) for all smart contract development
- Contracts compile to WebAssembly (WASM)
- Use
#![no_std] - standard library not available
- 64KB contract size limit - use release optimizations
- Prefer Stellar Assets over custom token contracts when possible
2. Client SDK: stellar-sdk (JavaScript) first
- Use
@stellar/stellar-sdk for browser and Node.js applications
- Supports both Stellar RPC and legacy Horizon API
- Full transaction building, signing, and submission
- Soroban contract deployment and invocation
3. API Access: Stellar RPC first (Horizon legacy-focused)
- Prefer Stellar RPC for new projects (JSON-RPC, real-time state)
- Horizon API remains available for legacy compatibility and historical-query workflows
- RPC: 7-day history for most methods;
getLedgers queries back to genesis (Infinite Scroll)
- Use Hubble/Galexie for comprehensive historical data beyond RPC
4. Token Strategy: Stellar Assets first
- Prefer Stellar Assets (classic issuance + trustlines) for fungible tokens
- Built-in ecosystem support (wallets, exchanges, anchors)
- Stellar Asset Contracts (SAC) provide Soroban interoperability
- Use custom Soroban tokens only for complex logic requirements
5. Testing
- Local: Use Stellar Quickstart Docker for local network
- Testnet: Use Testnet with Friendbot for funding
- Unit tests: Compile to native for fast iteration
- Integration tests: Deploy to local/testnet
6. Wallet Integration
- Freighter is the primary browser wallet
- Use Stellar Wallets Kit for multi-wallet support
- Wallet Standard for consistent connection patterns
7. Freshness policy
- Verify volatile facts (protocol support, RPC endpoints, CAP/SEP status, SDK API changes) against official docs before asserting them as current.
Operating procedure (how to execute tasks)
1. Classify the task layer
- Smart contract layer (Soroban/Rust)
- Client SDK/scripts layer (JS/Python/Go)
- Frontend/wallet layer
- Asset management layer (issuance, trustlines)
- Testing/CI layer
- Infrastructure (RPC/Horizon/indexing)
Quick routing
- Need custom on-chain logic? → contracts-soroban.md
- Building a frontend/dApp? → frontend-stellar-sdk.md
- Issuing or managing tokens? → stellar-assets.md
- Zero-knowledge proofs or privacy? → zk-proofs.md
- Setting up tests/CI? → testing.md
- Querying chain data or indexing? → api-rpc-horizon.md (also see Data Docs)
- Security review? → security.md
- Hit an error? → common-pitfalls.md
- Need upgrade/factory/governance/DeFi architecture patterns? → advanced-patterns.md
- Need SEP/CAP guidance and standards links? → standards-reference.md
2. Pick the right building blocks
- Contracts: Soroban Rust SDK + Stellar CLI
- Frontend: stellar-sdk (JS) + Freighter/Wallets Kit
- Backend: stellar-sdk (JS/Python/Go) + RPC
- Assets: Classic operations or SAC for Soroban interop
- Testing: Quickstart (local) or Testnet
3. Implement with Stellar-specific correctness
Always be explicit about:
- Network passphrase (Mainnet vs Testnet vs local)
- Source account + sequence number
- Fee + resource limits (for Soroban)
- Authorization requirements
- Trustline status for assets
- Contract storage types (temporary vs persistent vs instance)
4. Add tests
- Unit tests: Native compilation with
#[test]
- Integration tests: Local Quickstart or Testnet
- Contract tests: Use
Env from soroban-sdk
- Frontend tests: Mock wallet/RPC interactions
5. Deliverables expectations
When you implement changes, provide:
- Exact files changed + diffs
- Commands to install/build/test/deploy
- Network configuration (passphrase, RPC endpoint)
- Risk notes for signing/fees/storage/authorization
Progressive disclosure (read when needed)
- Smart contracts: contracts-soroban.md
- Frontend + wallets: frontend-stellar-sdk.md
- Testing strategy: testing.md
- Stellar Assets: stellar-assets.md
- Zero-knowledge proofs: zk-proofs.md
- API access (RPC/Horizon): api-rpc-horizon.md
- Security checklist: security.md
- Common pitfalls: common-pitfalls.md
- Advanced architecture patterns: advanced-patterns.md
- SEP/CAP standards map: standards-reference.md
- Ecosystem projects: ecosystem.md
- Reference links: resources.md
Keywords
stellar, soroban, xlm, smart contracts, rust, wasm, webassembly, rpc, horizon,
freighter, stellar-sdk, soroban-sdk, stellar-cli, trustline, anchor, sep, passkey,
smart wallet, sac, stellar asset contract, defi, token, nft, scaffold stellar, constructor, upgrade, factory, governance, standards,
zero-knowledge, zk, zk-snark, groth16, bn254, poseidon, pairing, privacy, confidential, noir, risc zero, privacy pool, merkle tree
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: stellar-dev3description: End-to-end Stellar development playbook. Covers Soroban smart contracts (Rust SDK), Stellar CLI, JavaScript/Python/Go SDKs for client apps, Stellar RPC (preferred) and Horizon API (legacy), Stellar Assets vs Soroban tokens (SAC bridge), wallet integration (Freighter, Stellar Wallets Kit), smart accounts with passkeys, status-sensitive zero-knowledge proof patterns, testing strategies, security patterns, and common pitfalls. Optimized for payments, asset tokenization, DeFi, privacy-aware applications, and financial applications. Use when building on Stellar, Soroban, or working with XLM, Stellar Assets, trustlines, anchors, SEPs, ZK proofs, or the Stellar RPC/Horizon APIs. Use when this capability is needed.4---56# Stellar Development Skill (Soroban-first)78## What this Skill is for910Use this Skill when the user asks for:1112- Soroban smart contract development (Rust)13- Stellar dApp frontend work (React / Next.js / Node.js)14- Wallet connection + signing flows (Freighter, etc.)15- Transaction building / sending / confirmation16- Stellar Asset issuance and management17- Client SDK usage (JavaScript, Python, Go, Rust)18- Zero-knowledge proof verification (where supported by target network/protocol)19- Privacy-preserving applications (privacy pools, confidential tokens)20- Local testing and deployment21- Security hardening and audit-style reviews2223## What this Skill is NOT for2425- Bitcoin, Ethereum, Solana, or other non-Stellar blockchain development26- Stellar node/validator operation (see [validators docs](https://developers.stellar.org/docs/validators))27- General Rust programming unrelated to Soroban28- Stellar protocol governance or CAP authoring2930## Default stack decisions (opinionated)3132### 1. Smart Contracts: Soroban (Rust)3334- Use Soroban SDK (`soroban-sdk` crate) for all smart contract development35- Contracts compile to WebAssembly (WASM)36- Use `#![no_std]` - standard library not available37- 64KB contract size limit - use release optimizations38- Prefer Stellar Assets over custom token contracts when possible3940### 2. Client SDK: stellar-sdk (JavaScript) first4142- Use `@stellar/stellar-sdk` for browser and Node.js applications43- Supports both Stellar RPC and legacy Horizon API44- Full transaction building, signing, and submission45- Soroban contract deployment and invocation4647### 3. API Access: Stellar RPC first (Horizon legacy-focused)4849- **Prefer Stellar RPC** for new projects (JSON-RPC, real-time state)50- **Horizon API** remains available for legacy compatibility and historical-query workflows51- RPC: 7-day history for most methods; `getLedgers` queries back to genesis (Infinite Scroll)52- Use Hubble/Galexie for comprehensive historical data beyond RPC5354### 4. Token Strategy: Stellar Assets first5556- **Prefer Stellar Assets** (classic issuance + trustlines) for fungible tokens57- Built-in ecosystem support (wallets, exchanges, anchors)58- Stellar Asset Contracts (SAC) provide Soroban interoperability59- Use custom Soroban tokens only for complex logic requirements6061### 5. Testing6263- **Local**: Use Stellar Quickstart Docker for local network64- **Testnet**: Use Testnet with Friendbot for funding65- **Unit tests**: Compile to native for fast iteration66- **Integration tests**: Deploy to local/testnet6768### 6. Wallet Integration6970- **Freighter** is the primary browser wallet71- Use Stellar Wallets Kit for multi-wallet support72- Wallet Standard for consistent connection patterns7374### 7. Freshness policy7576- Verify volatile facts (protocol support, RPC endpoints, CAP/SEP status, SDK API changes) against official docs before asserting them as current.7778## Operating procedure (how to execute tasks)7980### 1. Classify the task layer8182- Smart contract layer (Soroban/Rust)83- Client SDK/scripts layer (JS/Python/Go)84- Frontend/wallet layer85- Asset management layer (issuance, trustlines)86- Testing/CI layer87- Infrastructure (RPC/Horizon/indexing)8889### Quick routing9091- Need custom on-chain logic? → [contracts-soroban.md](contracts-soroban.md)92- Building a frontend/dApp? → [frontend-stellar-sdk.md](frontend-stellar-sdk.md)93- Issuing or managing tokens? → [stellar-assets.md](stellar-assets.md)94- Zero-knowledge proofs or privacy? → [zk-proofs.md](zk-proofs.md)95- Setting up tests/CI? → [testing.md](testing.md)96- Querying chain data or indexing? → [api-rpc-horizon.md](api-rpc-horizon.md) (also see [Data Docs](https://developers.stellar.org/docs/data))97- Security review? → [security.md](security.md)98- Hit an error? → [common-pitfalls.md](common-pitfalls.md)99- Need upgrade/factory/governance/DeFi architecture patterns? → [advanced-patterns.md](advanced-patterns.md)100- Need SEP/CAP guidance and standards links? → [standards-reference.md](standards-reference.md)101102### 2. Pick the right building blocks103104- Contracts: Soroban Rust SDK + Stellar CLI105- Frontend: stellar-sdk (JS) + Freighter/Wallets Kit106- Backend: stellar-sdk (JS/Python/Go) + RPC107- Assets: Classic operations or SAC for Soroban interop108- Testing: Quickstart (local) or Testnet109110### 3. Implement with Stellar-specific correctness111112Always be explicit about:113114- Network passphrase (Mainnet vs Testnet vs local)115- Source account + sequence number116- Fee + resource limits (for Soroban)117- Authorization requirements118- Trustline status for assets119- Contract storage types (temporary vs persistent vs instance)120121### 4. Add tests122123- Unit tests: Native compilation with `#[test]`124- Integration tests: Local Quickstart or Testnet125- Contract tests: Use `Env` from soroban-sdk126- Frontend tests: Mock wallet/RPC interactions127128### 5. Deliverables expectations129130When you implement changes, provide:131132- Exact files changed + diffs133- Commands to install/build/test/deploy134- Network configuration (passphrase, RPC endpoint)135- Risk notes for signing/fees/storage/authorization136137## Progressive disclosure (read when needed)138139- Smart contracts: [contracts-soroban.md](contracts-soroban.md)140- Frontend + wallets: [frontend-stellar-sdk.md](frontend-stellar-sdk.md)141- Testing strategy: [testing.md](testing.md)142- Stellar Assets: [stellar-assets.md](stellar-assets.md)143- Zero-knowledge proofs: [zk-proofs.md](zk-proofs.md)144- API access (RPC/Horizon): [api-rpc-horizon.md](api-rpc-horizon.md)145- Security checklist: [security.md](security.md)146- Common pitfalls: [common-pitfalls.md](common-pitfalls.md)147- Advanced architecture patterns: [advanced-patterns.md](advanced-patterns.md)148- SEP/CAP standards map: [standards-reference.md](standards-reference.md)149- Ecosystem projects: [ecosystem.md](ecosystem.md)150- Reference links: [resources.md](resources.md)151152## Keywords153154stellar, soroban, xlm, smart contracts, rust, wasm, webassembly, rpc, horizon,155freighter, stellar-sdk, soroban-sdk, stellar-cli, trustline, anchor, sep, passkey,156smart wallet, sac, stellar asset contract, defi, token, nft, scaffold stellar, constructor, upgrade, factory, governance, standards,157zero-knowledge, zk, zk-snark, groth16, bn254, poseidon, pairing, privacy, confidential, noir, risc zero, privacy pool, merkle tree158159---160> Converted and distributed by [TomeVault](https://tomevault.io/claim/kindfi-org) — claim your Tome and manage your conversions.161<!-- tomevault:4.0:skill_md:2026-04-11 -->