Curated library of atomic skills and personas for Hanami, dry-rb, and ROM Ruby development. Covers actions, slices, repositories, relations, changesets, providers, DI, operations, TDD, CLI, views, routing, validation, and 10 orchestration personas. Shared Ruby process skills have moved to ruby-core-skills. Uses Markdown + Front-matter architecture.
95
95%
Does it follow best practices?
Impact
96%
1.20xAverage score across 45 eval scenarios
Passed
No known issues
Encapsulate a business workflow in an operation. Each step is explicit — success flows forward, failure short-circuits.
dry-operation for sequential steps, dry-transaction for composed operations with rollback (each step is registered and can be overridden; failed steps trigger rollback of completed steps).Success(value) or Failure(error).include Deps[...] for dependencies.Write test → Run test → Verify it FAILS → Implement → Verify it PASSES
DO NOT put business logic in actions. Actions delegate to operations.
DO NOT return raw values — always wrap in Success or Failure.slices/<slice>/operations/<namespace>/:
module Users
class CreateUser < Dry::Operation
include Deps["repositories.user_repo"]
def call(input)
attrs = step validate(input)
user = step persist(attrs)
step notify(user)
user
end
private
def validate(input) = # returns Success(attrs) or Failure(errors)
def persist(attrs) = # returns Success(user) or Failure(error)
def notify(user) = # returns Success(true) or Failure(error)
end
endFailure, the operation stops and returns that failure.RSpec.describe Users::CreateUser do
subject(:operation) { described_class.new(user_repo: user_repo) }
let(:user_repo) { instance_double("UserRepo", create: Success(user)) }
let(:user) { double("User", id: 1, email: "test@example.com") }
describe "#call" do
context "when input is valid" do
it "returns Success with the created user" do
result = operation.call(email: "test@example.com", password: "secret")
expect(result).to be_success
expect(result.value!).to eq(user)
end
end
context "when validation fails" do
it "returns Failure with validation errors" do
result = operation.call(email: "", password: "")
expect(result).to be_failure
expect(result.failure).to include(:email)
end
end
context "when persistence fails" do
before { allow(user_repo).to receive(:create).and_return(Failure(:db_error)) }
it "returns Failure and does not send a notification" do
result = operation.call(email: "test@example.com", password: "secret")
expect(result).to be_failure
expect(result.failure).to eq(:db_error)
end
end
end
endinclude Deps[...].For extended operation patterns, see OPERATION_PATTERNS.md.
| Skill | When to chain |
|---|---|
| create-validation-contract | Before the operation, to define validation rules |
| create-action | After the operation, to wire it to an HTTP endpoint |
| implement-di | To inject repositories and services into the operation |
| tdd-loop agent | Full TDD cycle including operation testing |
.tessl-plugin
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
scenario-42
scenario-43
scenario-44
scenario-45
skills
actions
build-json-api
create-action
handle-errors
validate-params
context
load-context
db
create-changeset
create-repository
define-relation
write-migration
dry-monads
handle-result-pattern
dry-rb
create-operation
create-validation-contract
personas
providers
configure-providers
implement-di
review-security
routing
define-routes
slices
configure-slice
create-slice
extract-slice
review-slice-boundaries
test-slice