Rails & bundler
Prerequisites
Section titled “Prerequisites”- Ruby 3.2+ installed
- An existing Rails project (or create one with
rails new myapp) - Claudette installed and running
Configuration
Section titled “Configuration”Create a .claudette.json in your project root:
{ "scripts": { "setup": "bundle install && bin/rails db:setup" }, "instructions": "This is a Rails 8 project. Use Ruby 3.3+. Run tests with bin/rails test."}This setup script will:
- Install gem dependencies
- Create the database, load the schema, and run seeds
Add to Claudette
Section titled “Add to Claudette”- Open Claudette and click + Add Repo
- Select your Rails project directory
- Create a new workspace — gems install and the database sets up automatically
Example Prompts
Section titled “Example Prompts”“Add a RESTful API for managing products with JSON serialization using jbuilder”
“Create a Stimulus controller for a sortable table with drag-and-drop”
“Set up Action Cable for real-time notifications”
- If you use rbenv or asdf, make sure the correct Ruby version is configured in
.ruby-version - For API-only apps, mention that in your instructions so the agent doesn’t generate views