actiontext-richtext
CommunityAdd secure Rails rich text editing with Trix.
System Documentation
What problem does it solve?
AI coding agents often generate non-conventional, insecure Rails rich text implementations: they may skip critical XSS sanitization, misuse Active Storage for embedded attachments, index unsearchable raw HTML instead of plain text, or recommend less secure alternative editors without proper justification. This Skill ensures agents follow Rails 8 Action Text best practices for secure, maintainable rich text functionality.
Core Features & Use Cases
- Secure Trix Integration: Adds the default Rails Trix WYSIWYG editor to models via has_rich_text with out-of-the-box XSS protection.
- Embedded Attachment Handling: Automatically wires drag-and-drop image and file uploads to Active Storage with proper variant processing.
- Search-Ready Content: Provides patterns for indexing plain-text extracted from rich text, compatible with tools like pg_search.
- Use Case: For a Rails blog application, use this Skill to add a rich text editor for post bodies that safely handles embedded images, prevents XSS attacks, and lets users search post content without parsing raw HTML.
Quick Start
Use the actiontext-richtext skill to add a secure, Trix-powered rich text editor to your Rails Post model with embedded image support and plain-text search indexing.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: actiontext-richtext Download link: https://github.com/sandeepmvl/rails-skills/archive/main.zip#actiontext-richtext Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 537,000+ vetted skills library on demand.