[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78CM9WYWDWMSXW4STM9N2AH":3,"skill-same:01M78CM9WYWDWMSXW4STM9N2AH":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":13,"repositoryHtmlUrl":35,"repositoryHomepageUrl":36,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":38,"install":39,"resources":52},"01M78CM9WYWDWMSXW4STM9N2AH","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.","projectweb738-dev\u002FBANKDATA_JHON","projectweb738-dev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F321402929?v=4","01M78BF0E5DXCH964FKTRKZDBT","01M78BF0F66D1WXYXVN7CN29DH",0,"MIT","https:\u002F\u002Fgithub.com\u002Fprojectweb738-dev\u002FBANKDATA_JHON\u002Fblob\u002Fmain\u002Fbankdata\u002F.agents\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":14,"metadata":23,"description":7},{"role":24,"scope":25,"author":26,"domain":27,"version":28,"triggers":29,"output-format":30,"related-skills":31},"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","1d1992f15739dafb1e105b9293d9d4a60f3f940f","bankdata\u002F.agents\u002Fskills\u002Frails-expert","https:\u002F\u002Fgithub.com\u002Fprojectweb738-dev\u002FBANKDATA_JHON","https:\u002F\u002Fbankdata-jhon.vercel.app","https:\u002F\u002Fgithub.com\u002Fprojectweb738-dev","2026-09-01 19:20:34",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add projectweb738-dev\u002FBANKDATA_JHON --skill rails-expert",{"tool":45,"command":46},"bunx","bunx skills add projectweb738-dev\u002FBANKDATA_JHON --skill rails-expert",{"tool":48,"command":49},"pnpm","pnpm dlx skills add projectweb738-dev\u002FBANKDATA_JHON --skill rails-expert","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fprojectweb738-dev\u002FBANKDATA_JHON\u002Fblob\u002Fmain\u002Fbankdata\u002F.agents\u002Fskills\u002Frails-expert\u002FSKILL.md",true,[53,59,63,67,71],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Factive-record.md","REFERENCE","参考文档",5512,"https:\u002F\u002Fgithub.com\u002Fprojectweb738-dev\u002FBANKDATA_JHON\u002Fblob\u002Fmain\u002Fbankdata\u002F.agents\u002Fskills\u002Frails-expert\u002Freferences\u002Factive-record.md",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fapi-development.md",8952,"https:\u002F\u002Fgithub.com\u002Fprojectweb738-dev\u002FBANKDATA_JHON\u002Fblob\u002Fmain\u002Fbankdata\u002F.agents\u002Fskills\u002Frails-expert\u002Freferences\u002Fapi-development.md",{"path":64,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fbackground-jobs.md",5442,"https:\u002F\u002Fgithub.com\u002Fprojectweb738-dev\u002FBANKDATA_JHON\u002Fblob\u002Fmain\u002Fbankdata\u002F.agents\u002Fskills\u002Frails-expert\u002Freferences\u002Fbackground-jobs.md",{"path":68,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fhotwire-turbo.md",5155,"https:\u002F\u002Fgithub.com\u002Fprojectweb738-dev\u002FBANKDATA_JHON\u002Fblob\u002Fmain\u002Fbankdata\u002F.agents\u002Fskills\u002Frails-expert\u002Freferences\u002Fhotwire-turbo.md",{"path":72,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Frspec-testing.md",8561,"https:\u002F\u002Fgithub.com\u002Fprojectweb738-dev\u002FBANKDATA_JHON\u002Fblob\u002Fmain\u002Fbankdata\u002F.agents\u002Fskills\u002Frails-expert\u002Freferences\u002Frspec-testing.md",[76,83,90,99,106,114],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M78D1BKYFY69R04PNRR5HSZJ","wordpress-pro","Develops custom WordPress themes and plugins, creates and registers Gutenberg blocks and block patterns, configures WooCommerce stores, implements WordPress REST API endpoints, applies security hardening (nonces, sanitization, escaping, capability checks), and optimizes performance through caching and query tuning. Use when building WordPress themes, writing plugins, customizing Gutenberg blocks, extending WooCommerce, working with ACF, using the WordPress REST API, applying hooks and filters, or improving WordPress performance and security.","https:\u002F\u002Fgithub.com\u002Fprojectweb738-dev\u002FBANKDATA_JHON\u002Fblob\u002Fmain\u002Fbankdata\u002F.agents\u002Fskills\u002Fwordpress-pro\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M78D13G4YF5N0SPXAJRA1JYT","websocket-engineer","Use when building real-time communication systems with WebSockets or Socket.IO. Invoke for bidirectional messaging, horizontal scaling with Redis, presence tracking, room management.","https:\u002F\u002Fgithub.com\u002Fprojectweb738-dev\u002FBANKDATA_JHON\u002Fblob\u002Fmain\u002Fbankdata\u002F.agents\u002Fskills\u002Fwebsocket-engineer\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":94,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M78D10XEZAMYSSWTRE2WS9KK","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fprojectweb738-dev\u002FBANKDATA_JHON\u002Fblob\u002Fmain\u002Fbankdata\u002F.agents\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fprojectweb738-dev\u002FBANKDATA_JHON\u002Fblob\u002Fmain\u002Fbankdata\u002F.agents\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M78D0V06RFFQBT70678K5Y7M","web-design-guidelines","UI\u002FUX best practices and accessibility audit. Use when reviewing UI code, checking accessibility, running accessibility audits, auditing forms, or ensuring web interface best practices. Triggers on \"audit accessibility\", \"check WCAG\", \"review UI\", \"check accessibility\", \"audit design\", \"review UX\", or \"check best practices\".","https:\u002F\u002Fgithub.com\u002Fprojectweb738-dev\u002FBANKDATA_JHON\u002Fblob\u002Fmain\u002Fbankdata\u002F.agents\u002Fskills\u002Fweb-design-guidelines\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":94,"licenseFileUrl":110,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":18},"01M78D0QH26WXXHZW4V54HS0TS","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fprojectweb738-dev\u002FBANKDATA_JHON\u002Fblob\u002Fmain\u002Fbankdata\u002F.agents\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fprojectweb738-dev\u002FBANKDATA_JHON\u002Fblob\u002Fmain\u002Fbankdata\u002F.agents\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":18},"01M78D0C3NRETBTGVCFTXG6PSF","vue-expert","Builds Vue 3 components with Composition API patterns, configures Nuxt 3 SSR\u002FSSG projects, sets up Pinia stores, scaffolds Quasar\u002FCapacitor mobile apps, implements PWA features, and optimises Vite builds. Use when creating Vue 3 applications with Composition API, writing reusable composables, managing state with Pinia, building hybrid mobile apps with Quasar or Capacitor, configuring service workers, or tuning Vite configuration and TypeScript integration.","https:\u002F\u002Fgithub.com\u002Fprojectweb738-dev\u002FBANKDATA_JHON\u002Fblob\u002Fmain\u002Fbankdata\u002F.agents\u002Fskills\u002Fvue-expert\u002FSKILL.md",[],[]]