Skip to content
Back to skills

Check

ASecurity

Run the Rust off Rails Definition of Done (fmt, clippy, tests on SQLite and Postgres, frontend checks, checklist) and fix what fails. Use before saying work is done, or when the user asks "is it green?", "run the tests", or "check everything".

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 14, 2026
developmentrustgosqlrailsdockertestinggitdatabasefrontendsecurity

Works with

  • cli

Security analysis

A100/100

Scanned October 14, 2026

npx -y skills add Rust-Off-Rails/rustoffrails --skill check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Check?

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

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

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: check
description: Run the Rust off Rails Definition of Done (fmt, clippy, tests on SQLite and Postgres, frontend checks, checklist) and fix what fails. Use before saying work is done, or when the user asks "is it green?", "run the tests", or "check everything".
argument-hint: "[--deep]"
---

# /offrails:check — the Definition of Done

Only for Rust off Rails apps (a `.offrails/` directory exists).

1. Run `sh .offrails/tools/offrails-check` first (no `.offrails/tools/offrails-check` in apps before 0.6.0: `sh ${CLAUDE_PLUGIN_ROOT}/tools/offrails-check`). Every `FAIL` line is a failure of this check; fix each before going on. It covers the header, AC traceability, Security-table tests, the tenancy suites and unscoped lookups mechanically, so don't re-judge those by eye.
2. Read the app's `AGENTS.md` for `FRONTEND_MODE` and `ISLANDS`, then run every command in `.offrails/workflow.md#definition-of-done` for that mode, in order. For Postgres: use `TEST_DATABASE_URL` if set. Otherwise, if Docker is available, run `docker compose up -d db` and use the URL from the app's `AGENTS.md`. If neither works, say that Postgres was skipped. Never claim it passed.
3. Fix failures per "When something fails" in `workflow.md`, then rerun from the first failing step.
4. Run the gates from `.offrails/guides/test-standards.md`:
   - **coverage** (§5): `cargo llvm-cov nextest` thresholds;
   - **frontend coverage** in TS modes;
   - **accessibility** (§10): axe on every route in light and dark, desktop and mobile (apps with a UI);
   - with `$ARGUMENTS` containing `--deep`, also **mutation testing** (§5).
5. Walk the checklist under the commands, running each item's command, and check it against the diff (`git diff`, plus untracked files). Also check that the change added the tests its archetype requires (test-standards §2–4).
6. Regenerate `docs/test-report.md` (test-standards §8).
7. Report a pass/fail line per step. Never call it green while any step is red or skipped without saying so.

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.