agentleFS
rylsherdamz-rgbrylsherdamz-rgb/stellar-forge/SKILL.md

stellar-forge

Skill17 starsChanged 2 months agoMITView on GitHub

Eval-driven coding harness for building production Stellar dApps. Routes tasks to 6 specialist agents, verifies output with structured evals, steers on failure, e2e-tests with Stellar Agentic Kit hooks, and knowledge-graphs every project. Use when building any Stellar app — tokens, DeFi, NFTs, payment APIs, or full dApps with smart contracts + frontend + backend.

  • Reads credentials
  • Installs packages

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 8 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After agents complete, evals check every output.

    line 99
  2. Distinctive:

    Start local Stellar network

    line 106
  3. Distinctive:

    Run Playwright e2e tests

    line 108
  4. Distinctive:

    Run Stellar Agentic Kit payment tests

    line 109
  5. Very specific:

    All blockchain queries use useStellarData() — never raw RPC or curl.

    line 125
  6. Very specific:

    All blockchain queries: must use useStellarData() — no raw RPC, no curl

    line 157
  7. Very specific:

    State-changing calls: use useContract().write() — handles sim + assemble + sign + submit

    line 159
  8. Distinctive:

    Every output: must pass relevant evals before reporting done

    line 160
  9. Very specific:

    Do NOT use raw fetch() or axios to call Stellar RPC endpoints directly

    line 165
  10. Distinctive:

    Do NOT skip eval verification — always run evals against agent output

    line 166
  11. Very specific:

    Do NOT hardcode secrets — use .env.local (frontend) or .env (backend)

    line 167
  12. Distinctive:

    Do NOT write monolithic agents — route to specialists for each concern

    line 168
  13. Distinctive:

    Do NOT skip the graphify step — it builds the project knowledge base

    line 169
  14. Very specific:

    Rule: Use MCP tools during development/debugging, useStellarData() in production frontend code.

    line 184

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Stellar Agentic Framework

Build production Stellar dApps with an eval-driven, multi-agent coding harness.

When to Use

  • Building a Stellar smart contract (token, DeFi, NFT, zk)
  • Scaffolding a full dApp with wallet connect + contract interaction
  • Setting up x402 payment middleware for a paid API
  • Creating a Stellar frontend with Stellar Wallets Kit
  • Writing backend services that query Stellar chain data
  • Need eval-driven quality gates for Stellar development

How It Works

The harness routes your request to 6 specialist agents running in parallel, verifies every output against structured evals, steers on failure (max 3 retries), and produces an eval report.

User Request → Route to Agents → Parallel Build → Verify with Evals → Report
                                  ┌──────────────┐
                                  │ @contracts   │
                                  │ @frontend    │
                                  │ @backend     │
                                  │ @payments    │
                                  │ @ops         │
                                  │ @zk          │
                                  └──────────────┘

Setup

Install the Framework

npx create-stellar-agentic my-dapp
cd my-dapp
npm install

This scaffolds a full project with contracts, frontend, and backend templates.

Or Install as a Skill Only

npx create-stellar-agentic --skill-only .

Or from the registry:

npx skills add rylsherdamz-rgb/stellar-forge

Workflow

Phase 1 — Intent Capture

Describe what you're building. The harness maps keywords to eval templates and writes a decision record.

RequestEvals Used
"Build a token contract"contract + asset
"DeFi lending platform"contract + backend
"Paid API with x402"agentic-payments
"NFT marketplace"contract + frontend
"Full dApp"all evals

Phase 2 — Plan & Spawn Agents

The kernel first plans the work graph (nodes, edges, waves, file ownership — written to data/graphs/<task>.json), then routes sub-tasks to specialist agents in parallel waves — every independent agent of a wave is spawned in one batch. Each agent receives your intent, eval criteria, owned paths, and interface contract.

See references/agents.md for the full agent registry and references/work-graph.md for the parallel execution protocol.

Phase 3 — Verify & Steer

After agents complete, evals check every output. Failed evals trigger corrective retries (max 3).

Evals cover: contract compilation, TypeScript types, wallet connect, contract read/write, server startup, x402 payment flow, and graph health.

See references/evals.md for full criteria.

Phase 4 — E2E Test

  1. Start local Stellar network
  2. Deploy contracts
  3. Run Playwright e2e tests
  4. Run Stellar Agentic Kit payment tests

Phase 5 — Report

STELLAR CODING HARNESS :: EVAL REPORT
Project: <name>
CONTRACT EVALS:     X/Y passed
FRONTEND EVALS:     X/Y passed
BACKEND EVALS:      X/Y passed
PAYMENT EVALS:      X/Y passed
E2E EVALS:          X/Y passed
Overall:            SHIP IT / NEEDS WORK

Agentic Kit — Blockchain Data Queries

All blockchain queries use useStellarData() — never raw RPC or curl.

import { useWallet } from "@/providers/wallet-provider";
import { useContract } from "@/hooks/use-contract";

function MyComponent({ contractId }: { contractId: string }) {
  const { address, getBalances } = useWallet();
  const { read, write } = useContract(contractId);
  // read() = simulation only, no fees
  // write() = full sign + submit + confirm
}

For the complete hook API, see references/agentic-kit.md.

Examples

Input

"Create a token contract with a React frontend to display balances"

Output

The harness spawns @stellar-contracts (builds SEP-41 token) and @stellar-frontend (creates ConnectButton + balance viewer using useStellarData().getBalances), verifies both against evals, and produces an eval report.

Input

"Add x402 payment to my Express API"

Output

The harness spawns @stellar-payments which adds x402Middleware from templates/backend/src/middleware/x402.ts, configures the OZ channel, and verifies the payment flow works.

Strict Rules

  • All blockchain queries must use useStellarData() — no raw RPC, no curl
  • Read-only contract state uses useContract().read() — simulation only, zero fees
  • State-changing calls use useContract().write() — handles sim + assemble + sign + submit
  • Every output must pass relevant evals before reporting done
  • All decisions logged to data/decisions/ in ADR format

Avoid

  • Do NOT use raw fetch() or axios to call Stellar RPC endpoints directly
  • Do NOT skip eval verification — always run evals against agent output
  • Do NOT hardcode secrets — use .env.local (frontend) or .env (backend)
  • Do NOT write monolithic agents — route to specialists for each concern
  • Do NOT skip the graphify step — it builds the project knowledge base

Slash Commands

MCP Tools

Claude has direct access to the Stellar blockchain, filesystem, GitHub, and Playwright through MCP servers configured in .mcp.json.

ServerToolsUse For
stellar-rpcget_account, get_contract_data, simulate_transaction, send_transaction, get_eventsChain queries during development, debugging
filesystemread_file, write_file, list_directory, search_filesReading/writing project files
githubcreate_or_update_file, search_repos, create_pull_requestRepository management, commits, PRs
playwrightbrowser_navigate, browser_click, browser_type, browser_screenshotE2E testing of Stellar dApps

Rule: Use MCP tools during development/debugging, useStellarData() in production frontend code. See skills/stellar-mcp/SKILL.md for full details.

Slash Commands

Reference Files

FileContents
references/agents.mdFull agent registry with skills and memory scope
references/evals.mdAll 5 eval definitions with pass/fail criteria
references/agentic-kit.mdComplete hook API reference
references/templates.mdTemplate file index and purpose
agents/*.mdIndividual agent instructions (loaded by kernel)
evals/*.mdIndividual eval criteria (loaded by verifier)
templates/Source code templates for code generation
.mcp.jsonMCP server configuration (Stellar RPC, filesystem, GitHub, Playwright)
skills/stellar-mcp/SKILL.mdMCP tool usage guide and patterns

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.