CtrlK
BlogDocsLog inGet started
Tessl Logo

igmarin/rails-agent-skills

Curated library of 39 AI agent skills for Ruby on Rails development. Organized by category: planning, testing, code-quality, ddd, engines, infrastructure, api, patterns, context, orchestration, and workflows. Includes 5 callable workflow skills (rails-tdd-loop, rails-review-flow, rails-setup-flow, rails-quality-flow, rails-engines-flow) for complete development cycles. Covers code review, architecture, security, testing (RSpec), engines, service objects, DDD patterns, and TDD automation.

95

1.20x
Quality

98%

Does it follow best practices?

Impact

95%

1.20x

Average score across 35 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

checklist.mdskills/code-quality/rails-code-conventions/assets/

Rails Code Conventions Checklist

Purpose: concise, actionable coding rules for Rails projects in this repo.

Core rules

  • Prefer POROs/service objects over fat models/controllers
  • Prefer composition over inheritance
  • Follow Single Responsibility: one reason to change per class
  • Avoid long callbacks; prefer explicit service calls
  • Use # frozen_string_literal: true at file top

Per-path rules

  • app/models: keep validations and minimal scopes; move business logic to services
  • app/controllers: thin controllers; permit strong params; render small view models
  • app/services: provide .call class methods returning { success: bool, response: { ... } }
  • app/jobs: idempotent perform methods with retry/discard strategies
  • lib/: keep adapters and integration clients; avoid Rails.env checks here

Testing

  • Tests are the gate: write spec → run → fail → implement → pass
  • Use FactoryBot and traits for test data; avoid global DB state
  • Prefer request specs for integration and unit specs for services

Style

  • Follow project's RuboCop config where present
  • Name boolean predicates with ?
  • Prefer keyword arguments for service objects

Documentation

  • Public classes/methods must have YARD @example and @raise when applicable

Small checklist for PRs

  • Tests added for new behavior
  • Linter passes locally
  • CHANGELOG entry if user-visible
  • Relevant README/YARD updated

skills

code-quality

rails-code-conventions

README.md

tile.json