一键导入
service-object
Create service objects in app/services/ using module namespaces for encapsulation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create service objects in app/services/ using module namespaces for encapsulation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Create and manage Solid Queue background jobs with perform_now vs perform_later patterns
Perform deep critical analysis of changes with focus on performance vs sustainability trade-offs
Add controllers and routes following project patterns for organizer namespaces, strong params, and Turbo
Build Rails forms with Tailwind CSS, Turbo integration, and strong params validation
Write database migrations for PostgreSQL with PostGIS, UUID primary keys, enums, and counter caches
Create and modify Rails models following project conventions for STI, enums, validations, counter caches, and scopes
基于 SOC 职业分类
| name | service-object |
| description | Create service objects in app/services/ using module namespaces for encapsulation |
| license | MIT |
test/services/ directoriesapp/services/
tournaments/
player_sorter.rb
uneven_pod_generator.rb
strategies/
swiss_matcher.rb
spread_matcher.rb
scoring/
point_wager.rb
circuits/
calculate_points.rb
# frozen_string_literal: true
module Namespace
class ClassName
def initialize(dependency_one, dependency_two)
@dependency_one = dependency_one
@dependency_two = dependency_two
end
def public_method!(arg1, arg2:)
# Public API — bang method for operations with side effects
end
private
attr_reader :dependency_one, :dependency_two
def helper_method(arg)
# Private implementation
end
end
end
CalculatePoints, UnevenPodGenerator)#method! for mutating operations, #method for read-onlymodule Tournaments, module Scoring)test/services/namespaced/ matching directory structureassert_not_raise { service.public_method! }app/services/scoring/point_wager.rb — Example: full recalculation, multiple private helpersapp/services/circuits/calculate_points.rb — Example: iteration with find_or_initializeapp/services/tournaments/uneven_pod_generator.rb — Example: calculate + build pattern