alpha

Gives a coding assistant Ruby on Rails conventions: version awareness, style, thin controllers, models, jobs, security, performance and testing.
description: 'Ruby on Rails coding conventions and guidelines'
applyTo: '**/*.rb'
Gemfile.lock, config.load_defaults, and environment configuration before choosing APIs or changing infrastructure. Preserve the application's supported Rails and Ruby versions.bin/rails generate authentication provides a starting point for session-based authentication and password resets. Use it only when it fits the requested authentication work; review authorization and any additional account requirements separately.References: [Rails 8.0 release notes](https://guides.rubyonrails.org/8_0_release_notes.html), [Active Job configuration](https://guides.rubyonrails.org/active_job_basics.html), [Rails authentication guidance](https://guides.rubyonrails.org/security.html).
rubocop, standardrb, or rufo for consistent formatting.unless for negative conditions, but avoid it with else for clarity.&.) instead of multiple nil checks..present?, .blank?, and .any? over manual nil/empty checks.null: false and unique: true at the DB level, not just in models.find_each for iterating over large datasets to reduce memory usage.before_action callbacks sparingly — avoid business logic in them.Rails.cache to store expensive computations or frequently accessed data.Rails.root.join(...) instead of hardcoding.class_name and foreign_key in associations for explicit relationships.Rails.application.credentials or ENV variables.FactoryBot (RSpec) or fixtures (Minitest) to set up test data cleanly.puts — debug with byebug, pry, or logger utilities.app/services when needed; do not create extra application layers by default.app/forms to manage validation and submission logic.app/serializers directory to format API responses.app/policies to control user access to resources.app/graphql.app/validators to enforce specialized validation logic.app/queries for better reuse and testability.app/types directory to extend or override ActiveModel type behavior.rails generate to create new models, controllers, and migrations.rails db:migrate to apply database migrations.rails db:seed to populate the database with initial data.rails db:rollback to revert the last migration.rails console to interact with the Rails application in a REPL environment.rails server to start the development server.rails test to run the test suite.rails routes to list all defined routes in the application.rails assets:precompile to compile assets for production.resources to follow RESTful conventions./api/v1/) for versioning and forward compatibility.ActiveModel::Serializer or fast_jsonapi for consistent output.before_action filters to load and authorize resources, not business logic.kaminari or pagy) for endpoints returning large datasets.rack-attack.includes when eager loading related data.rswag, or apipie-rails.rack-cors) to allow cross-origin access to your API when needed.app/javascript. Modern Rails supports import maps or JavaScript bundling; follow the configured approach rather than introducing Webpacker. See [Working with JavaScript in Rails](https://guides.rubyonrails.org/working_with_javascript_in_rails.html).app/assets/stylesheets..js or .scss files for clarity and reusability.data-* attributes to bridge frontend interactivity with Rails-generated HTML and Stimulus.test/models (Minitest) or spec/models (RSpec) to validate business logic.FactoryBot (RSpec) to manage test data cleanly and consistently.test/controllers or spec/requests to test RESTful API behavior.before blocks in RSpec or setup in Minitest to initialize common test data.WebMock, VCR, or stub_request to isolate test environments.system tests in Minitest or feature specs with Capybara in RSpec to simulate full user flows.SimpleCov to ensure adequate code coverage.sleep in tests; use perform_enqueued_jobs (Minitest) or ActiveJob::TestHelper with RSpec.rails test:prepare, DatabaseCleaner, or transactional_fixtures) to maintain clean state between tests.ActiveJob::TestHelper or have_enqueued_job matchers.:model, :request, :feature) for faster and targeted test runs.© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com


Butterfly on Wheat at Golden Sunrise
Paints a classical oil painting of a butterfly resting on a golden wheat stalk in misty backlit sunrise light with dewdrop bokeh.
image-prompt, oil-painting, painting, classical-art, animals, flowers, landscape, golden-hour, bokeh, dramatic-lighting, soft-lighting, vertical-format, macro, dreamy, impressionism, fine-art, vibrant-colors, spring, for-artists, gpt-image, wallpaper, quick

Chibi character 16 frame dance reference sheet
Creates a square 4x4 sheet of sixteen consecutive dance keyframes of an uploaded character, following numbered choreography steps with identity locked and secondary motion on hair and cloth.
image-prompt, character-sheet, multi-panel, dance, chibi, reference-image, character-consistency, character-design, full-body, white-background, illustration, structured-output, square-format, negative-prompt, gpt-image, for-artists, for-designers, game-assets, long-form, advanced

Running Man Pulled Back by Semi Chibi Double
Makes a bright studio editorial photo of a running person from a reference photo, with a 3D semi-chibi double tugging their clothes back and realistic fabric tension.
image-prompt, gpt-image, reference-image, face-reference, negative-prompt, photorealistic, editorial, chibi, 3d-render, studio-lighting, white-background, fashion, portrait, full-body, motion-blur, whimsical, vertical-format, character-consistency, action-figure, fashion-shoot, pixar-style, soft-lighting, for-photographers, for-artists, humorous
Loading reviews…
Loading comments…