Skip to content
Back to skills

Scaffold

ASecurity

Generate a full resource (migration, model, policy, controller, routes, views or pages, tests) in a Rust off Rails app, like `rails g scaffold`. Use when the user asks to scaffold or add a CRUD resource with fields, e.g. "scaffold Book title:string rating:integer".

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 19, 2026
developmentrustgorailsapifrontend

Works with

  • api

Security analysis

A100/100

Scanned October 19, 2026

npx -y skills add rust-off-rails/rustoffrails --skill scaffold --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scaffold?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Scaffold
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rust-off-rails-scaffold-rustoffrails/badge)](https://www.skillsdirectory.com/skills/rust-off-rails-scaffold-rustoffrails)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: scaffold
description: Generate a full resource (migration, model, policy, controller, routes, views or pages, tests) in a Rust off Rails app, like `rails g scaffold`. Use when the user asks to scaffold or add a CRUD resource with fields, e.g. "scaffold Book title:string rating:integer".
argument-hint: "<Model> field:type[?|!] …"
---

# /offrails:scaffold

Only for Rust off Rails apps (a `.offrails/` directory exists). If there isn't one, suggest `/offrails:new` and stop.

Request: $ARGUMENTS

1. If not already done this session, read `.offrails/AGENTS.md` and its load order, and note `FRONTEND_MODE` from the app's `AGENTS.md`.
2. Ask the feature-level questions from `.offrails/interview.md` that the request leaves open (ownership, deletion, who can see it), and only those.
3. `htmx` mode: run `cargo offrails g resource <plural> field:type…` (`--dry-run` first; field syntax: `.offrails/generators/README.md#fields`), then do what it printed and what `.offrails/generators/scaffold.md` leaves to you (spec ACs into the tests, the `// APP:` lines, seeds, the browser smoke). Other modes: `cargo offrails g model …` (and `g api …` for a public API), then the rest of `scaffold.md` for the app's `FRONTEND_MODE` by hand.
4. Finish with `cargo offrails verify` (`--full` if this is the last slice; `.offrails/workflow.md#definition-of-done`), then report per "Talking to the human".

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.