justindonnaruma/justindonnaruma-first-assistant icon
public
Published on 5/29/2025
Rails Agent

Rails assistant with a focus on Rails 8 defaults, Flowbite for UI, and nothing else.

Rules
Models
Context
relace Relace Instant Apply model icon

Relace Instant Apply

relace

40kinput·32koutput
anthropic Claude 3.7 Sonnet model icon

Claude 3.7 Sonnet

anthropic

200kinput·8.192koutput
anthropic Claude 3.5 Haiku model icon

Claude 3.5 Haiku

anthropic

200kinput·8.192koutput
mistral Codestral model icon

Codestral

mistral

voyage Voyage AI rerank-2 model icon

Voyage AI rerank-2

voyage

voyage voyage-code-3 model icon

voyage-code-3

voyage

Here is a tailored ruleset for your AI Coding Assistant focused on **Ruby on Rails 8+, Ruby 3.4+**, using **Hotwire**, **SolidQueue**, **SolidCache**, and **Flowbite** for UI:

---

## AI Coding Assistant Ruleset for Ruby on Rails Development

**Primary Stack Requirements:**

* Ruby 3.4+
* Ruby on Rails 8+
* Hotwire (Turbo + Stimulus) for frontend interactivity
* SolidQueue for job processing
* SolidCache for caching
* Flowbite (Tailwind CSS component library) for UI

> ❗**Deviation from this stack is prohibited without explicit override permission.**

---

## Build & Development Commands

* Use `bin/setup` to prepare local development environments.
* Use `bin/dev` to run the development server with `foreman` or `overmind` (for Rails + JS + Sidekiq-like services).
* Use `rails assets:precompile` before deployment if needed.
* For background jobs, use `bin/rails solid_queue:start`.
* Prefer `.env` and `dotenv-rails` for environment configuration unless using encrypted credentials.

---

## Testing Guidelines

* Use `minitest` by default; prefer `test/unit`-style syntax.
* Use `rails test` for unit/integration tests.
* Background jobs should be tested with `ActiveJob::TestHelper`.
* Cache and queue behaviors must be covered with integration tests, mocking minimal internals.
* Frontend (Stimulus) behavior should be tested with system tests using `capybara` and `turbo_stream` assertions.
* Avoid reliance on JavaScript testing frameworks unless absolutely necessary; favor Rails-native testing.

---

## Code Style & Guidelines

* Follow the [Standard Ruby style guide](https://github.com/standardrb/standard) unless otherwise specified.
* Use `annotate` to document models with schema info.
* Use `turbo_frame_tag` and `turbo_stream` helpers for dynamic views.
* All background jobs must use `SolidQueue::Job`.
* All caching logic must be wrapped in `SolidCache.fetch` or `SolidCache.write/read`.
* UI components must be built using Tailwind CSS and Flowbite components—never inline styles or Bootstrap.

---

## Documentation Guidelines

* Every model, service object, and background job must have YARD-style comments (`##` headers with `@param`, `@return`, etc.).
* Controllers must include inline comments for filters and `respond_to` blocks.
* Document job retry logic and failure handling explicitly in comments.
* Stimulus controllers must include JSDoc-style block comments above their class definitions.
* Include a `README.md` in each Rails engine or isolated component with setup instructions and component usage.

---

Let me know if you'd like this turned into a markdown file, YAML config, or embedded into a Rails initializer for AI tool integration.
Rails API Docshttps://api.rubyonrails.org
Flowbite LLM Docshttps://raw.githubusercontent.com/themesberg/flowbite/refs/heads/main/llms-full.txt
Rails Guideshttps://guides.rubyonrails.org

Prompts

Learn more

No Prompts configured

Context

Learn more
@code
Reference specific functions or classes from throughout your project
@docs
Reference the contents from any documentation site
@diff
Reference all of the changes you've made to your current branch
@terminal
Reference the last command you ran in your IDE's terminal and its output
@problems
Get Problems from the current file
@folder
Uses the same retrieval mechanism as @Codebase, but only on a single folder
@codebase
Reference the most relevant snippets from your codebase
@repo-map
Reference the outline of your codebase
@file
Reference any file in your current workspace
@currentFile
Reference the currently open file
@open
Reference the contents of all of your open files

No Data configured

MCP Servers

Learn more

No MCP Servers configured