[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CDAK4J08AXZ8ZKX9VWP9NE":3,"skill-same:01M6CDAK4J08AXZ8ZKX9VWP9NE":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":51,"ownerHtmlUrl":52,"ownerBlogUrl":17,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M6CDAK4J08AXZ8ZKX9VWP9NE","tdd-workflow","测试驱动开发工作流","Test-driven development workflow","测试驱动开发（TDD）工作流。","mrwogu\u002Fpromptscript","mrwogu","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2917861?v=4","01M6CD988FG8NZ7SGMM9JG76Y7","Wojciech Guziak","01M6CD98C8MZJE9HW7P95CYB3S",344,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmrwogu\u002Fpromptscript\u002Fblob\u002Fmain\u002Fpackages\u002Fresolver\u002Fsrc\u002F__tests__\u002F__fixtures__\u002Fregistry\u002Fnative-skills\u002Ftdd-workflow\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32,33,34,35,36,37,38],"tdd","workflow","tdd workflow","test","development","development workflow","driven","test-driven","2026-11-10 10:12:30",false,"---\nname: rails-upgrade-3-to-4\ndescription: Upgrade a Ruby on Rails app from 3.x to 4.x — strong parameters replacing attr_accessible \u002F attr_protected, the asset pipeline overhaul, the Turbolinks arrival, Ruby 2.0+ requirement, Bundler-style routes file, the version hop sequence. Use when upgrading legacy Rails 3 apps, the user mentions attr_accessible, Turbolinks, protected_attributes gem, asset pipeline, or asks how to escape Rails 3.\n---\n\n# Rails 3 → 4 Upgrade\n\n> Legacy upgrade. Rails 3.2 is past EOL (Rails 3 LTS exists but is paid). The 3.2 → 4.0 hop is API-breaking; budget for a real project, not a weekend.\n\n## The opinion\n\n> **Dual-boot with `next_rails`. Hop 3.2 → 4.0 → 4.1 → 4.2. Ruby 2.0+ required for 4.0; Ruby 2.2.2+ for 4.2. Use the `protected_attributes` gem as a temporary bridge from `attr_accessible` to strong parameters.**\n\n## The hop sequence\n\n```\n3.2 → 4.0 → 4.1 → 4.2\n```\n\n## Core patterns\n\n### Pattern 1: 3.2 → 4.0\n\n**Mandatory:**\n- Ruby 2.0+.\n- Switch from `attr_accessible` \u002F `attr_protected` to strong parameters (or stay on `protected_attributes` gem as a bridge).\n- New asset pipeline; old Sprockets behavior changed.\n- Turbolinks ships (can disable if breaking the app).\n\n**`attr_accessible` removal:**\n\n```ruby\n# Rails 3 model\nclass User \u003C ActiveRecord::Base\n  attr_accessible :name, :email\nend\n\n# Rails 4 — two paths\n\n# Path A: use the `protected_attributes` gem (keeps old API; quick win for legacy)\ngem \"protected_attributes_continued\"  # community-maintained for 4+\n\n# Path B: migrate to strong parameters (the long-term path)\n# Remove attr_accessible from model.\n# In controllers:\ndef user_params\n  params.require(:user).permit(:name, :email)\nend\n```\n\n**Turbolinks:**\n\n```javascript\n# Gemfile\ngem \"turbolinks\"\n\n# JS that depends on $(document).ready needs to listen for \"page:load\" too\n$(document).on('page:load ready', function() { ... })\n```\n\nMost Rails 3 apps with custom JS break under Turbolinks. Disable per-link with `data-no-turbolink` while you migrate.\n\n### Pattern 2: 4.0 → 4.1\n\nSpring (preloader) arrives. Configuration changes:\n- `secrets.yml` replaces `config\u002Finitializers\u002Fsecret_token.rb`.\n- Mailer previews (Action Mailer Preview) ship.\n\n### Pattern 3: 4.1 → 4.2\n\nActive Job arrives — the abstraction over Sidekiq \u002F DelayedJob \u002F etc. Migrate background jobs:\n\n```ruby\n# Rails 4.1 (Sidekiq worker)\nclass HardWorker\n  include Sidekiq::Worker\n  def perform(name); end\nend\n\n# Rails 4.2 (Active Job)\nclass HardWorkerJob \u003C ActiveJob::Base\n  queue_as :default\n  def perform(name); end\nend\n```\n\nAdapter is configured globally; the same job class works with Sidekiq \u002F DelayedJob \u002F SQS \u002F etc.\n\n### Pattern 4: Gem audit\n\nRails 3 era gems often have no 4.x version. Audit:\n\n```bash\nbundle outdated\nbundle update --major-version-only\n# Compare each gem against its 4.x compat docs\n```\n\nCommon replacements:\n- `state_machine` → `aasm` or `state_machines-activerecord`.\n- `paperclip` → Active Storage (or shrine).\n- `cancan` → `cancancan` (community fork).\n- `inherited_resources` → kept but mature; replace if you can.\n\n## Common mistakes to refuse\n\n- Don't ditch `attr_accessible` for strong_parameters in the same PR as the version bump. Use `protected_attributes_continued` first.\n- Don't enable Turbolinks if your JS doesn't handle it.\n- Don't skip 4.1 (Active Job arrives; migrating workers is easier here).\n\n## See also\n\n- `rails-upgrade-4-to-5` — next hop\n- `solid-queue-and-sidekiq` — Active Job (introduced in 4.2)\n\n## Sources\n\n- [Rails 4.0 release notes](https:\u002F\u002Fguides.rubyonrails.org\u002F4_0_release_notes.html)\n- [Rails 4.2 release notes](https:\u002F\u002Fguides.rubyonrails.org\u002F4_2_release_notes.html)\n- [Strong Parameters intro](https:\u002F\u002Fapi.rubyonrails.org\u002Fclasses\u002FActionController\u002FStrongParameters.html)\n- [protected_attributes_continued gem](https:\u002F\u002Fgithub.com\u002Fwestonganger\u002Fprotected_attributes_continued)\n- [Active Job basics](https:\u002F\u002Fguides.rubyonrails.org\u002Factive_job_basics.html)\n- [Rails LTS (legacy security backports)](https:\u002F\u002Frailslts.com\u002F)\n","# Rails 3 → 4 Upgrade\n\n> Legacy upgrade. Rails 3.2 is past EOL (Rails 3 LTS exists but is paid). The 3.2 → 4.0 hop is API-breaking; budget for a real project, not a weekend.\n\n## The opinion\n\n> **Dual-boot with `next_rails`. Hop 3.2 → 4.0 → 4.1 → 4.2. Ruby 2.0+ required for 4.0; Ruby 2.2.2+ for 4.2. Use the `protected_attributes` gem as a temporary bridge from `attr_accessible` to strong parameters.**\n\n## The hop sequence\n\n```\n3.2 → 4.0 → 4.1 → 4.2\n```\n\n## Core patterns\n\n### Pattern 1: 3.2 → 4.0\n\n**Mandatory:**\n- Ruby 2.0+.\n- Switch from `attr_accessible` \u002F `attr_protected` to strong parameters (or stay on `protected_attributes` gem as a bridge).\n- New asset pipeline; old Sprockets behavior changed.\n- Turbolinks ships (can disable if breaking the app).\n\n**`attr_accessible` removal:**\n\n```ruby\n# Rails 3 model\nclass User \u003C ActiveRecord::Base\n  attr_accessible :name, :email\nend\n\n# Rails 4 — two paths\n\n# Path A: use the `protected_attributes` gem (keeps old API; quick win for legacy)\ngem \"protected_attributes_continued\"  # community-maintained for 4+\n\n# Path B: migrate to strong parameters (the long-term path)\n# Remove attr_accessible from model.\n# In controllers:\ndef user_params\n  params.require(:user).permit(:name, :email)\nend\n```\n\n**Turbolinks:**\n\n```javascript\n# Gemfile\ngem \"turbolinks\"\n\n# JS that depends on $(document).ready needs to listen for \"page:load\" too\n$(document).on('page:load ready', function() { ... })\n```\n\nMost Rails 3 apps with custom JS break under Turbolinks. Disable per-link with `data-no-turbolink` while you migrate.\n\n### Pattern 2: 4.0 → 4.1\n\nSpring (preloader) arrives. Configuration changes:\n- `secrets.yml` replaces `config\u002Finitializers\u002Fsecret_token.rb`.\n- Mailer previews (Action Mailer Preview) ship.\n\n### Pattern 3: 4.1 → 4.2\n\nActive Job arrives — the abstraction over Sidekiq \u002F DelayedJob \u002F etc. Migrate background jobs:\n\n```ruby\n# Rails 4.1 (Sidekiq worker)\nclass HardWorker\n  include Sidekiq::Worker\n  def perform(name); end\nend\n\n# Rails 4.2 (Active Job)\nclass HardWorkerJob \u003C ActiveJob::Base\n  queue_as :default\n  def perform(name); end\nend\n```\n\nAdapter is configured globally; the same job class works with Sidekiq \u002F DelayedJob \u002F SQS \u002F etc.\n\n### Pattern 4: Gem audit\n\nRails 3 era gems often have no 4.x version. Audit:\n\n```bash\nbundle outdated\nbundle update --major-version-only\n# Compare each gem against its 4.x compat docs\n```\n\nCommon replacements:\n- `state_machine` → `aasm` or `state_machines-activerecord`.\n- `paperclip` → Active Storage (or shrine).\n- `cancan` → `cancancan` (community fork).\n- `inherited_resources` → kept but mature; replace if you can.\n\n## Common mistakes to refuse\n\n- Don't ditch `attr_accessible` for strong_parameters in the same PR as the version bump. Use `protected_attributes_continued` first.\n- Don't enable Turbolinks if your JS doesn't handle it.\n- Don't skip 4.1 (Active Job arrives; migrating workers is easier here).\n\n## See also\n\n- `rails-upgrade-4-to-5` — next hop\n- `solid-queue-and-sidekiq` — Active Job (introduced in 4.2)\n\n## Sources\n\n- [Rails 4.0 release notes](https:\u002F\u002Fguides.rubyonrails.org\u002F4_0_release_notes.html)\n- [Rails 4.2 release notes](https:\u002F\u002Fguides.rubyonrails.org\u002F4_2_release_notes.html)\n- [Strong Parameters intro](https:\u002F\u002Fapi.rubyonrails.org\u002Fclasses\u002FActionController\u002FStrongParameters.html)\n- [protected_attributes_continued gem](https:\u002F\u002Fgithub.com\u002Fwestonganger\u002Fprotected_attributes_continued)\n- [Active Job basics](https:\u002F\u002Fguides.rubyonrails.org\u002Factive_job_basics.html)\n- [Rails LTS (legacy security backports)](https:\u002F\u002Frailslts.com\u002F)\n",{"name":44,"description":45},"rails-upgrade-3-to-4","Upgrade a Ruby on Rails app from 3.x to 4.x — strong parameters replacing attr_accessible \u002F attr_protected, the asset pipeline overhaul, the Turbolinks arrival, Ruby 2.0+ requirement, Bundler-style routes file, the version hop sequence. Use when upgrading legacy Rails 3 apps, the user mentions attr_accessible, Turbolinks, protected_attributes gem, asset pipeline, or asks how to escape Rails 3.","master","b45dc3fabf3946024f23f2b6d4b3c07cb288cfbb","packages\u002Fresolver\u002Fsrc\u002F__tests__\u002F__fixtures__\u002Fregistry\u002Fnative-skills\u002Ftdd-workflow",7,"https:\u002F\u002Fgithub.com\u002Fmrwogu\u002Fpromptscript","https:\u002F\u002Fgetpromptscript.dev\u002F","https:\u002F\u002Fgithub.com\u002Fmrwogu","AI Developer Experience","2026-11-09 13:55:29",{"source":9,"skillName":44,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add mrwogu\u002Fpromptscript --skill rails-upgrade-3-to-4",{"tool":61,"command":62},"bunx","bunx skills add mrwogu\u002Fpromptscript --skill rails-upgrade-3-to-4",{"tool":64,"command":65},"pnpm","pnpm dlx skills add mrwogu\u002Fpromptscript --skill rails-upgrade-3-to-4","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmrwogu\u002Fpromptscript\u002Fblob\u002Fmain\u002Fpackages\u002Fresolver\u002Fsrc\u002F__tests__\u002F__fixtures__\u002Fregistry\u002Fnative-skills\u002Ftdd-workflow\u002FSKILL.md",true,[69],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"evals.md","REFERENCE","参考文档",773,"https:\u002F\u002Fgithub.com\u002FMadBomber\u002Fexperiments\u002Fblob\u002Fmaster\u002Fai_misc\u002Fskills\u002Frails-skills\u002F20-rails-upgrade-3-to-4\u002Fevals.md",[76,110,125,140,166,191],{"skillNo":77,"name":78,"nameZh":79,"description":80,"descriptionZh":81,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":82,"categories":83,"keywords":90,"publishedAt":39},"01M6CDARG1R0SC1QS30MG6NH4Z","promptscript","PromptScript 脚本编写与排查","PromptScript language expert for reading, writing, modifying, and troubleshooting .prs files. Use when working with PromptScript syntax, creating or editing .prs files, adding blocks like @identity, @standards, @restrictions, @shortcuts, @skills, or @agents, configuring promptscript.yaml, resolving compilation errors, understanding inheritance (@inherit), composition (@use, @extend, @override), contextual @header metadata, or migrating AI instructions to PromptScript. Also use when asked about the 50 built-in coding agent compilation targets, including GitHub Copilot, Claude Code, Cursor, Antigravity, Factory AI, and AGENTS.md-based platforms, or about the bundle and prompt-text targets for application prompts.","PromptScript 语言专家，用于读取、编写、修改和排查 .prs 文件。适用于处理 PromptScript 语法、创建或编辑 .prs 文件、添加 @identity、@standards、@restrictions、@shortcuts、@skills 或 @agents 等块、配置 promptscript.yaml、解决编译错误、理解继承（@inherit）、组合（@use、@extend、@override）、上下文 @header 元数据，或将 AI 指令迁移到 PromptScript。当用户询问 50 个内置编码智能体编译目标（包括 GitHub Copilot、Claude Code、Cursor、Antigravity、Factory AI 以及基于 AGENTS.md 的平台），或询问用于应用提示词的 bundle 和 prompt-text 目标时，也适用此技能。","https:\u002F\u002Fgithub.com\u002Fmrwogu\u002Fpromptscript\u002Fblob\u002Fmain\u002Fskills\u002Fpromptscript\u002FSKILL.md",[84,87],{"categoryNo":85,"categoryName":86,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",{"categoryNo":88,"categoryName":89,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C7GF33QZZR2SXBJQHRAFNN","提示词工程与优化",[78,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109],"Composition","for","files","writing","text","read","write","coding","identity","standards","gemini","expert","kiro-cli","inheritance","windsurf","kilo","reading","factory-ai","goose",{"skillNo":111,"name":102,"nameZh":112,"description":113,"descriptionZh":114,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":115,"categories":116,"keywords":121,"publishedAt":39},"01M6CDANHZWNCXCKZQSGVZW8S8","基础专家技能","Base expert skill","基础专家技能。","https:\u002F\u002Fgithub.com\u002Fmrwogu\u002Fpromptscript\u002Fblob\u002Fmain\u002Fpackages\u002Fresolver\u002Fsrc\u002F__tests__\u002F__fixtures__\u002Fskill-references\u002Fskills\u002Fexpert\u002FSKILL.md",[117,118],{"categoryNo":85,"categoryName":86,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":119,"categoryName":120,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8CFBYPPFQY4HRA5R71EZ0TS","AI系统核心与身份配置",[102,122,123,124],"spring","references","base",{"skillNo":126,"name":127,"nameZh":128,"description":129,"descriptionZh":128,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":130,"categories":131,"keywords":138,"publishedAt":39},"01M6CDAGQMZ3SZP69Q1XREEX48","alpha","Alpha 技能","Alpha skill","https:\u002F\u002Fgithub.com\u002Fmrwogu\u002Fpromptscript\u002Fblob\u002Fmain\u002Fpackages\u002Fresolver\u002Fsrc\u002F__tests__\u002F__fixtures__\u002Fmd-imports\u002Fskill-dir\u002Falpha\u002FSKILL.md",[132,135],{"categoryNo":133,"categoryName":134,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BS5011KJDVSRXG1DC4P666","普通用户",{"categoryNo":136,"categoryName":137,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSYDSNXQT2W2GMZGF0ZHH4","示例与演示技能",[127,139],"alpha skill",{"skillNo":141,"name":142,"nameZh":143,"description":144,"descriptionZh":145,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":146,"licenseFileUrl":17,"sourceHtmlUrl":147,"categories":148,"keywords":153,"publishedAt":39},"01M6CDAEB3EZ86CQSYM28J34ZS","pdf-processing","PDF 文件处理","Extract PDF text, fill forms, merge files. Use when handling PDFs.","提取 PDF 文本、填写表单、合并文件。用于处理 PDF 时。","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmrwogu\u002Fpromptscript\u002Fblob\u002Fmain\u002Fpackages\u002Fformatters\u002Fsrc\u002F__tests__\u002Ffixtures\u002Fplatform-contracts\u002Fgemini\u002Fskill.md",[149,152],{"categoryNo":150,"categoryName":151,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TK1MPB82068236GSXDE","文档处理",{"categoryNo":133,"categoryName":134,"taxonomyType":23,"taxonomyTypeDesc":24},[154,155,156,157,158,159,93,160,95,161,162,163,164,165],"PDF","pdf processing","processing","org","forms","example","use","merge","extract","when","fill","extract pdf",{"skillNo":167,"name":168,"nameZh":169,"description":170,"descriptionZh":171,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":172,"categories":173,"keywords":178,"publishedAt":39},"01M6CDABP7FSQ9BY079P1QWJR2","react-component-patterns","React 组件编写规范","Conventions for writing React components in this codebase.","在此代码库中编写 React 组件的约定。","https:\u002F\u002Fgithub.com\u002Fmrwogu\u002Fpromptscript\u002Fblob\u002Fmain\u002Fpackages\u002Fformatters\u002Fsrc\u002F__tests__\u002Ffixtures\u002Fplatform-contracts\u002Fcursor\u002Fskill.md",[174,175],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":176,"categoryName":177,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[179,180,181,182,183,184,185,94,186,187,188,92,189,190],"patterns","react component","component","react","react component patterns","packages","tsx","components","react components","ui","codebase","conventions",{"skillNo":192,"name":193,"nameZh":194,"description":195,"descriptionZh":196,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":197,"categories":198,"keywords":205,"publishedAt":39},"01M6CDA8P4H25QD7EPHBJQCEEV","deploy-app","应用部署发布","Deploy the application to staging or production environments. Use when deploying code or when the user mentions deployment, releases, or environments.","将应用部署到预发布（staging）或生产环境。用于部署代码，或当用户提到部署、发布或环境时。","https:\u002F\u002Fgithub.com\u002Fmrwogu\u002Fpromptscript\u002Fblob\u002Fmain\u002Fpackages\u002Fformatters\u002Fsrc\u002F__tests__\u002Ffixtures\u002Fplatform-contracts\u002Fcodex\u002Fskill.md",[199,202],{"categoryNo":200,"categoryName":201,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":203,"categoryName":204,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",[206,207,208,209,160,210,211,212,213,163,214,215],"deploy","app","deploy app","deployment","code","releases","Production","user","environments","application"]