Rails Presenter

🌐Community
by thibautbaissac · vlatest · Repository

Generates clean, reusable Rails presenters for API responses, streamlining data formatting and improving consistency.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add rails-presenter npx -- -y @trustedskills/rails-presenter
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "rails-presenter": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/rails-presenter"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

The rails-presenter skill provides a way to generate Rails Presenters. It helps separate presentation logic from your views and models, making your code more maintainable and testable. This skill can create presenter classes based on model definitions or existing view requirements.

When to use it

  • You need to extract complex view logic into reusable components.
  • You want to improve the separation of concerns in your Rails application.
  • You're refactoring a view and want to move its logic into a presenter class.
  • You are building new features that require customized data formatting for display.

Key capabilities

  • Generates Rails Presenter classes.
  • Separates presentation logic from models and views.
  • Promotes code reusability and testability.

Example prompts

  • "Create a presenter for the Article model."
  • "Generate a presenter to format the User object for display on the profile page."
  • “I need a presenter that displays the article title, author, and publication date.”

Tips & gotchas

  • Requires a Rails environment to function correctly.
  • The skill's output is intended as a starting point; further customization may be needed based on your specific application requirements.

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 HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
thibautbaissac
Installs
15

🌐 Community

Passed automated security scans.