Agent Skills
Hyperstack is designed to be built with AI agents. This page explains the three pieces that make that work: the CLI, the agent skills, and agent.md.
The CLI
Section titled “The CLI”The Hyperstack CLI (hs) is the primary interface between your agent and Hyperstack. It handles scaffolding, deployment, SDK generation, and — most importantly — live schema discovery.
# Install via Cargo (recommended)cargo install hyperstack-cli
# Or via npmnpm install -g hyperstack-cliThe key command for agents is hs explore:
hs explore --jsonThis queries the Hyperstack API and returns the live schemas for all available stacks — their entities, fields, views, and types. Because your agent runs this at setup time, it always works with accurate, up-to-date type information rather than guessing from training data.
Agent Skills
Section titled “Agent Skills”Agent skills are markdown files that teach your agent how to use Hyperstack correctly. They’re installed into your project so your agent picks them up automatically as context.
Three skills are installed:
| Skill | What it teaches |
|---|---|
hyperstack | Router skill — detects intent and routes the agent to the right sub-skill |
hyperstack-consume | SDK patterns for connecting to streams in TypeScript, React, and Rust |
hyperstack-build | Rust DSL syntax for building custom stacks from Solana program IDLs |
Install them manually with:
npx skills add usehyperstack/skillsOnce installed, your agent knows the correct hook names, view patterns, subscription syntax, and CLI commands. Without the skills, an agent will hallucinate API shapes based on outdated training data.
agent.md
Section titled “agent.md”agent.md is a plain text file hosted at https://docs.usehyperstack.com/agent.md. It’s the bootstrap instruction set — a single URL your agent can read to set everything up from scratch.
When your agent reads agent.md, it:
- Installs the Hyperstack CLI (prefers Cargo, falls back to npm)
- Installs the agent skills into the project
- Runs
hs explore --jsonto load live schemas - Understands it’s ready to build
This is why the one-liner works:
Read https://docs.usehyperstack.com/agent.md and follow the instructions to set up Hyperstack in this project
How They Fit Together
Section titled “How They Fit Together”agent.md ──▶ CLI installed ──▶ hs explore --json ──▶ live schemas Skills installed ─▶ SDK patterns + DSL syntax
┌────────────────────────────┐ │ AI Agent │ │ (Cursor, Claude Code, etc) │ │ │ │ Skills + Live schemas │ └────────────┬───────────────┘ │ builds correct code │ ▼ Your Hyperstack appThe CLI gives the agent live data. The skills give the agent correct patterns. Together they remove the two main failure modes: wrong types and wrong API usage.
Prefer to Set Up Manually?
Section titled “Prefer to Set Up Manually?”cargo install hyperstack-cli# Or: npm install -g hyperstack-cli
npx hyperstack-cli create my-app --template react-orecd my-app
npx skills add usehyperstack/skillscargo install hyperstack-cli# Or: npm install -g hyperstack-cli
npx skills add usehyperstack/skillsFor editor-specific file locations and manual configuration, see Editor Setup.
Next Steps
Section titled “Next Steps”- Prompt Cookbook — Copy-paste prompts for common tasks
- Tutorial: ORE Dashboard — Build a complete app step by step
- Schema Discovery — How
hs exploreprovides live type information - Editor Setup — Manual setup for specific editors