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
In this repository32 other files it gives its agents.
- references/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- banner-designSkill
- brandkitSkill
- brandSkill
- designSkill
- design-systemSkill
- design-taste-frontendSkill
- design-taste-frontend-v1Skill
- full-output-enforcementSkill
- gpt-tasteSkill
- high-end-visual-designSkill
- imagegen-frontend-mobileSkill
- imagegen-frontend-webSkill
- image-to-codeSkill
- industrial-brutalist-uiSkill
- minimalist-uiSkill
- redesign-existing-projectsSkill
- slidesSkill
- stitch-design-tasteSkill
- ui-stylingSkill
- ui-ux-pro-maxSkill
- agentic-paymentsSkill
- assetsSkill
- dappSkill
- dataSkill
- frontend-designSkill
- graphifySkill
- smart-contractsSkill
- standardsSkill
- stellar-mcpSkill
- zk-proofsSkill
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
- Distinctive: line 99
After agents complete, evals check every output.
- Distinctive: line 106
Start local Stellar network
- Distinctive: line 108
Run Playwright e2e tests
- Distinctive: line 109
Run Stellar Agentic Kit payment tests
- Very specific: line 125
All blockchain queries use useStellarData() — never raw RPC or curl.
- Very specific: line 157
All blockchain queries: must use useStellarData() — no raw RPC, no curl
- Very specific: line 159
State-changing calls: use useContract().write() — handles sim + assemble + sign + submit
- Distinctive: line 160
Every output: must pass relevant evals before reporting done
- Very specific: line 165
Do NOT use raw fetch() or axios to call Stellar RPC endpoints directly
- Distinctive: line 166
Do NOT skip eval verification — always run evals against agent output
- Very specific: line 167
Do NOT hardcode secrets — use .env.local (frontend) or .env (backend)
- Distinctive: line 168
Do NOT write monolithic agents — route to specialists for each concern
- Distinctive: line 169
Do NOT skip the graphify step — it builds the project knowledge base
- Very specific: line 184
Rule: Use MCP tools during development/debugging, useStellarData() in production frontend code.
≈ “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.
Files
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 installThis 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-forgeWorkflow
Phase 1 — Intent Capture
Describe what you're building. The harness maps keywords to eval templates and writes a decision record.
| Request | Evals 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
- Start local Stellar network
- Deploy contracts
- Run Playwright e2e tests
- 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 WORKAgentic 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, nocurl - 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()oraxiosto 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.
| Server | Tools | Use For |
stellar-rpc | get_account, get_contract_data, simulate_transaction, send_transaction, get_events | Chain queries during development, debugging |
filesystem | read_file, write_file, list_directory, search_files | Reading/writing project files |
github | create_or_update_file, search_repos, create_pull_request | Repository management, commits, PRs |
playwright | browser_navigate, browser_click, browser_type, browser_screenshot | E2E 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
| File | Contents |
references/agents.md | Full agent registry with skills and memory scope |
references/evals.md | All 5 eval definitions with pass/fail criteria |
references/agentic-kit.md | Complete hook API reference |
references/templates.md | Template file index and purpose |
agents/*.md | Individual agent instructions (loaded by kernel) |
evals/*.md | Individual eval criteria (loaded by verifier) |
templates/ | Source code templates for code generation |
.mcp.json | MCP server configuration (Stellar RPC, filesystem, GitHub, Playwright) |
skills/stellar-mcp/SKILL.md | MCP tool usage guide and patterns |
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
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.

