data

data is a skill for Claude Code from rylsherdamz-rgb/stellar-forge. It costs 41 tokens per session (575 once invoked), scanned A, original, MIT.

A guide for reading data from the Stellar blockchain, a network used for digital assets and smart contracts. It covers the Stellar SDK, Stellar RPC, and Horizon, an older REST service for accessing blockchain data.

In plain words
What is it for?
Use it when building frontend or backend features that query Stellar accounts, assets, smart contracts, contract events, or transaction status.
Why use it?
It provides a consistent way to retrieve balances, contract storage, events, and transaction results. It also avoids ad-hoc requests that may not fit the project's expected data-access pattern.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the stellar-forge plugin — 19 skills, 6 commands, 6 agents, 4 MCP servers shipped together

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.

agentmods
npx agentmods add skills/rylsherdamz-rgb/stellar-forge/data
Any agent
npx skills add rylsherdamz-rgb/stellar-forge --skill data
Clone the repo
git clone --depth 1 https://github.com/rylsherdamz-rgb/stellar-forge

Made for: Claude Code.

Or install stellar-forge, the plugin that ships this one along with the rest of its 19 skills, 6 commands, 6 agents, 4 MCP servers.

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 data

README.md
[![agentmods](https://agentmods.dev/badge/skills/rylsherdamz-rgb/stellar-forge/data.svg)](https://agentmods.dev/skills/rylsherdamz-rgb/stellar-forge/data)
Your own site
<a href="https://agentmods.dev/skills/rylsherdamz-rgb/stellar-forge/data"><img src="https://agentmods.dev/badge/skills/rylsherdamz-rgb/stellar-forge/data.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 575 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.00041 $0.00575
Opus 5 $0.00020 $0.00287
Sonnet 5 $0.00008 $0.00115
Haiku 4.5 $0.00004 $0.00057

Measured 6d ago against content hash 0dbd04b1a3ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

data scanned grade A with 1 finding 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 6d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (templates/src/index.ts, templates/src/services/stellar.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

All blockchain queries use `useStellarData()` (frontend) or Stellar SDK / RPC directly (backend). Never raw curl or manual RPC calls.
packages/create-stellar-agentic/skills/data/SKILL.md · 58 lines

How it starts

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

Data — Stellar Chain Queries

All blockchain queries use useStellarData() (frontend) or Stellar SDK / RPC directly (backend). Never raw curl or manual RPC calls.

Source Files (published with this skill)

File Contents
templates/src/index.ts Express server — balance endpoint, contract query endpoint, CORS
templates/src/services/stellar.ts RPC client — getBalances, queryContract, getContractData, getEvents, getTransaction

Agentic Kit (Frontend)

Import from @/hooks/use-stellar-data:

const { getBalances, queryContract, getContractData, getEvents, getTransaction, loading, error } = useStellarData();
Method Returns Description
getBalances(address) {asset, balance}[] All trustline balances + native XLM
queryContract(contractId, method, args[]) ScVal | null Read-only contract query (simulation)
getContractData(contractId, key) ScVal | null Raw contract storage entry
getEvents(contractId, limit?) Event[] Contract events (newest first)
getTransaction(hash) TxResponse | null Check tx status + return value

Backend / API

Use the Stellar SDK directly:

import { rpc } from "@/lib/stellar-config";
const account = await rpc.getAccount(address);
const sim = await rpc.simulateTransaction(tx);
const sent = await rpc.sendTransaction(signedTx);
const events = await rpc.getEvents({ contractIds: [contractId] });

Raw RPC (if needed)

  • rpc.getLedgerEntries(keys) — raw ledger data
  • rpc.getNetwork() — network info
  • rpc.getLatestLedger() — current ledger seq
  • Horizon: GET /accounts/{id}, GET /claimable_balances, GET /payments

Strict Rules

  1. Frontend: always use useStellarData() — never raw RPC or curl
  2. Read-only contract state: use useContract().read() (simulation, no tx)
  3. State-changing contract calls: use useContract().write() (sign + submit)
  4. Backend: use rpc.* methods directly for server-side queries

Read the full file on GitHub · 58 lines

Files

What ships with it

4 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. 6d ago First seen · 58 lines · 41 tokens per session scan A 0dbd04b1a3ca

Subscribe to this mod's changes

data is a skill published in the GitHub repository rylsherdamz-rgb/stellar-forge (17 stars, last pushed 13d ago), licensed MIT. It adds 41 tokens to every session and 575 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

nirium-agentic-payments

Scaffold and run an x402 paid API server on Stellar with open-source client libraries: charge AI agents per API call with x402Serve(), a function from the nirium SDK that runs entirely on your own server, scaffold that server with nirium-cli in one command, and separately read live protocol data through the nirium-mcp…

nirium-protocol/nirium-sdk · 128 tokens

ethereum-development

Production-grade Ethereum/EVM development workflow for smart contracts, dApps, transactions, clients, gas optimization, testing, security review, deployment, verification, monitoring, and incident response across Foundry, Hardhat, Solidity, TypeScript, viem, ethers, wagmi, and common EVM networks.

dirtybits/agent-skills · 64 tokens

rail402-cli

Discover and pay for x402 APIs on Stellar from the command line. Use when an agent needs to find a paid API in the x402 Bazaar, pay for an API call with USDC on Stellar testnet, fund a testnet wallet, or look up an x402 settlement on the explorer — via the rail402 CLI.

tolgayayci/rail402 · 72 tokens

x402-stellar-payments

Use when asked to "pay for" a URL, add a "paid endpoint", handle HTTP 402, or work with x402 payments on Stellar.

CodeStrux/x402-stellar-kit · 38 tokens

mcp

Use when an AI agent or MCP client needs to discover, rank, inspect evidence limits, and inspect self-declared service endpoint candidates for Stellar 8004 agents at runtime. Documents how to register the read-only, keyless stellar-agent-search server and use its tools, resources, and prompts; reputation values remain…

berkingurcan/stellar-agent-search · 81 tokens

system-prompts

Write system prompts, tool docs, and agent definitions. Project tag conventions + RFC 2119 keywords + dense compression. Use when authoring or editing any prompt the model reads.

can1357/oh-my-pi · 40 tokens