CtrlK
BlogDocsLog inGet started
Tessl Logo

igmarin/rails-agent-skills

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

1.77x
Quality

93%

Does it follow best practices?

Impact

96%

1.77x

Average score across 41 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

adapter_examples.mdskills/engines/extract-engine/references/

Adapter examples for host dependencies

This file contains the full adapter example referenced from SKILL.md. Use this as a drop-in reference when extracting slices that need a host-provided dependency (current user, feature flags, host services).

# lib/my_engine/configuration.rb
module MyEngine
  class Configuration
    attr_accessor :current_user_provider
  end

  def self.config
    @config ||= Configuration.new
  end

  def self.configure
    yield config
  end
end

# In engine: resolve user through config, not hardcoded constant
class OrderCreator
  def initialize(user)
    @user = user
  end

  def self.for_request(request)
    new(MyEngine.config.current_user_provider.call(request))
  end
end

# Host initializer (config/initializers/my_engine.rb)
MyEngine.configure do |config|
  config.current_user_provider = ->(request) { request.env['warden'].user }
end

Notes

  • Keep the engine code free of host-specific constants; use a tiny, well-documented configuration seam.
  • Document the expected callable signature for providers (e.g., ->(request) { ... }).
  • Prefer defensive adapters that return nil or raise a clear error if the contract isn't satisfied.

skills

README.md

server.json

tile.json