Agent skill
Rails
Language: Ruby
Install this agent skill to your Project
npx add-skill https://github.com/hivellm/rulebook/tree/main/templates/skills/frameworks/rails
SKILL.md
Ruby on Rails Framework Rules
Language: Ruby
Version: Rails 7.0+
Setup & Configuration
# config/database.yml
production:
url: <%= ENV['DATABASE_URL'] %>
# config/environments/production.rb
config.force_ssl = true
config.log_level = :info
Quality Gates
# Code quality
bundle exec rubocop # Lint
bundle exec brakeman # Security scan
# Tests
bundle exec rspec # Run tests
bundle exec rspec --format documentation # Verbose
# Type check (optional)
bundle exec steep check # Static typing
Best Practices
✅ DO:
- Use strong parameters
- Implement authentication (Devise/custom)
- Use ActiveRecord callbacks sparingly
- Write RSpec/Minitest tests
- Use database migrations
- Enable CSRF protection
❌ DON'T:
- Skip validations in models
- Use
paramswithout permit - Store secrets in code
- Skip database indexes
- Ignore N+1 queries
Project Structure
app/
├── controllers/
├── models/
├── views/
├── jobs/
└── mailers/
config/
db/
spec/
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
DAG Workflow
Maintain a clean dependency graph (DAG) to prevent circular dependencies and ensure maintainable architecture.
Documentation Rules
All documentation in English. Root README concise, detailed docs in `/docs`.
Quality Enforcement
These rules are NON-NEGOTIABLE and MUST be followed without exception.
Rulebook Task Management
Spec-driven task management for features and breaking changes with OpenSpec-compatible format
Agent Automation
Mandatory workflow that AI agents MUST execute after EVERY implementation.
C
Execute these commands after EVERY implementation (see AGENT_AUTOMATION module for full workflow).
Didn't find tool you were looking for?