rails-backend

rails-backend is a skill for Claude Code, Codex from jorgegorka/ariadna. It costs 36 tokens per session (1,323 once invoked), scanned A, original, MIT.

A set of conventions for building Ruby on Rails backends, including models, controllers, background jobs, and APIs.

In plain words
What is it for?
It helps implement Rails models and relationships, write controllers and JSON APIs, organize background jobs, handle parameters, and structure reusable model concerns.
Why use it?
It keeps business rules in the domain model, so the same behavior works consistently from web requests, background jobs, scripts, the Rails console, and tests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps implement Rails models and relationships, write controllers and JSON APIs, organize background jobs, handle parameters, and structure reusable model concerns.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jorgegorka/ariadna/rails-backend
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jorgegorka/ariadna --skill rails-backend
Clone the repo
git clone --depth 1 https://github.com/jorgegorka/ariadna

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rails-backend

README.md
[![agentmods](https://agentmods.dev/badge/skills/jorgegorka/ariadna/rails-backend/github.svg)](https://agentmods.dev/skills/jorgegorka/ariadna/rails-backend)
Your own site
<a href="https://agentmods.dev/skills/jorgegorka/ariadna/rails-backend"><img src="https://agentmods.dev/badge/skills/jorgegorka/ariadna/rails-backend/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rails-backend

Your own site · 80×15
<a href="https://agentmods.dev/skills/jorgegorka/ariadna/rails-backend"><img src="https://agentmods.dev/badge/skills/jorgegorka/ariadna/rails-backend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,323 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.01323
Opus 5 $0.00018 $0.00661
Sonnet 5 $0.00007 $0.00265
Haiku 4.5 $0.00004 $0.00132

Measured 12d ago against content hash 0018f4fa740f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

rails-backend scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

data/skills/rails-backend/SKILL.md · 170 lines

How it starts

The opening of the file, as written. The whole thing — 170 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rails Backend Skill

Opinionated conventions for Rails backend code. Architecture is built on a single principle: place the domain model at the center. Controllers, jobs, and the console are all boundaries that orchestrate domain logic — they contain no business logic themselves.

Sub-files:

  • MODELS.md — Concern architecture, associations, scoping, callbacks
  • CONTROLLERS.md — REST conventions, strong params, concerns
  • JOBS.md — _now/_later pattern, multi-tenancy context
  • API.md — JSON responses, serialization, versioning

Core Philosophy

Domain Model at the Center

Controller ──┐
             ▼
Console ──► Domain Model ◄── Job
             ▲
Script  ─────┘

card.close works identically whether called from a controller, job, console, or test. The domain model is the single source of truth for business behavior.

No New Architectural Artifacts

No service objects, form objects, interactors, or command pattern libraries. Building blocks:

  • Models — domain entities and operations (ActiveRecord and plain Ruby)
  • Concerns — organize model behavior into cohesive modules
  • Controllers — HTTP boundary only
  • Jobs — async boundary; delegate to model methods
  • Views — render domain state (templates, not view components)

When something doesn't fit in an entity, create a plain Ruby object with a semantic name — not a new architectural pattern. A Signup class, not a SignupService. A Notifier, not a NotificationInteractor.

Preference for Rails Defaults

Minitest over RSpec · view templates over view components · ActiveRecord callbacks over observer patterns · Current over dependency injection · concerns over decorator libraries.


Domain Model Overview

Account (tenant/organization)
  └── Users (members with roles)
  └── Boards (project spaces)
       └── Columns (workflow stages)
       └── Cards (tasks/issues)
            └── Comments, Assignments, Tags

Read the full file on GitHub · 170 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 170 lines · 36 tokens per session scan A 0018f4fa740f

Subscribe to this mod's changes

rails-backend is a skill published in the GitHub repository jorgegorka/ariadna (21 stars, last pushed 5mo ago), licensed MIT. It adds 36 tokens to every session and 1,323 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.