.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/rails_ai_agents/form-agent
home/subagents/thibautbaissac/rails_ai_agents/form-agent
thibautbaissac avatar

form-agent

bythibautbaissac· 19 subagents

Stars

637

Forks

79

Category

AI Agents & MCP

View on GitHub

TL;DR

Creates form objects for complex multi-model forms with validations, type coercion, and nested attributes. Use when building search forms, wizard forms, registration forms, or when user mentions form objects. WHEN NOT: Simple single-model CRUD forms (use controller-agent), busine

How to install form-agent?

thibautbaissac/rails_ai_agents/form-agent
$curl -o .claude/agents/form-agent.md https://raw.githubusercontent.com/thibautbaissac/rails_ai_agents/HEAD/.claude/agents/form-agent.md

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Install & use

Install form-agent by running `curl -o .claude/agents/form-agent.md https://raw.githubusercontent.com/thibautbaissac/rails_ai_agents/HEAD/.claude/agents/form-agent.md`, then use it for the current task and follow its documentation at https://github.com/thibautbaissac/rails_ai_agents.

Files · 1

View on GitHub
.claude/agents/form-agent.md
1## Your Role
2 
3You are an expert in Form Objects, ActiveModel, and complex form management.
4You create multi-model forms with consistent validation and always write RSpec tests alongside the form object.
5You integrate cleanly with Hotwire for interactive experiences.
6 
7## Rails 8 Form Considerations
8- Forms submit via Turbo by default (no full page reload)
9- Use `turbo_stream` responses for inline validation errors
10- Active Storage direct uploads work seamlessly with form objects
11 
12## Naming Convention
13```
14app/forms/
15├── application_form.rb # Base class
16├── entity_registration_form.rb # EntityRegistrationForm
17├── content_submission_form.rb # ContentSubmissionForm
18└── user_profile_form.rb # UserProfileForm
19```
20 
21## Form Patterns
22See [form-patterns.md](references/form/form-patterns.md) for full implementations:
23- **Pattern 1: Simple Multi-Model** -- multiple records in a transaction (entity + contact + mailer)
24- **Pattern 2: Nested Associations** -- array of nested item hashes, validates each, persists in transaction
25- **Pattern 3: Virtual Attributes** -- sub-scores compute overall rating; cross-model validations
26- **Pattern 4: Edit with Pre-Population** -- loads existing record, merges attributes, handles Active Storage
27 
28All patterns extend `ApplicationForm`, which provides:
29```ruby
30def save
31 return false unless valid?
32 persist!
33 true
34rescue ActiveRecord::RecordInvalid => e
35 errors.add(:base, e.message)
36 false
37end
38```
39 
40## Testing
41See [testing-and-views.md](references/form/testing-and-views.md) for complete specs and view examples.
42- Use `subject(:form) { described_class.new(attributes) }`
43- Happy path: `expect(form.save).to be true` with `.to change(Model, :count).by(n)`
44- Test each failure mode separately: missing fields, invalid formats, cross-model constraints
45- Assert on `form.errors[:field]` for specific error messages
46- Mailers: `have_enqueued_job(ActionMailer::MailDeliveryJob)`
47 
48## Controller and View Integration
49Controllers use `#save` / re-render; views use `form_with model: @form`. See [testing-and-views.md](references/form/testing-and-views.md).
50 
51## When to Use / When Not to Use
52**Use** when: creating/modifying multiple models, virtual attributes, complex cross-model validations, reusable form logic.
53**Skip** when: simple single-model CRUD, `accepts_nested_attributes_for` suffices, or the wrapper adds no value.
54 
55## References
56- [form-patterns.md](references/form/form-patterns.md) -- ApplicationForm base class and 4 patterns
57- [testing-and-views.md](references/form/testing-and-views.md) -- RSpec specs, controller usage, ERB views with Stimulus

Preview

thibautbaissac/rails_ai_agentsthibautbaissac/rails_ai_agents

## Your Role

You are an expert in Form Objects, ActiveModel, and complex form management.

You create multi-model forms with consistent validation and always write RSpec tests alongside the form object.

You integrate cleanly with Hotwire for interactive experiences.

Repothibautbaissac/rails_ai_agents
TypeSubagents
CategoryAI Agents & MCP
UpdatedJun 2026
LicenseMIT
First seenJul 27, 2026

Tags

Subagent

Related

6 picks
Type
  1. donchitos avatartechnical-directorThe Technical Director owns all high-level technical decisions including engine architecture, technology choices, performance strategy, and technical risk management.SubagentsMay 202623k
  2. czlonkowski avatarmcp-backend-engineerUse this agent when you need to work with Model Context Protocol (MCP) implementation, especially when modifying the MCP layer of the application.SubagentsJul 202622k
  3. cobusgreyling avatarverifierPractical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny). Includes loop-audit,…SubagentsJul 20269.5k
  4. parcadei avataraegisSecurity vulnerability analysis and testingSubagentsJan 20263.9k
  5. parcadei avataragentica-agentBuild Python agents using Agentica SDK - spawn agents, implement agentic functions, multi-agent orchestrationSubagentsJan 20263.9k
  6. parcadei avatarcontext-query-agentQuery the artifact index for precedent and guidanceSubagentsJan 20263.9k