Rails Code Generation

Generate Rails models, controllers, migrations, tests, and background jobs.

Updated Nov 16, 2025
One-click install
npx skills add https://github.com/FlorinPopaCodes/claude-marketplace --skill rails-code-generation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Rails Code Generation
Source: https://github.com/FlorinPopaCodes/claude-marketplace/tree/main/plugins/rails-codegen/skills/rails-codegen
Command: npx skills add https://github.com/FlorinPopaCodes/claude-marketplace --skill rails-code-generation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a pragmatic, opinionated standard for AI-assisted Rails development inspired by Evil Martians' AGENTS.md. It helps generate idiomatic, readable Rails code and enforces clean architecture.

Core Features & Use Cases

  • Rails Conventions: Leverage Rails defaults and avoid fighting the framework.
  • Domain Language: Name models after business concepts.
  • Layered Architecture: Models for business logic, controllers for HTTP, jobs for async tasks; avoid "services" and "contexts" directories.
  • Reference Patterns: Refer to standard patterns for models, controllers, forms, queries, and tests to keep code boring yet robust.

Quick Start

Ask for scaffolding for a new domain (e.g., "Create a Cloud resource with model, controller, and background job following AGENTS standards").

Frequently Asked Questions about Rails Code Generation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Rails models and controllers that follow framework conventions?

Rails code generation creates models, controllers, and migrations aligned with Rails conventions and best practices. Describe your domain entity—for example, "Create a Cloud resource with model, controller, and background job"—and the Skill scaffolds ready-to-use components with proper layer separation, naming, and ActiveRecord integration.

What's the best way to structure Rails code for clean architecture?

Clean Rails architecture separates concerns into models for business logic, controllers for HTTP handling, and background jobs for async work—avoiding service and context directories. This Skill enforces that layered structure, domain-language naming, and data normalization to keep code idiomatic and maintainable.

Can I generate Rails migrations and tests alongside models and controllers?

Yes. This Skill generates complete Rails scaffolding including models, controllers, migrations, tests, and background jobs in coherent file structures. All output code is runnable and adheres to Rails conventions for readability and integration with your existing ActiveRecord toolset.

How do I ensure generated Rails code stays readable and follows naming conventions?

The Skill enforces Rails conventions, domain-language naming after business concepts, and reference patterns for models, controllers, forms, and queries. Generated code prioritizes readability and alignment with Rails defaults so your codebase remains boring, robust, and easy to maintain.

Does this work for adding background jobs and async tasks to my Rails app?

Yes. The Skill covers background job generation as part of full Rails scaffolding. Describe your async task and domain—for example, "Create a background job to process cloud resources"—and receive production-ready code that integrates seamlessly with your Rails application.

What if I need to generate code for specific Rails patterns or configurations?

This Skill references standard patterns for models, controllers, forms, and queries to ensure consistency. Request scaffolding for your domain with specific requirements—such as form handling, query optimization, or app configuration—and receive code that follows Rails idioms and best practices.