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 sandeepmvl/rails-skills --skill 35-actiontext-richtextgit clone --depth 1 https://github.com/sandeepmvl/rails-skillsWrote 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/sandeepmvl/rails-skills/35-actiontext-richtext)<a href="https://agentmods.dev/skills/sandeepmvl/rails-skills/35-actiontext-richtext"><img src="https://agentmods.dev/badge/skills/sandeepmvl/rails-skills/35-actiontext-richtext/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/sandeepmvl/rails-skills/35-actiontext-richtext"><img src="https://agentmods.dev/badge/skills/sandeepmvl/rails-skills/35-actiontext-richtext.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.00108 | $0.01850 |
| Opus 5.5 | $0.00043 | $0.00740 |
| Sonnet 5.5 | $0.00022 | $0.00370 |
| Haiku 4.5 | $0.00011 | $0.00185 |
Grade A, and why
actiontext-richtext 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 — 220 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ActionText (Rich Text)
Add rich text editing to Rails models. Trix editor + ActionText + ActiveStorage handle the editor, storage, and embedded attachments. Default Rails 8 has decent defaults — the gotchas are around sanitization, search indexing, and custom embeds.
The opinion
has_rich_text :bodyon the model. Trix is the default editor — fine for most cases. Sanitize on output (Rails does by default). Index the plain-text representation, not the HTML. For custom embeds (mentions, polls), use ActionText's attachable mixin. Don't migrate to TinyMCE/CKEditor unless you have a specific need — Trix's smaller surface area is a security win.
Counter-positions:
- TinyMCE / CKEditor / Tiptap — more powerful editors. Larger XSS attack surface, separate licensing. Pick only if Trix is genuinely insufficient.
Setup
bin/rails action_text:install
bin/rails db:migrate
Creates action_text_rich_texts and active_storage_blobs/attachments tables.
Core patterns
Pattern 1: Model + form
class Post < ApplicationRecord
has_rich_text :body
end
<%= form.label :body %>
<%= form.rich_text_area :body %>
<!-- View -->
<%= @post.body %> <!-- Renders the rendered Trix HTML, sanitized -->
Pattern 2: Sanitization (the default + custom)
Rails sanitizes ActionText output by default. The allowed tags include common formatting (<strong>, <em>, <h1-6>, <a>, <img>, etc.) — see Rails::HTML5::SafeListSanitizer for the exact list.
To restrict further:
# config/initializers/action_text.rb
ActionText::ContentHelper.allowed_tags -= %w[h1 h2]
To allow more (carefully):
ActionText::ContentHelper.allowed_tags += %w[mark]
Anti-pattern: allowing <script> (even by mistake). The default safe-list excludes it; never add.
Pattern 3: Embedded attachments
Trix supports drag-and-drop image upload. ActionText wires it to ActiveStorage automatically.
# Variant configured on the attachment association (Rails 7.1+):
class Post < ApplicationRecord
has_rich_text :body
end
# config/application.rb — variant pipeline (libvips by default in Rails 7+)
# Rails.application.config.active_storage.variant_processor = :vips
What ships with it
1 file 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.
- 2mo ago Changed 68814ce516b0
- 3mo ago First seen · 220 lines · 108 tokens per session scan A 39bf364e914f
actiontext-richtext is a skill published in the GitHub repository sandeepmvl/rails-skills (22 stars, last pushed 2mo ago), licensed MIT. It adds 108 tokens to every session and 1,850 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-08-30.
actiontext-richtext compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| actiontext-richtextsandeepmvl/rails-skills | Skill | 22 | 2mo ago | MIT | A | 108 | Claude Code, Codex |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 70k | 5d ago | Apache-2.0 | A | 217 | Claude Code, Codex |
| tao-run-inference-serviceNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 92 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 46 | Claude Code |
| dev-runtimelangwatch/langwatch | Skill | 5.1k | today | Apache-2.0 | A | 172 | Claude Code |
| api-designericrisco/rsc-harness | Skill | 701 | today | MIT | A | 105 | Claude Code, Codex |