Rails Presenter
Generates clean, reusable Rails presenters for API responses, streamlining data formatting and improving developer efficiency.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add dchuk-rails-presenter npx -- -y @trustedskills/dchuk-rails-presenter
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"dchuk-rails-presenter": {
"command": "npx",
"args": [
"-y",
"@trustedskills/dchuk-rails-presenter"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides a Rails Presenter. It allows you to extract data from ActiveRecord models and format them into presentable objects, separating presentation logic from your views or controllers. This promotes cleaner code and improved testability by isolating the concerns of data retrieval and formatting.
When to use it
- Generating formatted output for reports based on database records.
- Creating consistent representations of model data across different parts of an application.
- Simplifying complex view logic by offloading presentation details to a dedicated presenter class.
- Preparing data for display in API responses or other external systems.
Key capabilities
- Rails Presenter implementation
- Data formatting and transformation
- Separation of concerns (data retrieval vs. presentation)
Example prompts
- "Create a Rails Presenter for the 'Product' model."
- "Generate a presenter to format this ActiveRecord object for display in a table."
- "Show me how to use a Rails Presenter with a collection of users."
Tips & gotchas
- Requires a Ruby on Rails environment.
- Familiarity with ActiveRecord models and basic Rails concepts is helpful.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.