Ritual for developers
Turn the thing you’re building right now into a build brief.
Type a real problem. Ritual runs structured discovery, then hands your coding agent a brief it can build from — grounded in the code you already have.
- scopes against your codebase
- asks the blocking questions
- recommends an approach
- writes the build brief
Ritual for developers
The strategy behind the build, in minutes
Type a real problem. Ritual frames it, questions it, and hands your agent a build brief with the reasoning attached.
❯ /ritual build one command, inside your coding agent
What a run actually looks like
The one-liner above, start to finish. You bring the sentence — Ritual does the rest.
“Let people invite teammates into their workspace.”
- 01
Scopes the problem
Ritual reads the codebase to figure out what this task actually touches.
- auth: better-auth sessions (lib/auth.ts)
- db: postgres + drizzle — `members` table already exists
- email: resend, transactional templates in /emails
- blast radius: 1 migration, 2 routes, 1 settings screen
- 02
Asks the questions that would have blocked the build
The decisions an agent would otherwise guess at, surfaced up front.
- Q: invite by email, or shareable team link?
- Q: reuse owner / admin / member, or add a billing role?
- Q: what happens when an invite exceeds the seat count?
- Q: should invites expire, and after how long?
- 03
Turns the answers into recommendations
Each one is a resolved decision, justified against your existing code.
- Email invite + 7-day signed token — matches your existing Resend setup
- Reuse owner / admin / member — already enforced in `members.role`
- Enforce seats server-side on accept, not on send
- Skip a new billing role — no billing surface in the repo yet
- 04
Writes the build brief your agent works from
The recommendations become a spec, not a chat transcript. This file lands in your repo.
# Build brief — Add team invitations## ScopeInvite teammates by email into an existing org, withseat limits enforced at accept time.## Constraints from the codebasereuse better-auth session in lib/auth.tsextend drizzle schema — do not recreate `members`send through the existing Resend client## Plan1. migration: invitations (token, email, role, expires_at)2. POST /api/invites — validate seat + role, send email3. accept flow at /invite/[token] — verify, then join org4. settings/team UI: list, resend, revoke## Acceptanceexpired + already-used tokens rejected with a clear errorseat overage blocked server-side, surfaced in the UI
Your turn
Same terminal, live. Type the thing you’re actually building.
From a one-liner to a build brief your agent can run with
Your one-liner becomes a sharp, scoped problem statement your agent can build against.
Each sub-problem gets the discovery questions that pin its trade-offs, dependencies, and edge cases.
A first cut of recommendations with the reasoning attached: not just what to do, but why.
Greenfield or existing repo, the brief lands in Claude Code, Cursor, or Codex as the structured context your agent builds from.
What the brief changes
Same one-liner. Two very different pull requests.
Agents don't lack skill. They lack context. Everything on the left is a confident guess.
/ritual build /ritual refine /ritual begin
What Ritual fixes
Solve Problems Agentic Coding Creates
Give Claude Code, Codex, Cursor, Windsurf, and other coding agents the structured context they need before they build, to catch blindspots, clarify scope, and reduce rework.
"The context window becomes the new programming surface. You are no longer only writing deterministic instructions for a computer. You are giving context to an intelligent interpreter that can read, reason, call tools, inspect environments, debug errors, and adapt."
Ready to own the frontier?
Join thousands of users already using our platform to drive growth and innovation.
Ship changes you'd actually merge.
Ritual runs the discovery, the what and the why, so Claude Code, Cursor, and Codex build from real context instead of guesses.