Teach your coding agent to build on Ritual

Install the Ritual skills for your coding agent, give it one prompt, and see what each skill teaches.

Install the skillsBrowse skills

Step 1

Install the skills

Choose your agent and run its command. It copies the skill files into the folder shown.

Each skill is a self-contained SKILL.md. Any agent that reads instructions can use them; results vary by agent and model.

These commands download the skills from the ritual-foundation/ritual-dapp-skills repository on GitHub, an external site that is not controlled by Ritual Labs.

Claude Code

Run this in your project’s root folder.

git clone https://github.com/ritual-foundation/ritual-dapp-skills.git .claude/skills/ritual-dapp-skills

.claude/skills/ritual-dapp-skills/skills/ritual/SKILL.md

The prompt in step 2 points your agent to this file.

Cursor

Run this in your project’s root folder.

git clone https://github.com/ritual-foundation/ritual-dapp-skills.git .cursor/skills/ritual-dapp-skills

.cursor/skills/ritual-dapp-skills/skills/ritual/SKILL.md

The prompt in step 2 points your agent to this file.

Codex CLI

Run this in your project’s root folder.

git clone https://github.com/ritual-foundation/ritual-dapp-skills.git .codex/skills/ritual-dapp-skills

.codex/skills/ritual-dapp-skills/skills/ritual/SKILL.md

The prompt in step 2 points your agent to this file.

Hermes

Run this in the folder where you start Hermes.

git clone https://github.com/ritual-foundation/ritual-dapp-skills.git ritual-dapp-skills

ritual-dapp-skills/skills/ritual/SKILL.md

The prompt in step 2 points your agent to this file.

hermes skills tap add ritual-foundation/ritual-dapp-skills registers this repository as a skill source but does not download it. The clone keeps every skill file next to the entry file.

OpenClaw

Run this from any folder. The clone goes into the OpenClaw skills folder in your home directory.

git clone https://github.com/ritual-foundation/ritual-dapp-skills.git ~/.openclaw/skills/ritual-dapp-skills

~/.openclaw/skills/ritual-dapp-skills/skills/ritual/SKILL.md

The prompt in step 2 points your agent to this file.

Cloning copies the skill files. It does not fund a wallet or deploy anything.

Other agents

Copilot or ChatGPT
Paste the repository’s skills/ritual/SKILL.md into the system prompt or custom instructions.
Any LLM agent
Clone the repository and give the agent the relevant SKILL.md files as context.

Step 2

Prepare your prompt

Paste this into your agent and replace the wallet placeholder with your address. Add an idea, or leave it out and the agent will suggest one.

Use your wallet’s public address. Never paste a private key or recovery phrase.

Prompt for Claude Code

Read the file .claude/skills/ritual-dapp-skills/skills/ritual/SKILL.md and follow its instructions. Wallet: 0xYOUR_FUNDED_WALLET_ADDRESS Build me an autonomous agent on-chain that is indistinguishable from a human, in terms of what they see, think, and do.

Browse the skills

Search or filter skills, then open one to see what it teaches your agent.

Meta Protocols

  • BootstrapMeta-kernel: behavioral middleware active for every session10 rules

    What it teaches

    The 10 behavioral rules that govern how the agent operates on Ritual Chain. Loaded automatically by every entry point.

    The 10 Rules

    • 1. Track Cost: turn budget governs all thresholds
    • 2. Distrust Priors: Ritual violates Ethereum training data
    • 3. Lazy Elicitation: 0-5 JIT questions, never a static form
    • 4. Interleave Build+Debug: verify after every irreversible action
    • 5. Circuit Breaker: detect trajectory divergence, stop before wasting budget
    • 6. Search Before Asking: exhaust 5-step resolution hierarchy first
    • 7. Ask at Forks: only for expensive preference-based forks
    • 8. Anti-Slop: dimensional decomposition for UI artifacts
    • 9. Verify Non-Interactively: per-skill checks + 12-step E2E journey
    • 10. Scope to Project Directory: all writes within project root, no cross-pollution

    skills/ritual-meta-bootstrap/SKILL.md Open SKILL.md on GitHub, opens in a new tab

  • Verification ProtocolAutomated per-skill checks, cross-skill integration, E2E user journey12 steps

    What it teaches

    The complete non-interactive verification system.

    Three layers

    • Per-skill checks (T1-T4 tiers): static analysis, simulation, deployed verification, runtime
    • Cross-skill integration: 8 interface checks (ABI field counts match, addresses match, event names match, etc.)
    • Unified 12-step E2E journey: chain reachable → wallet funded → executor available → contract deployed → wallet funded & balance escrowed → precompile simulates → TX mines → result delivered → result decodable → state updated → frontend renders → backend indexed

    skills/ritual-meta-verification/SKILL.md Open SKILL.md on GitHub, opens in a new tab

  • Lazy ElicitationJIT question generation from a 12-dimension universev3

    What it teaches

    How the agent generates contextual questions instead of using a static form.

    How it works

    • Parses user's first message for signals (precompile type, statefulness, frontend needs, etc.)
    • Identifies top-K unresolved dimensions from a 12-dimension architectural universe
    • Generates 0-5 questions with 4 contextualized options each
    • >200 words from user = infer everything, confirm only
    • Almost nothing from user = route to front door

    skills/ritual-meta-elicitation/SKILL.md Open SKILL.md on GitHub, opens in a new tab

  • Circuit BreakerTrajectory divergence detection, knows when to stop

    What it teaches

    Self-awareness for the agent: knowing when the current approach isn't converging.

    How it works

    • Weighted progress markers: chain connection (1), deploy (3), settle (5), E2E (8)
    • Stall thresholds by phase: scaffolding (3 turns), contracts (5), frontend (4), integration (6)
    • Immediate break on: error oscillation, scope creep into verified files, user frustration signals
    • Proposes: simplify scope / pivot architecture / pause and hand back

    skills/ritual-meta-circuit-breaker/SKILL.md Open SKILL.md on GitHub, opens in a new tab

  • ProjectionTransforms raw ideas into Ritual-native specs with precompile mappingspre-builder

    What it teaches

    Before the builder agent starts writing code, this skill takes the user's raw idea and maps every capability to the optimal Ritual precompile or system contract. The builder receives a structured spec instead of a vague prompt.

    How it works

    • Reads the overview and precompiles skills to load the full capability surface
    • Decomposes the idea into capabilities (data ingestion, AI inference, scheduling, privacy, etc.)
    • Maps each capability to a specific precompile address using a comprehensive mapping table
    • Detects the 1-phase async constraint (only one short-running async call per TX) and resolves via Scheduler chaining
    • Detects additional constraints: sender lock, block time, encrypted input + auto-selection conflicts
    • Checks reference contracts in examples/registry.json for reusable patterns
    • Surfaces implicit requirements (RitualWallet deposit, callback handlers, storage config)
    • Outputs a structured spec with mapped capabilities, constraints, required skills, and off-chain components

    skills/ritual-meta-projection/SKILL.md Open SKILL.md on GitHub, opens in a new tab

  • InspirationJIT idea generation from trending blockchain + AI themeslive search

    What it teaches

    When the user doesn't know what to build, this skill searches the web for what's trending in blockchain and AI right now, filters for ideas that require Ritual-specific precompiles, and presents 3-5 concrete buildable app ideas.

    How it works

    • Three parallel web searches for current trends (varies by date)
    • Hard filter: each idea must map to a specific precompile address (0x08XX)
    • Deduplication against static examples already shown elsewhere
    • Each idea includes: one-line pitch, why now (from search), why Ritual (which precompile), complexity rating
    • Fallback to static examples if search fails

    Constraints

    • 3-5 ideas, never more
    • At least one simple (1 precompile) and one ambitious (3+)
    • Every idea must be buildable in one session
    • No generic blockchain apps that work on any EVM chain

    skills/ritual-meta-inspiration/SKILL.md Open SKILL.md on GitHub, opens in a new tab

Architecture & Reference

  • OverviewChain architecture, 3 execution models, 9-state async lifecycle, TEE trust model

    What it teaches

    The complete Ritual Chain mental model. Three execution models (synchronous, short-running async, long-running async), the 9-state async transaction lifecycle, TEE trust model, executor selection, and all system contracts.

    Prior Correction

    8 Ethereum assumptions that are wrong on Ritual:

    • writeContractAsync breaks on async precompiles. Use useSendTransaction
    • msg.sender in callbacks = AsyncDelivery proxy, not the user
    • Only one short-running async call per transaction
    • Fees are RitualWallet deposits, not gas
    • Block time is ~350ms, not 12s
    • Receipts have spcCalls field with precompile results
    • Sender lock: one async job per EOA at a time
    • No Chainlink/ERC-4337/Gelato. Ritual has native equivalents

    skills/ritual-dapp-overview/SKILL.md Open SKILL.md on GitHub, opens in a new tab

  • Precompiles ABIComplete ABI reference for all precompiles with encoding examples16 addresses

    What it teaches

    Input/output ABI for every precompile, with field counts, Solidity encoding, and viem TypeScript patterns.

    Precompile Categories

    Synchronous ONNX (0x0800), JQ (0x0803), SECP256R1 (0x0100)
    Short-running async HTTP (0x0801), LLM (0x0802), DKMS (0x081B)
    Long-running async Long HTTP (0x0805), ZK (0x0806), Sovereign (0x080C), Image (0x0818), Audio (0x0819), Video (0x081A), Persistent (0x0820)

    skills/ritual-dapp-precompiles/SKILL.md Open SKILL.md on GitHub, opens in a new tab

  • DeployChain config, Foundry/Hardhat setup, deployment scripts, system addresses

    What it teaches

    Chain ID 784, RITUAL currency, EIP-1559 only. Complete Foundry and Hardhat configuration templates. System contract addresses. Deployment scripts with explorer verification. RPC endpoints for HTTP and WebSocket.

    skills/ritual-dapp-deploy/SKILL.md Open SKILL.md on GitHub, opens in a new tab

  • Design SystemDark-mode-first terminal aesthetic, typography, color semantics, accessibility

    What it teaches

    The Ritual visual language: dark-mode-first terminal aesthetic. Fonts: Izoard (display), Barlow (body), JetBrains Mono (code). Color semantics: green = trust/success, pink = AI/compute, lime = data, gold = value. 9-state lifecycle UI components. WCAG 2.1 AA accessibility with focus-visible rings.

    skills/ritual-dapp-design/SKILL.md Open SKILL.md on GitHub, opens in a new tab

Precompile Features

  • HTTPExternal HTTP calls on-chain: APIs, price feeds, webhooks0x0801

    What it teaches

    The HTTP Call precompile. Short-running async model: result arrives in the same transaction via spcCalls.

    Short-running async: result in same TX

    Key patterns

    • SECRET string replacement for API keys
    • piiEnabled flag for secret string replacement and PII redaction
    • JQ post-processing via the JQ precompile (0x0803)
    • Method codes: GET=1, POST=2, PUT=3, DELETE=4, PATCH=5
    • One short-running async call per TX. Cannot chain with LLM in same TX

    skills/ritual-dapp-http/SKILL.md Open SKILL.md on GitHub, opens in a new tab

  • LLMOn-chain AI inference: chat, tool calling, structured output, streaming0x0802

    What it teaches

    The LLM precompile. 30-field ABI input. OpenAI-compatible chat completions with tool/function calling and structured output (JSON mode).

    Short-running async: result in same TX

    Key patterns

    • SSE streaming via EIP-712 signed events
    • Temperature and topP scaled ×1000 (0.7 = 700)
    • Private LLM via ECIES encryption to executor
    • Model selection via TEEServiceRegistry capability query

    skills/ritual-dapp-llm/SKILL.md Open SKILL.md on GitHub, opens in a new tab

  • AgentsMulti-step AI agents: persistent memory or sovereign execution0x0820 / 0x080C

    What it teaches

    Two agent precompiles: Persistent Agent (0x0820) for stateful with memory, Sovereign Agent (0x080C) for autonomous execution.

    Long-running async: callback delivery

    Key patterns

    • 2-phase submit → callback with tools (web_search, code_execution)
    • Storage references for persistent state across sessions
    • Delivery config: target address + selector + gas limit

    skills/ritual-dapp-agents/SKILL.md Open SKILL.md on GitHub, opens in a new tab

  • Long-Running HTTPMinutes-to-hours async HTTP jobs with polling0x0805

    What it teaches

    The Long HTTP precompile for operations that take minutes to hours.

    Long-running async: submit/poll/deliver

    Key patterns

    • Submit → poll → deliver with JQ extraction
    • pollIntervalBlocks + maxPollBlock configuration
    • taskIdMarker for result identification
    • Scheduler integration for recurring long jobs

    skills/ritual-dapp-longrunning/SKILL.md Open SKILL.md on GitHub, opens in a new tab

  • MultimodalAI image, audio, and video generation on-chain0x0818 / 0x0819 / 0x081A

    What it teaches

    Image (0x0818), Audio (0x0819), and Video (0x081A) precompiles.

    Long-running async: callback delivery

    Key patterns

    • Encrypted storage credentials for S3/IPFS/Arweave
    • Output: URI + content hash
    • Executor Capability IDs: 7 (image), 8 (audio), 9 (video)

    skills/ritual-dapp-multimodal/SKILL.md Open SKILL.md on GitHub, opens in a new tab

  • SchedulerBlock-based delayed and recurring on-chain execution0x4E0a…490E

    What it teaches

    How to use the Scheduler contract (0x4E0abeE2233D73E66382b45244F7459B34E1490E) to schedule delayed and recurring precompile calls on Ritual Chain. Execution is block-based, not time-based.

    Key patterns

    • setTimeout / setInterval for Solidity: delayed and recurring on-chain calls
    • FSM: SCHEDULED → EXECUTING → COMPLETED/FAILED
    • Uses TxScheduled (type 0x10) system tx from sender 0x0000...00fa7e
    • Predicates for conditional execution (only run when a condition is true)
    • RitualWallet must be funded before each execution (just-in-time deposits supported)

    skills/ritual-dapp-scheduler/SKILL.md Open SKILL.md on GitHub, opens in a new tab

  • SecretsECIES encryption, secret string replacement, delegated access control

    What it teaches

    Secret management for Ritual precompiles.

    Key patterns

    • ECIES encryption to executor public key
    • SECRET string replacement in precompile inputs
    • Private outputs via userPublicKey field
    • SecretsAccessControl for delegated access
    • Contract-owned vs EOA-owned secrets with different msg.sender rules

    skills/ritual-dapp-secrets/SKILL.md Open SKILL.md on GitHub, opens in a new tab

  • X402 PaymentsMicropayments for paid API accessvia 0x0801 / 0x0805

    What it teaches

    X402 micropayment protocol for paid APIs via the HTTP and Long-Running HTTP precompiles.

    Key patterns

    • ECIES-encrypted payment credentials
    • Budget management per API call
    • Shared credential patterns
    • Flows through HTTP (0x0801) and Long-Running HTTP (0x0805), not a separate precompile

    skills/ritual-dapp-x402/SKILL.md Open SKILL.md on GitHub, opens in a new tab

  • Passkey / WebAuthnSign transactions with Face ID, fingerprint, or hardware keys

    What it teaches

    Native passkey authentication on Ritual Chain using the TxPasskey transaction type (0x77). Users sign transactions with biometrics (Face ID, Touch ID, fingerprint sensors, or hardware security keys) instead of managing private keys.

    Key patterns

    • P-256 WebAuthn signature verification
    • Wallet-less onboarding: users create accounts with a fingerprint or face scan
    • Recovery patterns and dual-auth (passkey + traditional EOA)

    skills/ritual-dapp-passkey/SKILL.md Open SKILL.md on GitHub, opens in a new tab

Smart Contracts

  • ContractsHow to write Solidity contracts that call Ritual precompiles

    What it teaches

    How to write consumer contracts that correctly encode inputs, decode outputs, and handle results from every type of Ritual precompile.

    Key patterns

    • ABI encoding/decoding for precompile inputs and outputs
    • Short-running result decoding from spcCalls in the transaction receipt
    • Long-running callback handlers: implement onResult(bytes32 jobId, bytes result) for async delivery
    • Scheduled execution: recurring and delayed contract calls via the Scheduler
    • Fee deposits via RitualWallet.deposit(lockDuration) before submitting async calls
    • Job lifecycle events: track async and scheduled job state (committed, settled, delivered, expired)

    skills/ritual-dapp-contracts/SKILL.md Open SKILL.md on GitHub, opens in a new tab

  • RitualWalletFee deposits, locking, and withdrawal for async precompile calls

    What it teaches

    The RitualWallet fee management contract.

    Key patterns

    • deposit(lockDuration) → funds locked until block.number + lockDuration → withdraw(amount) after lock expires
    • Lock duration is user-controlled (set at deposit time to cover your async TTL)
    • Lock is monotonic: new deposits only extend, never shorten the lock
    • depositFor(user, lockDuration) to fund another address
    • Must fund and lock BEFORE submitting async calls. Lock duration must cover the precompile TTL

    skills/ritual-dapp-wallet/SKILL.md Open SKILL.md on GitHub, opens in a new tab

How it works

You describe. The agent loads the right skills, builds in phases, verifies each one and debugs when something breaks.

You

“Build me a…”

Describe your idea, or report a problem.

Checkpoints

  1. Approve architecture
  2. Approve contracts
  3. Approve frontend
  4. Approve deploy

Meta layer

always active, invisible to you

  • Track cost
  • Distrust priors
  • Elicitation
  • Interleave
  • Circuit breaker
  • Verification
  • Search first
  • Ask at forks
  • Anti-slop

No idea yet? Inspiration proposes one, Projection maps it onto Ritual precompiles, then the builder starts.

Build

builder agent · 3–6 skills per project

  1. architecture
  2. contracts
  3. frontend · backend
  4. testing
  5. deploy

Verified after each phase; the debugger runs after deploy.

Debug

reactive pipeline · debugger agent

  1. Triage5 categories, 16 sub-types
  2. Smoke testsRPC, wallet, executor
  3. Quick-match10 known root causes
  4. Diagnosis6 ordered checks
  5. Fix + verifyapply fix, regression check

Fixes flow back into the build.

Chain reference

The values the skills use. Addresses link to the explorer.

The RPC endpoints, explorer and contracts below belong to the Ritual network and are not controlled by Ritual Labs.