[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71W4YD95QPWK45ZBECQD7QW":3,"skill-same:01M71W4YD95QPWK45ZBECQD7QW":49},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":23,"linkOnly":24,"markdownContent":25,"markdownBody":25,"frontMatter":26,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":13,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M71W4YD95QPWK45ZBECQD7QW","create-service-object",null,"igmarin\u002Fruby-skill-bench","igmarin","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F39272?v=4","01M71W4PJY5HAF8QXNSKN9QFZW","Ismael Marín","01M71W4PKK4BP5983KVP38ZQZ6",0,"MIT","https:\u002F\u002Fgithub.com\u002Figmarin\u002Fruby-skill-bench\u002Fblob\u002Fmain\u002Fskills\u002Fcreate-service-object\u002FSKILL.md",[],[18,19,20,21,22],"create","service","create service","object","create service object","2026-11-10 13:02:02",false,"# Create Service Object\n\nUse when extracting or writing a Ruby service that callers invoke with `.call`.\n\n## Pattern\n\n```ruby\n# frozen_string_literal: true\n\nclass ProcessOrder\n  # Process an order from sku, quantity, and payment flag.\n  #\n  # @param sku [String] product identifier\n  # @param quantity [Integer] units to purchase\n  # @param paid [Boolean] whether payment has been captured\n  # @return [Hash] `{ success: true, response: Hash }` or `{ success: false, response: { error: { message: String } } }`\n  def self.call(sku:, quantity:, paid:)\n    new(sku: sku, quantity: quantity, paid: paid).call\n  end\n\n  def initialize(sku:, quantity:, paid:)\n    @sku = sku\n    @quantity = quantity\n    @paid = paid\n  end\n\n  # @return [Hash] `{ success: true, response: Hash }` or `{ success: false, response: { error: { message: String } } }`\n  def call\n    {\n      success: true,\n      response: { order_id: 1, sku: @sku, quantity: @quantity, total_cents: @quantity * 1000 }\n    }\n  rescue StandardError => e\n    { success: false, response: { error: { message: e.message } } }\n  end\nend\n```\n\n## Hard rules\n\n1. Every `.rb` file begins with `# frozen_string_literal: true`.\n2. Public entry point is `def self.call(...)` delegating to `new(...).call`.\n3. Success: `{ success: true, response: { ... } }`.\n4. Failure: `{ success: false, response: { error: { message: '...' } } }`.\n5. Document `self.call` and `#call` with YARD `@param` and `@return`.\n6. Controllers and other callers stay thin: they delegate and map the result.\n7. Do not put HTTP, persistence models, or UI in the service response.\n",{},"main","ca98a50e1f3ac9407c5dc834b16a975d971a5e28","skills\u002Fcreate-service-object","https:\u002F\u002Fgithub.com\u002Figmarin\u002Fruby-skill-bench","https:\u002F\u002Fgithub.com\u002Figmarin","https:\u002F\u002Fismaelmarin.dev\u002F","Ruby on Rails * Rust * Python * Elixir * Staff Engineer * AI Tooling Engineer","2026-09-25 02:53:21",{"source":7,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add igmarin\u002Fruby-skill-bench --skill create-service-object",{"tool":41,"command":42},"bunx","bunx skills add igmarin\u002Fruby-skill-bench --skill create-service-object",{"tool":44,"command":45},"pnpm","pnpm dlx skills add igmarin\u002Fruby-skill-bench --skill create-service-object","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Figmarin\u002Fruby-skill-bench\u002Fblob\u002Fmain\u002Fskills\u002Fcreate-service-object\u002FSKILL.md",true,[],[50,59,68,76,85],{"skillNo":51,"name":52,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":23},"01M71W537NC80BRK3523VZXMX9","write-yard-docs","https:\u002F\u002Fgithub.com\u002Figmarin\u002Fruby-skill-bench\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-yard-docs\u002FSKILL.md",[],[56,57,58],"docs","write","write yard docs",{"skillNo":60,"name":61,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":23},"01M71W52AT3GYZ2HHJA0DE7R48","triage-bug","https:\u002F\u002Fgithub.com\u002Figmarin\u002Fruby-skill-bench\u002Fblob\u002Fmain\u002Fskills\u002Ftriage-bug\u002FSKILL.md",[],[65,66,67],"triage","bug","triage bug",{"skillNo":69,"name":70,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":23},"01M71W50S3RQ01ZTWAEFY6W2XW","test-skill","https:\u002F\u002Fgithub.com\u002Figmarin\u002Fruby-skill-bench\u002Fblob\u002Fmain\u002Fskills\u002Ftest-skill\u002FSKILL.md",[],[74,75],"test","Test Skill",{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":23},"01M71W4ZBVWXM3YHNGJ31HGMRB","refactor-process","https:\u002F\u002Fgithub.com\u002Figmarin\u002Fruby-skill-bench\u002Fblob\u002Fmain\u002Fskills\u002Frefactor-process\u002FSKILL.md",[],[82,83,84],"refactor","process","refactor process",{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":23},"01M71W4XJ39M7D1QZ7AFJ93RVC","greeting-skill","https:\u002F\u002Fgithub.com\u002Figmarin\u002Fruby-skill-bench\u002Fblob\u002Fmain\u002Fexamples\u002Foffline-quickstart\u002Fskills\u002Fgreeting-skill\u002FSKILL.md",[],[91,92],"greeting","greeting skill"]