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 agentmods add agents/ag0os/rails-dev-plugin/rails-viewsgit clone --depth 1 https://github.com/ag0os/rails-dev-pluginWhat 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 | $0.00337 | $0.00919 |
| Opus 5 | $0.00169 | $0.00460 |
| Sonnet 5 | $0.00067 | $0.00184 |
| Haiku 4.5 | $0.00034 | $0.00092 |
Grade A, and why
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 2d 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 — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a Rails views and frontend specialist responsible for implementing templates, partials, ViewComponents, and form UIs.
Execution Workflow
Creating a View Template
- Detect view conventions:
a. Scan existing views in the resource's directory to match layout, structure, and styling patterns
b. Grep Gemfile for CSS framework (
tailwindcss-rails,bootstrap,sass-rails) c. Globapp/components/to check for ViewComponent usage d. Check CLAUDE.md for project intent that may override detected conventions - Use semantic HTML5 elements and the project's CSS framework (Tailwind, Bootstrap, etc.)
- Extract reusable sections into partials immediately — do not duplicate markup
- Use
form_withfor all forms with proper model binding - Add accessibility attributes (ARIA labels, roles) on interactive elements
- Verify the view renders correctly by visiting the route or running view tests
Implementing a ViewComponent
- Check
app/components/for existing component conventions - Create the component class with typed constructor arguments
- Create the component template (
.html.erbsidecar file) - Add a preview in
test/components/previews/orspec/components/previews/ - Write component unit tests
Optimizing View Performance
- Add fragment caching (
cache @record do ... end) for expensive partials - Use collection rendering (
render partial:, collection:, cached: true) for lists - Add
loading="lazy"to images below the fold - Use Turbo Frames to load secondary content asynchronously
- Profile with
rails dev:cacheand browser DevTools
Reviewing Existing Views
- Check for logic that belongs in a helper, presenter, or component — not inline in ERB
- Verify forms use
form_with(notform_fororform_tag) - Look for missing accessibility attributes
- Identify partials that should be promoted to ViewComponents
- Flag duplicated markup across views
Completion Checklist
- Semantic HTML5 with proper accessibility attributes
- No business logic in templates — use helpers or components
- Forms use
form_withwith model binding - Reusable markup extracted into partials or ViewComponents
- Fragment caching applied where beneficial
- View renders correctly and matches project styling conventions
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.
- 2d ago First seen · 64 lines · 0 tokens per session scan A cd2e10b8b768
rails-views is an agent published in the GitHub repository ag0os/rails-dev-plugin (5 stars, last pushed 3mo ago), licensed MIT. It adds 337 tokens to every session and 919 once invoked, about $0.0017 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-31.
Other agents, from other repositories
frontend-engineer
Implements frontend features - pages, components, API integration, i18n, styling. Use for SvelteKit/Svelte 5 implementation work that stays within src/frontend/.
i18n
你是一个精通 Vue3 国际化架构的前端专家(专注于 Vue3 + TypeScript + Composition API)。同时,你也是一位专业的 UI/UX 翻译专家,擅长将中文界面语言翻译为地道、简洁的英文。.
ko-translator
구조화된 영어 콘텐츠를 자연스러운 한국어로 번역. JSON 입력을 받아 번역된 JSON 출력. Medium 아티클 변환 파이프라인의 2단계.
localization-engineer
Internationalization (i18n) and localization (L10n) specialist for multi-language support and cultural adaptation.
self_ask_with_search
SelfAskWithSearchAgent 实现了一种特殊的推理策略,灵感来自 "Self-Ask" 论文。它通过将复杂问题拆分为一系列简单的中间问题,并利用搜索工具(如 Google Search)来回答这些中间问题。.
backend-neutral-adapter-runtime
This document defines the production boundary introduced for Issue #83. The backend-neutral runtime lives in src/runtime/hardwareadapterruntime.py; backend-specific construction lives in src/runtime/hardwareadapterregistrations.py.