[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CCA61KWQH13FJYY5293G6B":3,"skill-same:01M7CCA61KWQH13FJYY5293G6B":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M7CCA61KWQH13FJYY5293G6B","rails-expert",null,"Rails 7+ specialist that optimizes Active Record queries with includes\u002Feager_load, implements Turbo Frames and Turbo Streams for partial page updates, configures Action Cable for WebSocket connections, sets up Sidekiq workers for background job processing, and writes comprehensive RSpec test suites. Use when building Rails 7+ web applications with Hotwire, real-time features, or background job processing. Invoke for Active Record optimization, Turbo Frames\u002FStreams, Action Cable, Sidekiq, RSpec Rails.","om-scogo\u002Fskillsh-scraper","om-scogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160466840?v=4","01M79AWB6DFVCQ7RK70CS34B96","Om Achrekar","01M79AWB6ZM9SKR8KDH1WSSM22",0,"MIT","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fjeffallan-claude-skills\u002Frails-expert\u002Fskills\u002Frails-expert\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: rails-expert\ndescription: Rails 7+ specialist that optimizes Active Record queries with includes\u002Feager_load, implements Turbo Frames and Turbo Streams for partial page updates, configures Action Cable for WebSocket connections, sets up Sidekiq workers for background job processing, and writes comprehensive RSpec test suites. Use when building Rails 7+ web applications with Hotwire, real-time features, or background job processing. Invoke for Active Record optimization, Turbo Frames\u002FStreams, Action Cable, Sidekiq, RSpec Rails.\nlicense: MIT\nmetadata:\n  author: https:\u002F\u002Fgithub.com\u002FJeffallan\n  version: \"1.1.0\"\n  domain: backend\n  triggers: Rails, Ruby on Rails, Hotwire, Turbo Frames, Turbo Streams, Action Cable, Active Record, Sidekiq, RSpec Rails\n  role: specialist\n  scope: implementation\n  output-format: code\n  related-skills: fullstack-guardian, database-optimizer\n---\n\n# Rails Expert\n\n## Core Workflow\n\n1. **Analyze requirements** — Identify models, routes, real-time needs, background jobs\n2. **Scaffold resources** — `rails generate model User name:string email:string`, `rails generate controller Users`\n3. **Run migrations** — `rails db:migrate` and verify schema with `rails db:schema:dump`\n   - If migration fails: inspect `db\u002Fschema.rb` for conflicts, rollback with `rails db:rollback`, fix and retry\n4. **Implement** — Write controllers, models, add Hotwire (see Reference Guide below)\n5. **Validate** — `bundle exec rspec` must pass; `bundle exec rubocop` for style\n   - If specs fail: check error output, fix failing examples, re-run with `--format documentation` for detail\n   - If N+1 queries surface during review: add `includes`\u002F`eager_load` (see Common Patterns) and re-run specs\n6. **Optimize** — Audit for N+1 queries, add missing indexes, add caching\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Hotwire\u002FTurbo | `references\u002Fhotwire-turbo.md` | Turbo Frames, Streams, Stimulus controllers |\n| Active Record | `references\u002Factive-record.md` | Models, associations, queries, performance |\n| Background Jobs | `references\u002Fbackground-jobs.md` | Sidekiq, job design, queues, error handling |\n| Testing | `references\u002Frspec-testing.md` | Model\u002Frequest\u002Fsystem specs, factories |\n| API Development | `references\u002Fapi-development.md` | API-only mode, serialization, authentication |\n\n## Common Patterns\n\n### N+1 Prevention with includes\u002Feager_load\n\n```ruby\n# BAD — triggers N+1\nposts = Post.all\nposts.each { |post| puts post.author.name }\n\n# GOOD — eager load association\nposts = Post.includes(:author).all\nposts.each { |post| puts post.author.name }\n\n# GOOD — eager_load forces a JOIN (useful when filtering on association)\nposts = Post.eager_load(:author).where(authors: { verified: true })\n```\n\n### Turbo Frame Setup (partial page update)\n\n```erb\n\u003C%# app\u002Fviews\u002Fposts\u002Findex.html.erb %>\n\u003C%= turbo_frame_tag \"posts\" do %>\n  \u003C%= render @posts %>\n  \u003C%= link_to \"Load More\", posts_path(page: @next_page) %>\n\u003C% end %>\n\n\u003C%# app\u002Fviews\u002Fposts\u002F_post.html.erb %>\n\u003C%= turbo_frame_tag dom_id(post) do %>\n  \u003Ch2>\u003C%= post.title %>\u003C\u002Fh2>\n  \u003C%= link_to \"Edit\", edit_post_path(post) %>\n\u003C% end %>\n```\n\n```ruby\n# app\u002Fcontrollers\u002Fposts_controller.rb\ndef index\n  @posts = Post.includes(:author).page(params[:page])\n  @next_page = @posts.next_page\nend\n```\n\n### Sidekiq Worker Template\n\n```ruby\n# app\u002Fjobs\u002Fsend_welcome_email_job.rb\nclass SendWelcomeEmailJob \u003C ApplicationJob\n  queue_as :default\n  sidekiq_options retry: 3, dead: false\n\n  def perform(user_id)\n    user = User.find(user_id)\n    UserMailer.welcome(user).deliver_now\n  rescue ActiveRecord::RecordNotFound => e\n    Rails.logger.warn(\"SendWelcomeEmailJob: user #{user_id} not found — #{e.message}\")\n    # Do not re-raise; record is gone, no point retrying\n  end\nend\n\n# Enqueue from controller or model callback\nSendWelcomeEmailJob.perform_later(user.id)\n```\n\n### Strong Parameters (controller template)\n\n```ruby\n# app\u002Fcontrollers\u002Fposts_controller.rb\nclass PostsController \u003C ApplicationController\n  before_action :set_post, only: %i[show edit update destroy]\n\n  def create\n    @post = Post.new(post_params)\n    if @post.save\n      redirect_to @post, notice: \"Post created.\"\n    else\n      render :new, status: :unprocessable_entity\n    end\n  end\n\n  private\n\n  def set_post\n    @post = Post.find(params[:id])\n  end\n\n  def post_params\n    params.require(:post).permit(:title, :body, :published_at)\n  end\nend\n```\n\n## Constraints\n\n### MUST DO\n- Prevent N+1 queries with `includes`\u002F`eager_load` on every collection query involving associations\n- Write comprehensive specs targeting >95% coverage\n- Use service objects for complex business logic; keep controllers thin\n- Add database indexes for every column used in `WHERE`, `ORDER BY`, or `JOIN`\n- Offload slow operations to Sidekiq — never run them synchronously in a request cycle\n\n### MUST NOT DO\n- Skip migrations for schema changes\n- Use raw SQL without sanitization (`sanitize_sql` or parameterized queries only)\n- Expose internal IDs in URLs without consideration\n\n## Output Templates\n\nWhen implementing Rails features, provide:\n1. Migration file (if schema changes needed)\n2. Model file with associations and validations\n3. Controller with RESTful actions and strong parameters\n4. View files or Hotwire setup\n5. Spec files for models and requests\n6. Brief explanation of architectural decisions\n\n[Documentation](https:\u002F\u002Fjeffallan.github.io\u002Fclaude-skills\u002Fskills\u002Fbackend\u002Frails-expert\u002F)\n","# Rails Expert\n\n## Core Workflow\n\n1. **Analyze requirements** — Identify models, routes, real-time needs, background jobs\n2. **Scaffold resources** — `rails generate model User name:string email:string`, `rails generate controller Users`\n3. **Run migrations** — `rails db:migrate` and verify schema with `rails db:schema:dump`\n   - If migration fails: inspect `db\u002Fschema.rb` for conflicts, rollback with `rails db:rollback`, fix and retry\n4. **Implement** — Write controllers, models, add Hotwire (see Reference Guide below)\n5. **Validate** — `bundle exec rspec` must pass; `bundle exec rubocop` for style\n   - If specs fail: check error output, fix failing examples, re-run with `--format documentation` for detail\n   - If N+1 queries surface during review: add `includes`\u002F`eager_load` (see Common Patterns) and re-run specs\n6. **Optimize** — Audit for N+1 queries, add missing indexes, add caching\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Hotwire\u002FTurbo | `references\u002Fhotwire-turbo.md` | Turbo Frames, Streams, Stimulus controllers |\n| Active Record | `references\u002Factive-record.md` | Models, associations, queries, performance |\n| Background Jobs | `references\u002Fbackground-jobs.md` | Sidekiq, job design, queues, error handling |\n| Testing | `references\u002Frspec-testing.md` | Model\u002Frequest\u002Fsystem specs, factories |\n| API Development | `references\u002Fapi-development.md` | API-only mode, serialization, authentication |\n\n## Common Patterns\n\n### N+1 Prevention with includes\u002Feager_load\n\n```ruby\n# BAD — triggers N+1\nposts = Post.all\nposts.each { |post| puts post.author.name }\n\n# GOOD — eager load association\nposts = Post.includes(:author).all\nposts.each { |post| puts post.author.name }\n\n# GOOD — eager_load forces a JOIN (useful when filtering on association)\nposts = Post.eager_load(:author).where(authors: { verified: true })\n```\n\n### Turbo Frame Setup (partial page update)\n\n```erb\n\u003C%# app\u002Fviews\u002Fposts\u002Findex.html.erb %>\n\u003C%= turbo_frame_tag \"posts\" do %>\n  \u003C%= render @posts %>\n  \u003C%= link_to \"Load More\", posts_path(page: @next_page) %>\n\u003C% end %>\n\n\u003C%# app\u002Fviews\u002Fposts\u002F_post.html.erb %>\n\u003C%= turbo_frame_tag dom_id(post) do %>\n  \u003Ch2>\u003C%= post.title %>\u003C\u002Fh2>\n  \u003C%= link_to \"Edit\", edit_post_path(post) %>\n\u003C% end %>\n```\n\n```ruby\n# app\u002Fcontrollers\u002Fposts_controller.rb\ndef index\n  @posts = Post.includes(:author).page(params[:page])\n  @next_page = @posts.next_page\nend\n```\n\n### Sidekiq Worker Template\n\n```ruby\n# app\u002Fjobs\u002Fsend_welcome_email_job.rb\nclass SendWelcomeEmailJob \u003C ApplicationJob\n  queue_as :default\n  sidekiq_options retry: 3, dead: false\n\n  def perform(user_id)\n    user = User.find(user_id)\n    UserMailer.welcome(user).deliver_now\n  rescue ActiveRecord::RecordNotFound => e\n    Rails.logger.warn(\"SendWelcomeEmailJob: user #{user_id} not found — #{e.message}\")\n    # Do not re-raise; record is gone, no point retrying\n  end\nend\n\n# Enqueue from controller or model callback\nSendWelcomeEmailJob.perform_later(user.id)\n```\n\n### Strong Parameters (controller template)\n\n```ruby\n# app\u002Fcontrollers\u002Fposts_controller.rb\nclass PostsController \u003C ApplicationController\n  before_action :set_post, only: %i[show edit update destroy]\n\n  def create\n    @post = Post.new(post_params)\n    if @post.save\n      redirect_to @post, notice: \"Post created.\"\n    else\n      render :new, status: :unprocessable_entity\n    end\n  end\n\n  private\n\n  def set_post\n    @post = Post.find(params[:id])\n  end\n\n  def post_params\n    params.require(:post).permit(:title, :body, :published_at)\n  end\nend\n```\n\n## Constraints\n\n### MUST DO\n- Prevent N+1 queries with `includes`\u002F`eager_load` on every collection query involving associations\n- Write comprehensive specs targeting >95% coverage\n- Use service objects for complex business logic; keep controllers thin\n- Add database indexes for every column used in `WHERE`, `ORDER BY`, or `JOIN`\n- Offload slow operations to Sidekiq — never run them synchronously in a request cycle\n\n### MUST NOT DO\n- Skip migrations for schema changes\n- Use raw SQL without sanitization (`sanitize_sql` or parameterized queries only)\n- Expose internal IDs in URLs without consideration\n\n## Output Templates\n\nWhen implementing Rails features, provide:\n1. Migration file (if schema changes needed)\n2. Model file with associations and validations\n3. Controller with RESTful actions and strong parameters\n4. View files or Hotwire setup\n5. Spec files for models and requests\n6. Brief explanation of architectural decisions\n\n[Documentation](https:\u002F\u002Fjeffallan.github.io\u002Fclaude-skills\u002Fskills\u002Fbackend\u002Frails-expert\u002F)\n",{"name":5,"license":15,"metadata":24,"description":7},{"role":25,"scope":26,"author":27,"domain":28,"version":29,"triggers":30,"output-format":31,"related-skills":32},"specialist","implementation","https:\u002F\u002Fgithub.com\u002FJeffallan","backend","1.1.0","Rails, Ruby on Rails, Hotwire, Turbo Frames, Turbo Streams, Action Cable, Active Record, Sidekiq, RSpec Rails","code","fullstack-guardian, database-optimizer","main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fjeffallan-claude-skills\u002Frails-expert\u002Fskills\u002Frails-expert",1,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper","https:\u002F\u002Fgithub.com\u002Fom-scogo","SDE-1 @ Scogo ","2026-07-18 12:22:46",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill rails-expert",{"tool":47,"command":48},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill rails-expert",{"tool":50,"command":51},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill rails-expert","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fjeffallan-claude-skills\u002Frails-expert\u002Fskills\u002Frails-expert\u002FSKILL.md",true,[],[56,63,68,75,80,87],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7D6MC9FAAEV4CMNYX8W7JTG","arxiv-search","Search arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002Fskills\u002Farxiv-search\u002FSKILL.md",[],[],{"skillNo":64,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7D4ZTCS4DR3CE4JY06X84T2","working-with-legacy-code","Safely change and test untested codebases using Feathers' \"Working Effectively with Legacy Code\". Use when the user mentions \"legacy code\", \"no tests\", \"untested codebase\", \"how do I test this\", \"seams\", \"characterization tests\", \"golden master\", \"sprout method\", \"afraid to change this code\", \"monster method\", \"dependency breaking\", or \"inherited a messy codebase\". Also trigger when changing code without tests safely, getting a class under test when constructors, statics, or singletons block it, adding features to tangled modules, or planning incremental test coverage for an old codebase. Covers the legacy-code change algorithm, seams, characterization tests, sprout\u002Fwrap, and dependency-breaking techniques. For refactoring code that already has tests, see refactoring-patterns. For day-to-day code quality, see clean-code.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002Fworking-with-legacy-code\u002FSKILL.md",[],[],{"skillNo":76,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7D4ZB4CJBFW5JE67CPH2QRV","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", \"typographic scale\", or \"the text is hard to read\". Also trigger when choosing between system fonts and web fonts, optimizing font-loading performance, or designing readable long-form content. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":88,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]