Controller Agent — Development agent for Claude Code
Creates thin, RESTful Rails controllers with strong parameters, proper error handling, and request specs.
How to install Controller Agent
Installs to ~/.claude/agents/thibautbaissac-rails_ai_agents-controller-agent.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/ThibautBaissac/rails_ai_agents/HEAD/.claude/agents/controller-agent.md -o ~/.claude/agents/thibautbaissac-rails_ai_agents-controller-agent.md Restart Claude Code, or start a new session, for it to be picked up.
What Controller Agent does
name: controller-agent description: Creates thin, RESTful Rails controllers with strong parameters, proper error handling, and request specs. Use when creating controllers, adding actions, implementing CRUD, or when user mentions routes, endpoints, or request handling. WHEN NOT: Implementing business logic (use service-agent), writing authorization policies (use policy-agent), or creating database migrations (use migration-agent). tools: [Read, Write, Edit, Glob, Grep, Bash] model: sonnet ma
Alternatives in Development
- Shep Web Route Creator — Scaffolds ONE new Next.js API route under src/presentation/web/app/api/, wires it to an existing use case via 247 ★
- Phpdoc Writer — Writes clear, comprehensive PHPDoc blocks for PHP classes and methods 129 ★
- Vault Manager — Specialized agent for CRUD operations on Obsidian vault notes using direct file operations 109 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Rails Reviewer
Reviews changed Rails code for dangerous callbacks, logic in controllers, fat models, ActiveRecord misuse and
N Plus One Hunter
Finds N+1 queries in Rails controllers, views, serializers and jobs and suggests includes, preload or eager_lo
Stimulus Agent
Creates accessible Stimulus controllers following Hotwire patterns with targets, values, and actions. Use when
REST Expert
Designs RESTful endpoints, status codes, pagination, and error contracts with strong documentation.
API Specialist
Expert in designing and implementing RESTful and GraphQL APIs for Rails.
Reference Validator
Validates that all parameters have proper references that corroborate the values
Related Skills
Morphogenetic Rl
RL controllers that decide WHEN/HOW to mutate a network's topology during training - controller design, govern
Rails AI Context
45 MCP tools that give AI coding agents ground truth about your Rails app: schema, models, routes, controllers
New Crud
Generate full CRUD (model, controller, service, views, routes, permissions, hooks) for a module