smart-contracts

smart-contracts is a skill for Claude Code from stellar/stellar-dev-skill. It costs 151 tokens per session (3,283 once invoked), scanned A, original, Apache-2.0.

A guide to building Stellar smart contracts in Rust. Stellar smart contracts are programs that run on the Stellar blockchain, and Soroban is the name still used by parts of their Rust toolkit.

In plain words
What is it for?
Use it to create, test, review, deploy, or debug Stellar contracts, including tokens, authorization, storage, upgrades, and finance applications.
Why use it?
It explains the project setup and points to guidance for contract behavior, testing, security, and troubleshooting.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the stellar-dev plugin — 8 skills shipped together

Good fit Use it to create, test, review, deploy, or debug Stellar contracts, including tokens, authorization, storage, upgrades, and finance applications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stellar/stellar-dev-skill/smart-contracts
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add stellar/stellar-dev-skill --skill smart-contracts
Clone the repo
git clone --depth 1 https://github.com/stellar/stellar-dev-skill

Made for: Claude Code.

Or install stellar-dev, the plugin that ships this one along with the rest of its 8 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for smart-contracts

README.md
[![agentmods](https://agentmods.dev/badge/skills/stellar/stellar-dev-skill/smart-contracts/github.svg)](https://agentmods.dev/skills/stellar/stellar-dev-skill/smart-contracts)
Your own site
<a href="https://agentmods.dev/skills/stellar/stellar-dev-skill/smart-contracts"><img src="https://agentmods.dev/badge/skills/stellar/stellar-dev-skill/smart-contracts/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for smart-contracts

Your own site · 80×15
<a href="https://agentmods.dev/skills/stellar/stellar-dev-skill/smart-contracts"><img src="https://agentmods.dev/badge/skills/stellar/stellar-dev-skill/smart-contracts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 151 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,283 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00151 $0.03283
Opus 5.5 $0.00060 $0.01313
Sonnet 5.5 $0.00030 $0.00657
Haiku 4.5 $0.00015 $0.00328

Measured 5d ago against content hash b4a109c898a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

smart-contracts scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/smart-contracts/SKILL.md · 276 lines

How it starts

The opening of the file, as written. The whole thing — 276 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Stellar Smart Contracts

Guide for building Stellar smart contracts in Rust. Smart contracts on Stellar were formerly branded "Soroban" — the platform name is retired, but the Rust SDK (soroban-sdk) and several tool names keep the prefix.

This file covers setup and the core workflow. The deep dives live alongside it — read the file that matches the task:

Task File
Storage/TTL, authorization, constructors, cross-contract calls, tokens, events, errors, upgrades, factories, governance/DeFi patterns, fees/resources, troubleshooting development.md
Unit, integration, fuzz, property, fork, and mutation testing testing.md
Security review, vulnerability classes, checklists, audit prep, tooling security.md

When to use this skill

  • Writing a Stellar smart contract in Rust
  • Setting up contract tests (any layer)
  • Reviewing a contract for security issues
  • Architecting upgradeable contracts, factories, custom accounts, or DeFi primitives
  • Debugging a contract-specific error (auth, storage, archival, resource limits)
  • Asset issuance, trustlines, and SAC deployment → ../assets/SKILL.md
  • Frontend/wallets that call your contract → ../dapp/SKILL.md
  • Chain data queries (RPC/Horizon) → ../data/SKILL.md
  • ZK verification (BLS12-381, Groth16, Circom/Noir/RISC Zero) → ../zk-proofs/SKILL.md
  • SEP/CAP standards and ecosystem links → ../standards/SKILL.md

Versions

This skill was written against protocol 27 (soroban-sdk v27, rs-soroban-env v27, stellar-cli v27). Version numbers in examples are illustrative — resolve the current ones from these sources rather than trusting any doc:

  • soroban-sdk major version tracks the protocol version (SDK 27 ↔ protocol 27). This rule outlives any specific release.
  • Latest SDK release: crates.io/crates/soroban-sdk (or cargo add soroban-sdk, which resolves it). Pre-releases (-rc.x) exist only during a protocol rollout and must be pinned with the exact version string; GitHub releases lists them with changelogs.
  • Networks upgrade by validator vote, testnet before mainnet — pin the SDK major matching the network you deploy to. Live protocol version: RPC getVersionInfo or Stellar Lab.
  • Numeric network limits quoted here are mainnet settings at time of writing; they change by vote — Stellar Lab's Network Limits page and stellar network settings --network mainnet show the live values.

Read the full file on GitHub · 276 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +53 lines b4a109c898a1
  2. 1mo ago Changed · +1 lines 205faa248dd6
  3. 1mo ago First seen · 222 lines · 151 tokens per session scan A 2561ecf13609

Subscribe to this mod's changes

smart-contracts is a skill published in the GitHub repository stellar/stellar-dev-skill (54 stars, last pushed 3d ago), licensed Apache-2.0. It adds 151 tokens to every session and 3,283 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.