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.
npx skills add sorah/config --skill railsgit clone --depth 1 https://github.com/sorah/configWrote 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.
[](https://agentmods.dev/skills/sorah/config/rails)<a href="https://agentmods.dev/skills/sorah/config/rails"><img src="https://agentmods.dev/badge/skills/sorah/config/rails/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.
<a href="https://agentmods.dev/skills/sorah/config/rails"><img src="https://agentmods.dev/badge/skills/sorah/config/rails.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00099 | $0.02624 |
| Opus 5.5 | $0.00040 | $0.01050 |
| Sonnet 5.5 | $0.00020 | $0.00525 |
| Haiku 4.5 | $0.00010 | $0.00262 |
Grade A, and why
rails 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 17d 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.
How it starts
The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rails Conventions
Coding conventions and best practices for Ruby on Rails projects. Project-specific conventions (CLAUDE.md, style guides) always take priority over this guidance.
Related skills:
- API error responses (RFC 9457 problem details with the
problemgem): /sorah-guides:rails-problem - Protobuf-native APIs (Connect RPC with connect_rpc_rails, protobufable, protovalidate): /sorah-guides:rails-protobuf
- Declarative schema with psqldef instead of migrations: /sorah-guides:sqldef-on-rails
- Aurora DSQL (OCC-aware transactions, IAM auth, tests against real clusters): /sorah-guides:dsql-on-rails
- Running on AWS Lambda (function URL behind CloudFront, Lambdakiq jobs, runner for migrations): /sorah-guides:rails-on-lambda
- Canonical log lines (request context, outcome and counters on the rails_semantic_logger Completed line): /sorah-guides:rails-canonical-log-line
- Sorbet typing: /sorah-guides:sorbet
Configuration
- One initializer per subsystem: Settings for a subsystem (mailer, jobs, sessions, an API client) live in
config/initializers/<feature>.rb, branching onRails.envinside it, so the whole story reads top to bottom in one file. Do not add settings toconfig/application.rborconfig/environments/*.rb; leave those with the boilerplate Rails generated (eager_load, caching, logging level) and settings that must exist before initializers run (load_defaults, autoload paths, logger setup such asconfig.rails_semantic_logger). - Namespaced settings:
Rails.configuration.x.namespace.key, two levels deep. A single-levelconfig.x.foois not allowed. - No explicit
OrderedOptions:config.x.mailer.subject_prefix = "..."creates themailernamespace on first access. Assigningconfig.x.mailer = ActiveSupport::OrderedOptions.newfirst is noise, and clobbers anything set earlier. - ENV and
Rails.envstay in config: Initializers readENV.fetchand branch onRails.env. Application code (models, controllers, jobs, services) readsRails.configuration.xand never checksENVorRails.env; environment differences are configuration values. - Rake task arguments: A rake task may read its own per-invocation inputs (
ENV["VERBOSE"],ENV["KEY_ID"]) inside the task body and pass them down as arguments. A setting that varies per deployment still goes throughconfig.x, even when only a task uses it.
What ships with it
3 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.
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.
- 17d ago Changed · +49 lines · +29 tokens per session a7ca9de60355
- 24d ago Changed · +1 lines 83654987a378
- 1mo ago Changed · +6 lines dc7ab3ef34a7
- 1mo ago First seen · 82 lines · 70 tokens per session scan A 91eb5e1bebc1
rails is a skill published in the GitHub repository sorah/config (31 stars, last pushed 11d ago), licensed MIT. It adds 99 tokens to every session and 2,624 once invoked, about $0.0004 per session on Opus 5.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-10-17.
rails compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| railssorah/config | Skill | 31 | 11d ago | MIT | A | 99 | Claude Code |
| rails-expertJeffallan/claude-skills | Skill | 13k | yesterday | MIT | A | 104 | Claude Code |
| newclacky-ai/openclacky | Skill | 1.2k | yesterday | MIT | A | 10 | Claude Code |
| rails-conventionsrootstrap/rails_api_base | Skill | 635 | 19d ago | MIT | A | 71 | Claude Code |
| rails-devtech-leads-club/agent-skills | Skill | 7.2k | yesterday | none | A | 199 | Claude Code, Codex |
| draper-decoratorshoblin/claude-ruby-marketplace | Skill | 38 | 2d ago | MIT | A | 131 | Claude Code |
| ruby-railsj4flmao/agent-skills | Skill | 47 | 15d ago | MIT | A | 69 | Claude Code, Codex |