The opinionated web stack for the AI era: Rails' conventions, without Rails. Markdown conventions, a tested app template and checks that tell coding agents how to build a full-stack Rust web app.
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
# Add to your Claude Code skills
git clone https://github.com/rust-off-rails/rustoffrailsGuides for using ai agents skills like rustoffrails.
See how rustoffrails compares with popular alternatives.
The opinionated web stack for the AI era.
Rust off Rails is a web framework for AI coding agents. It ships no library you depend on: it's a set of Markdown files that tell agents how to build a full-stack Rust web app (one blessed stack, one directory layout, one way to do each thing), plus the app template those files describe, as real, tested files the agent copies instead of retyping (template/).
The convention lives in the prose; the code is copied from the template and its parts, then written by the agent for everything app-specific. Humans still write none of it.
Nothing here is all-or-nothing. There is no framework code hidden under your app: what we give you is copied into it, so it's all in your repo and yours to change. (Apps still use ordinary crates like Axum and SeaORM.) Your agent gets good ideas and inspiration: the crates we'd recommend and why, and tested reference code for things we like, such as job processing, presence and authenticated webhooks, in the samples repo, with screenshots. Use the whole template, one part, or only a convention. We're still experimenting and building real apps with it, and so far it has gone better than we expected.
We take the best ideas of two great ecosystems and bring them together in one stack.
new, scaffold), Active Record-style models and migrations;bin/rails tasks, and Kamal-ready Docker with /up.RAILS_MAP.md maps every Rails concept to its Off Rails equivalent, plus a Borrowed from Phoenix / Elixir section.
| Rails gave you… | Rust off Rails gives your agent… |
|---|---|
| A gem with 300k lines of Ruby | ~50 Markdown files and an app template the agent copies and owns |
rails generate scaffold |
generators/scaffold.md: a recipe the agent runs |
| Convention over configuration | Convention over deliberation: the agent never debates which crate to use |
| "Optimized for programmer happiness" | Optimized for agent correctness: compiler-checked everything |
| Magic | No magic. Explicit code is cheap when you don't type it. |
bin/rails, credentials, Kamal. See RAILS_MAP.md.curl -fsSL https://rustoffrails.org/install.sh | sh
It checks for Rust (and offers rustup), installs the cargo tools the framework uses as prebuilt binaries, downloads and SHA-256-verifies the framework into ~/.offrails/, installs the Claude Code plugin if claude is on your PATH, and adds an offrails command. No sudo, no telemetry, and it's safe to re-run. Add --dry-run to see the plan first. INSTALL.md explains every step, with a manual equivalent.
offrails new bookshelf "people track the books they've read" # starts Claude Code (or Codex) with /offrails:new
offrails doctor # prerequisites and versions
offrails update # latest release
/plugin marketplace add rust-off-rails/rustoffrails # or a local checkout: /plugin marketplace add /path/to/rustoffrails
/plugin install offrails@offrails
Then, in an empty directory:
/offrails:new bookshelf: people track the books they've read and review them
The agent interviews you first (accounts? who owns data? htmx or React? where will it run?), using recommended defaults so you can just say "you decide". It confirms a plan, then builds. The skills also trigger on plain requests ("make me a new Rust web app…").
| Skill | Rails equivalent | What it does |
|---|---|---|
/offrails:new [name] [pitch] |
rails new |
Interview → plan → app skeleton → planned features, green |
/offrails:feature [request] |
— | Spec first, then code. With no argument: build what changed in product/ |
/offrails:scaffold Book title:string … |
rails g scaffold |
Full resource in the app's frontend mode |
/offrails:generate job|mailer|channel|authentication|model|migration|task … |
rails g … |
Any other generator recipe |
/offrails:check |
bin/rails test + CI |
Definition of Done: fmt, clippy, tests on SQLite and Postgres, frontend checks |
/offrails:doctor [--fix] |
rubocop + review |
Audits the app against every convention in these docs |
/offrails:deploy [fly|kamal|railway|render] |
kamal setup |
Deploy config, verified image; confirms before anything outward-facing |
/offrails:upgrade |
rails app:update |
Moves the app's vendored .offrails/ to the plugin's version and migrates conventions |
The plugin also installs hooks. They only act inside Off Rails apps (directories with .offrails/):
.offrails/ (read-only) and web/src/types/ (generated by ts-rs)./:id routes.cargo fmt --check or cargo check fails.Each app still vendors the docs into .offrails/, pinned to a version, so the app keeps working with any agent, with or without the plugin.
AGENTS.mdRead /path/to/rustoffrails/AGENTS.md and make me a new app called "bookshelf".
Generated apps carry AGENTS.md and .offrails/, so later sessions need no setup.
Describe features in plain language, or write them as specs in product/:
Scaffold Book with title:string, author:string, published_on:date, rating:integer.
Users must be logged in to create books. Send the owner an email when a book gets a review.
A new app is a copy of template/app/: a complete, compiling app (htmx) with the kernel, security headers, CSRF, sessions, Host allowlist, rate limiting, log redaction, SQLite and Postgres, /dev tools, Tailwind, CI, Docker and the kernel tests, renamed and green in minutes instead of an hour of generated Markdown. On top of it go the parts the product needs: the mailer and dev mailbox, jobs and their dashboard, accounts (password, magic link, TOTP), realtime with presence, and a LiveDashboard-style dev dashboard. They're the tested samples from rust-off-rails/samples (screenshots of every screen there). Your agent proposes the ones your app needs, you confirm, and later needs are one command: cargo offrails add-part <name>. Once copied, the app owns the code (guides/samples.md).
The generators (offrails-gen: new, add-part, list-parts, generate, destroy, snippets) are a small standard-library Rust tool, so they work the same on Linux, macOS and Windows. Features start from a snippet (small tested code to copy: a feed, slugs, Markdown, a pager, a theme toggle; template/snippets) or a generator (cargo offrails g resource posts title:string), both optional, both the app's once written: small files per feature, one marked line per shared spot. Pages are built from a component kit (Askama macros, light and dark, branded from one brand.toml) in five layouts, and cargo offrails prove screenshots and checks every page and writes docs/proof/PROOF.md, tying each acceptance criterion to its passing tests and pages.
We test the framework by having agents port well-loved open-source apps to it. Each port puts the docs, the template and the parts up against a product with years of real-world design behind it, and every rough edge an agent hits goes back into the framework.
rustoffrails is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by rust-off-rails. The opinionated web stack for the AI era: Rails' conventions, without Rails. Markdown conventions, a tested app template and checks that tell coding agents how to build a full-stack Rust web app. It has 50 GitHub stars.
rustoffrails's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/rust-off-rails/rustoffrails" and add it to your Claude Code skills directory (see the Installation section above).
rustoffrails is primarily written in Rust. It is open-source under rust-off-rails on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh rustoffrails against similar tools.
No comments yet. Be the first to share your thoughts!