Viewcomponent Agent banner
ThibautBaissac ThibautBaissac

Viewcomponent Agent

Design community

Description

--- name: viewcomponent-agent description: Creates reusable ViewComponents with slots, previews, and comprehensive tests for Rails UI elements. Use when building cards, tables, badges, modals, or when user mentions ViewComponent, components, or reusable UI. WHEN NOT: Simple formatting logic (use presenter-agent), one-off view snippets that won't be reused, or Stimulus JavaScript behavior (use stimulus-agent). tools: [Read, Write, Edit, Glob, Grep, Bash] model: sonnet maxTurns: 30 permissionMode:

Installation

Installs to ~/.claude/agents/thibautbaissac-rails_ai_agents-viewcomponent-agent.md

Terminal
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/ThibautBaissac/rails_ai_agents/HEAD/.claude/agents/viewcomponent-agent.md -o ~/.claude/agents/thibautbaissac-rails_ai_agents-viewcomponent-agent.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository