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.
git clone --depth 1 https://github.com/andyw8/rails_rulesWrote 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/rules/andyw8/rails_rules/1003-rails-views)<a href="https://agentmods.dev/rules/andyw8/rails_rules/1003-rails-views"><img src="https://agentmods.dev/badge/rules/andyw8/rails_rules/1003-rails-views/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/rules/andyw8/rails_rules/1003-rails-views"><img src="https://agentmods.dev/badge/rules/andyw8/rails_rules/1003-rails-views.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.00000 | $0.01122 |
| Opus 5.5 | $0.00000 | $0.00449 |
| Sonnet 5.5 | $0.00000 | $0.00224 |
| Haiku 4.5 | $0.00000 | $0.00112 |
Grade A, and why
1003-rails-views 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 2mo 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 — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rails View Standards with Tailwind
Context
- In Ruby on Rails 8.0 views
- Using Tailwind CSS for styling
- ERB templates with responsive design
- Support for dark mode
Requirements
- Always use Tailwind CSS classes for styling
- Make all views responsive with breakpoints (sm:, md:, lg:, xl:, 2xl:)
- Add dark mode support (dark: prefix for Tailwind classes)
- For forms:
- Add autofocus: true on first input for new records
- Add asterisks (*) for required fields
- Use HTML5 validation
- Use form-group, form-control classes
- For buttons use btn btn-primary, btn-small, btn-block, etc.
- Use f.button instead of f.submit
- Add proper disable_with for buttons showing loading state: disable_with: "Saving..."
- Use content_for :title for page titles
- For components like cards, alerts, navigation:
- Use corresponding Tailwind component classes
- Use Turbo Stream for real-time updates
- Use dom_id for HTML element IDs
- Use partials for reusable components
- Use proper spacing with Tailwind (mt-4, mb-4, py-2, etc.)
- Implement proper aria attributes for accessibility
Examples
<div class="form-group">
<%= f.label :email, "Email *" %>
<%= f.email_field :email, class: "form-control", required: true %>
</div>
<div class="form-group">
<%= f.label :avatar %>
<div class="file-input-group">
<label for="avatar" class="btn btn-tertiary">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="w-5 h-5 mr-1">
<path fill-rule="evenodd" d="M1.5 6a2.25 2.25 0 0 1 2.25-2.25h16.5A2.25 2.25 0 0 1 22.5 6v12a2.25 2.25 0 0 1-2.25 2.25H3.75A2.25 2.25 0 0 1 1.5 18V6ZM3 16.06V18c0 .414.336.75.75.75h16.5A.75.75 0 0 0 21 18v-1.94l-2.69-2.689a1.5 1.5 0 0 0-2.12 0l-.88.879.97.97a.75.75 0 1 1-1.06 1.06l-5.16-5.159a1.5 1.5 0 0 0-2.12 0L3 16.061Zm10.125-7.81a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0Z" clip-rule="evenodd" />
</svg>
<span>Upload Avatar</span>
</label>
<%= f.file_field :avatar, id: "avatar" %>
</div>
</div>
<div class="mt-6">
<%= f.button button_text("Save Changes", disable_with: "Saving..."), class: "btn btn-primary" %>
</div>
<% end %>
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.
- 2mo ago First seen · 108 lines · 0 tokens per session scan A 6a4f47d85299
1003-rails-views is a cursor rule published in the GitHub repository andyw8/rails_rules (4 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,122 tokens. 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-31.
1003-rails-views compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| 1003-rails-viewsandyw8/rails_rules | Cursor rule | 4 | 1y ago | MIT | A | 0 | Cursor |
| nextjs-tailwind-typescript-apps-cursorrules-promptPatrickJS/awesome-cursorrules | Cursor rule | 41k | 5mo ago | CC0-1.0 | A | 299 | Cursor |
| qwik-tailwind-cursorrules-prompt-filePatrickJS/awesome-cursorrules | Cursor rule | 41k | 5mo ago | CC0-1.0 | A | 332 | Cursor |
| rubysanjeed5/awesome-cursor-rules-mdc | Cursor rule | 3.6k | 5mo ago | CC0-1.0 | A | 2,400 | Cursor |
| ruby-styleromkey/I2C-Directory | Cursor rule | 11 | 1mo ago | MIT | A | 0 | Cursor |
| hatch3r-ruby-rails-patternshatch3r/hatch3r | Cursor rule | 26 | 1mo ago | MIT | A | 0 | Cursor |
| workato-connector-sdkrkawaishi/workato-dev-kit | Cursor rule | 5 | 2mo ago | MIT | A | 0 | Cursor |