smart-contracts

Develop, test, and audit Stellar smart contracts written in Rust.

4|3|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/Trustless-Work/trustlesswork-indexer-go --skill smart-contracts-trustless-work
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smart-contracts
Source: https://github.com/Trustless-Work/trustlesswork-indexer-go/tree/main/.claude/skills/smart-contracts
Command: npx skills add https://github.com/Trustless-Work/trustlesswork-indexer-go --skill smart-contracts-trustless-work

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill streamlines the complex lifecycle of Stellar smart contract development, providing a unified workflow for writing, testing, and securing Rust-based contracts while managing platform-specific constraints like storage TTL and host-mediated authorization.

Core Features & Use Cases

  • Development Workflow: Provides patterns for storage management, cross-contract calls, and custom account implementation.
  • Security & Testing: Includes vulnerability checklists, audit preparation, and support for unit, fuzz, and fork testing.
  • Use Case: Use this skill when architecting a new DeFi primitive or upgrading an existing contract to ensure compliance with protocol-level resource limits and security best practices.

Quick Start

Use the smart-contracts skill to generate a new contract project and verify the security of your current implementation.

Frequently Asked Questions about smart-contracts

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

FAQPage Schema
How do I manage storage TTL when building Stellar smart contracts in Rust?

To manage storage TTL in Stellar smart contracts, you use specific development patterns that handle storage management and protocol-level resource limits. This ensures your Rust contracts maintain valid state persistence.

How do I construct an authorization tree for a Soroban smart contract?

Constructing an authorization tree for a Soroban smart contract involves using host-mediated authorization patterns. This mechanism secures cross-contract calls and custom account implementations within your Rust code.

What is the best way to run fuzz and fork tests for Stellar smart contracts?

The best way to run fuzz and fork tests for Stellar smart contracts is using an integrated testing harness. This approach validates contract behavior under edge cases and replicates mainnet conditions.

Can I implement cross-contract integration and custom accounts in Soroban?

Yes, you can implement cross-contract integration and custom accounts in Soroban. The development workflow supports complex task execution including custom account implementation and secure cross-contract calls.

How do I prepare a Rust smart contract for a security audit on Stellar?

To prepare a Rust smart contract for a security audit on Stellar, you apply integrated vulnerability checklists and audit preparation patterns. This ensures compliance with protocol-level security standards.