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

adapter_examples.mdskills/engines/rails-engine-extraction/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

tile.json