Curated library of 41 public AI agent skills for Ruby on Rails development. Organized by category: planning, testing, code-quality, ddd, engines, infrastructure, api, patterns, context, and orchestration. Covers code review, architecture, security, testing (RSpec), engines, service objects, DDD patterns, and TDD automation. Repository workflows remain documented in GitHub but are intentionally excluded from the Tessl tile.
95
93%
Does it follow best practices?
Impact
96%
1.77xAverage score across 41 eval scenarios
Passed
No known issues
Use this skill when the task is to change structure without changing intended behavior.
Core principle: Small, reversible steps over large rewrites. Separate design improvement from behavior change.
| Step | Action | Verification |
|---|---|---|
| 1 | Define stable behavior | Written statement of what must not change |
| 2 | Add characterization tests | Tests pass on current code |
| 3 | Choose smallest safe slice | One boundary at a time |
| 4 | Rename, move, or extract | Tests still pass |
| 5 | Remove compatibility shims | Tests still pass, new path proven |
NO REFACTORING WITHOUT CHARACTERIZATION TESTS FIRST.
NEVER mix behavior changes with structural refactors in the same step —
if behavior changes are also needed, complete the structural refactor first,
then apply behavior changes in a separate step with its own test.
ONE boundary per refactoring step — never extract two abstractions in the same step.
If a public interface changes, document the compatibility shim and its removal condition.Identify the exact inputs and outputs of the logic being refactored. Keep public interfaces stable until callers are migrated. Prefer adapters, facades, or wrappers for transitional states. Make the adapter/facade/wrapper decision first-class in the plan: either name the transitional shim and its removal condition, or state why no shim is needed because the public interface remains unchanged. Include this as its own output subsection titled Adapter/facade/wrapper decision before listing refactoring steps.
Write this before touching any production file. No refactoring step begins until this test exists and passes on the current (un-refactored) code.
# spec/requests/orders_spec.rb (or service/model spec — mirror the file being refactored)
# frozen_string_literal: true
RSpec.describe "Orders#create current behavior", type: :request do
describe "POST /orders" do
let(:valid_params) { { order: { product_id: 1, quantity: 2 } } }
it "creates order and enqueues warehouse notification" do
expect { post orders_path, params: valid_params }
.to change(Order, :count).by(1)
expect(NotifyWarehouseJob).to have_been_enqueued
end
end
endRun it: bundle exec rspec spec/requests/orders_spec.rb — it must pass on the current code. If it fails, stop and fix the characterization test or current behavior mismatch before refactoring.
In the output, state this stop condition explicitly before the first refactor step: if the characterization spec fails, do not continue.
Good first moves include: renaming unclear methods, isolating duplicated logic behind a shared object, or wrapping external integrations before moving call sites. Add narrow seams before deleting old code paths.
Extract, move, or rename logic. Stop and simplify if the refactor introduces more indirection than clarity.
Before:
def create
order = OrderCreator.new(params).call
NotifyWarehouseJob.perform_later(order.id)
redirect_to order_path(order)
endAfter:
def create
order = Orders::CreateOrder.call(params: params)
redirect_to order_path(order)
endRun verification after every refactoring step:
Report test run output at EACH step — not only at the end. At least two separate evidence entries at different sequence points are required. Use an Observed output label only for output copied from an actual run. Never label planned or desired results as "Required output", "Expected output", or "Expected final output". Do not write "required exit condition", "must produce 0 failures", or "must still report 0 failures" as evidence; run the command and paste the observed final line, or state that verification has not been run yet. Forbidden claims: "Should work now", "Looks correct", "I'm confident" — run the tests and report evidence instead.
Load these files only when their specific content is needed:
When asked to refactor, your output MUST include:
| Skill | When to chain |
|---|---|
| write-tests | For additional spec structure and shared examples after characterization tests are written |
| review-architecture | When refactor reveals structural problems (details) |
| code-review | For reviewing the refactored code (details) |
| create-service-object | When extracting logic into service objects (details) |
docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
scenario-11
scenario-12
scenario-13
scenario-14
scenario-15
scenario-16
scenario-17
scenario-18
scenario-19
scenario-20
scenario-21
scenario-22
scenario-23
scenario-24
scenario-25
scenario-26
scenario-27
scenario-28
scenario-29
scenario-30
scenario-31
scenario-32
scenario-33
scenario-34
scenario-35
scenario-36
scenario-37
scenario-38
scenario-39
scenario-40
scenario-41
mcp_server
skills
api
generate-api-collection
implement-graphql
code-quality
apply-code-conventions
apply-stack-conventions
assets
snippets
code-review
refactor-code
respond-to-review
review-architecture
security-check
context
load-context
setup-environment
ddd
define-domain-language
model-domain
review-domain-boundaries
engines
create-engine
create-engine-installer
document-engine
extract-engine
release-engine
review-engine
test-engine
upgrade-engine
infrastructure
implement-background-job
implement-hotwire
optimize-performance
review-migration
seed-database
version-api
orchestration
skill-router
patterns
create-service-object
implement-calculator-pattern
write-yard-docs
planning
create-prd
generate-tasks
plan-tickets
testing
plan-tests
test-service
triage-bug
write-tests
workflows