[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CDAGQMZ3SZP69Q1XREEX48":3,"skill-same:01M6CDAGQMZ3SZP69Q1XREEX48":67},{"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":16,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":43,"ownerHtmlUrl":44,"ownerBlogUrl":16,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M6CDAGQMZ3SZP69Q1XREEX48","alpha","Alpha 技能","Alpha skill","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__\u002Fmd-imports\u002Fskill-dir\u002Falpha\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BS5011KJDVSRXG1DC4P666","普通用户","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BSYDSNXQT2W2GMZGF0ZHH4","示例与演示技能","SCENARIO","使用场景",[5,30],"alpha skill","2026-11-10 10:12:30",false,"---\nname: rails-upgrade-4-to-5\ndescription: Upgrade a Ruby on Rails app from 4.x to 5.x — dual-boot via next_rails, ApplicationRecord introduction, ActionCable arrival, strong parameters becoming mandatory, params no longer hash-like, the version hop sequence, the Rails 5.1 system tests and `yarn` arrival, the Rails 5.2 ActiveStorage + credentials. Use when upgrading from Rails 4 to 5, the user mentions ApplicationRecord, strong parameters, params.permit, ActionCable, the params HashWithIndifferentAccess change, or asks how to leave Rails 4.\n---\n\n# Rails 4 → 5 Upgrade\n\n> Rails 4.2 → 5.0 is one of the biggest API breaks in the past decade. `params` stop being a Hash. Strong parameters become mandatory. ApplicationRecord arrives. Treat as a multi-month project for a non-trivial app.\n\n## The opinion\n\n> **Dual-boot with `next_rails`. Hop 4.2 → 5.0 → 5.1 → 5.2. Ruby 2.2.2+ for Rails 5.0; Ruby 2.5+ for 5.2. Budget weeks-to-months for a non-trivial app.**\n\n## The hop sequence\n\n```\n4.2 → 5.0 → 5.1 → 5.2\n```\n\n## Core patterns\n\n### Pattern 1: 4.2 → 5.0 — the breaking changes\n\n**Required code changes:**\n\n```ruby\n# Rails 4 — base model inheriting from ActiveRecord::Base\nclass User \u003C ActiveRecord::Base\nend\n\n# Rails 5 — inherit from ApplicationRecord\nclass User \u003C ApplicationRecord\nend\n\n# Generate the new base class\nbin\u002Frails generate application_record\n```\n\n**`params` change — biggest gotcha:**\n\n```ruby\n# Rails 4 — params was a HashWithIndifferentAccess\nparams[:user][:email]                 # worked\nparams.permit(:foo, :bar)             # explicit but not required\nUser.create(params[:user])            # silently allowed any column\n\n# Rails 5 — params is ActionController::Parameters\nparams[:user][:email]                 # works (subclass of Hash)\nparams.merge(...)                     # returns Parameters, not Hash\nUser.create(params[:user])            # raises ForbiddenAttributesError — must permit\n```\n\nAudit every `Model.create(params[:foo])` \u002F `update(params[:foo])` call. Add `permit`.\n\n**Other 5.0 changes:**\n- ActionCable arrives (no impact unless you use it).\n- `belongs_to` is required by default (`optional: true` to opt out).\n- Test framework default switches; `Rails.test` may need `--clean` runs.\n- `head :ok` after a `respond_to` block is no longer needed (slight behavior change).\n\n### Pattern 2: 5.0 → 5.1\n\n- yarn arrives for managing JS packages.\n- System tests (Capybara wrapper) ship.\n- `form_for` \u002F `form_tag` start to be deprecated in favor of `form_with`.\n- `secrets.yml` partially deprecated (full deprecation in 5.2).\n\n### Pattern 3: 5.1 → 5.2\n\n- Active Storage ships (file uploads).\n- Encrypted credentials (`config\u002Fcredentials.yml.enc`) replace `secrets.yml`.\n- `Date.current` recommended over `Date.today` for time-zone safety.\n\n```bash\n# Migrate secrets.yml → credentials\nEDITOR=vim bin\u002Frails credentials:edit\n# Paste secrets.yml contents into the encrypted file\n```\n\n### Pattern 4: `belongs_to` required\n\n```ruby\n# Rails 4 — nil author was allowed silently\nclass Post \u003C ApplicationRecord\n  belongs_to :author\nend\n\n# Rails 5 — validation fires on save if author is nil\n# Either fix the data or opt out:\nbelongs_to :author, optional: true\n```\n\nAudit every `belongs_to` for `optional: true` cases.\n\n## Common mistakes to refuse\n\n- Don't skip 5.0 (the Parameters change has to land cleanly).\n- Don't allow `Model.create(params[:foo])` in 5.0+; permit everything.\n- Don't migrate ActionCable + ApplicationRecord + secrets.yml in the same PR.\n\n## See also\n\n- `rails-upgrade-3-to-4` — previous hop\n- `rails-upgrade-5-to-6` — next hop\n\n## Sources\n\n- [Rails 5.0 release notes](https:\u002F\u002Fguides.rubyonrails.org\u002F5_0_release_notes.html)\n- [Rails 5.2 release notes](https:\u002F\u002Fguides.rubyonrails.org\u002F5_2_release_notes.html)\n- [Strong Parameters](https:\u002F\u002Fapi.rubyonrails.org\u002Fclasses\u002FActionController\u002FStrongParameters.html)\n- [Encrypted credentials guide](https:\u002F\u002Fguides.rubyonrails.org\u002Fsecurity.html#custom-credentials)\n- [FastRuby — Rails 5 upgrade walkthrough](https:\u002F\u002Fwww.fastruby.io\u002Fblog)\n","# Rails 4 → 5 Upgrade\n\n> Rails 4.2 → 5.0 is one of the biggest API breaks in the past decade. `params` stop being a Hash. Strong parameters become mandatory. ApplicationRecord arrives. Treat as a multi-month project for a non-trivial app.\n\n## The opinion\n\n> **Dual-boot with `next_rails`. Hop 4.2 → 5.0 → 5.1 → 5.2. Ruby 2.2.2+ for Rails 5.0; Ruby 2.5+ for 5.2. Budget weeks-to-months for a non-trivial app.**\n\n## The hop sequence\n\n```\n4.2 → 5.0 → 5.1 → 5.2\n```\n\n## Core patterns\n\n### Pattern 1: 4.2 → 5.0 — the breaking changes\n\n**Required code changes:**\n\n```ruby\n# Rails 4 — base model inheriting from ActiveRecord::Base\nclass User \u003C ActiveRecord::Base\nend\n\n# Rails 5 — inherit from ApplicationRecord\nclass User \u003C ApplicationRecord\nend\n\n# Generate the new base class\nbin\u002Frails generate application_record\n```\n\n**`params` change — biggest gotcha:**\n\n```ruby\n# Rails 4 — params was a HashWithIndifferentAccess\nparams[:user][:email]                 # worked\nparams.permit(:foo, :bar)             # explicit but not required\nUser.create(params[:user])            # silently allowed any column\n\n# Rails 5 — params is ActionController::Parameters\nparams[:user][:email]                 # works (subclass of Hash)\nparams.merge(...)                     # returns Parameters, not Hash\nUser.create(params[:user])            # raises ForbiddenAttributesError — must permit\n```\n\nAudit every `Model.create(params[:foo])` \u002F `update(params[:foo])` call. Add `permit`.\n\n**Other 5.0 changes:**\n- ActionCable arrives (no impact unless you use it).\n- `belongs_to` is required by default (`optional: true` to opt out).\n- Test framework default switches; `Rails.test` may need `--clean` runs.\n- `head :ok` after a `respond_to` block is no longer needed (slight behavior change).\n\n### Pattern 2: 5.0 → 5.1\n\n- yarn arrives for managing JS packages.\n- System tests (Capybara wrapper) ship.\n- `form_for` \u002F `form_tag` start to be deprecated in favor of `form_with`.\n- `secrets.yml` partially deprecated (full deprecation in 5.2).\n\n### Pattern 3: 5.1 → 5.2\n\n- Active Storage ships (file uploads).\n- Encrypted credentials (`config\u002Fcredentials.yml.enc`) replace `secrets.yml`.\n- `Date.current` recommended over `Date.today` for time-zone safety.\n\n```bash\n# Migrate secrets.yml → credentials\nEDITOR=vim bin\u002Frails credentials:edit\n# Paste secrets.yml contents into the encrypted file\n```\n\n### Pattern 4: `belongs_to` required\n\n```ruby\n# Rails 4 — nil author was allowed silently\nclass Post \u003C ApplicationRecord\n  belongs_to :author\nend\n\n# Rails 5 — validation fires on save if author is nil\n# Either fix the data or opt out:\nbelongs_to :author, optional: true\n```\n\nAudit every `belongs_to` for `optional: true` cases.\n\n## Common mistakes to refuse\n\n- Don't skip 5.0 (the Parameters change has to land cleanly).\n- Don't allow `Model.create(params[:foo])` in 5.0+; permit everything.\n- Don't migrate ActionCable + ApplicationRecord + secrets.yml in the same PR.\n\n## See also\n\n- `rails-upgrade-3-to-4` — previous hop\n- `rails-upgrade-5-to-6` — next hop\n\n## Sources\n\n- [Rails 5.0 release notes](https:\u002F\u002Fguides.rubyonrails.org\u002F5_0_release_notes.html)\n- [Rails 5.2 release notes](https:\u002F\u002Fguides.rubyonrails.org\u002F5_2_release_notes.html)\n- [Strong Parameters](https:\u002F\u002Fapi.rubyonrails.org\u002Fclasses\u002FActionController\u002FStrongParameters.html)\n- [Encrypted credentials guide](https:\u002F\u002Fguides.rubyonrails.org\u002Fsecurity.html#custom-credentials)\n- [FastRuby — Rails 5 upgrade walkthrough](https:\u002F\u002Fwww.fastruby.io\u002Fblog)\n",{"name":36,"description":37},"rails-upgrade-4-to-5","Upgrade a Ruby on Rails app from 4.x to 5.x — dual-boot via next_rails, ApplicationRecord introduction, ActionCable arrival, strong parameters becoming mandatory, params no longer hash-like, the version hop sequence, the Rails 5.1 system tests and `yarn` arrival, the Rails 5.2 ActiveStorage + credentials. Use when upgrading from Rails 4 to 5, the user mentions ApplicationRecord, strong parameters, params.permit, ActionCable, the params HashWithIndifferentAccess change, or asks how to leave Rails 4.","master","b45dc3fabf3946024f23f2b6d4b3c07cb288cfbb","packages\u002Fresolver\u002Fsrc\u002F__tests__\u002F__fixtures__\u002Fmd-imports\u002Fskill-dir\u002Falpha",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":8,"skillName":36,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add mrwogu\u002Fpromptscript --skill rails-upgrade-4-to-5",{"tool":53,"command":54},"bunx","bunx skills add mrwogu\u002Fpromptscript --skill rails-upgrade-4-to-5",{"tool":56,"command":57},"pnpm","pnpm dlx skills add mrwogu\u002Fpromptscript --skill rails-upgrade-4-to-5","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmrwogu\u002Fpromptscript\u002Fblob\u002Fmain\u002Fpackages\u002Fresolver\u002Fsrc\u002F__tests__\u002F__fixtures__\u002Fmd-imports\u002Fskill-dir\u002Falpha\u002FSKILL.md",true,[61],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"evals.md","REFERENCE","参考文档",768,"https:\u002F\u002Fgithub.com\u002FMadBomber\u002Fexperiments\u002Fblob\u002Fmaster\u002Fai_misc\u002Fskills\u002Frails-skills\u002F19-rails-upgrade-4-to-5\u002Fevals.md",[68,102,117,140,166,191],{"skillNo":69,"name":70,"nameZh":71,"description":72,"descriptionZh":73,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":74,"categories":75,"keywords":82,"publishedAt":31},"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",[76,79],{"categoryNo":77,"categoryName":78,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",{"categoryNo":80,"categoryName":81,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8C7GF33QZZR2SXBJQHRAFNN","提示词工程与优化",[70,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101],"kilo","windsurf","reading","factory-ai","goose","Composition","files","writing","text","inheritance","for","read","write","coding","identity","standards","gemini","kiro-cli","expert",{"skillNo":103,"name":101,"nameZh":104,"description":105,"descriptionZh":106,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":107,"categories":108,"keywords":113,"publishedAt":31},"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",[109,110],{"categoryNo":77,"categoryName":78,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":111,"categoryName":112,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8CFBYPPFQY4HRA5R71EZ0TS","AI系统核心与身份配置",[101,114,115,116],"base","references","spring",{"skillNo":118,"name":119,"nameZh":120,"description":121,"descriptionZh":122,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":123,"categories":124,"keywords":131,"publishedAt":31},"01M6CDAK4J08AXZ8ZKX9VWP9NE","tdd-workflow","测试驱动开发工作流","Test-driven development workflow","测试驱动开发（TDD）工作流。","https:\u002F\u002Fgithub.com\u002Fmrwogu\u002Fpromptscript\u002Fblob\u002Fmain\u002Fpackages\u002Fresolver\u002Fsrc\u002F__tests__\u002F__fixtures__\u002Fregistry\u002Fnative-skills\u002Ftdd-workflow\u002FSKILL.md",[125,128],{"categoryNo":126,"categoryName":127,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":129,"categoryName":130,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[132,133,134,135,136,137,138,139],"tdd workflow","tdd","workflow","driven","test-driven","test","development workflow","development",{"skillNo":141,"name":142,"nameZh":143,"description":144,"descriptionZh":145,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":146,"licenseFileUrl":16,"sourceHtmlUrl":147,"categories":148,"keywords":153,"publishedAt":31},"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":27,"taxonomyTypeDesc":28},"01M8BQ6TK1MPB82068236GSXDE","文档处理",{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},[154,155,156,157,158,89,159,91,160,161,162,163,164,165],"processing","pdf processing","PDF","org","example","use","merge","extract","when","fill","extract pdf","forms",{"skillNo":167,"name":168,"nameZh":169,"description":170,"descriptionZh":171,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":172,"categories":173,"keywords":178,"publishedAt":31},"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":126,"categoryName":127,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":176,"categoryName":177,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[179,180,181,182,183,184,185,90,186,187,188,93,189,190],"react component","patterns","component","react","react component patterns","ui","tsx","components","react components","packages","codebase","conventions",{"skillNo":192,"name":193,"nameZh":194,"description":195,"descriptionZh":196,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":197,"categories":198,"keywords":205,"publishedAt":31},"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":22,"taxonomyTypeDesc":23},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":203,"categoryName":204,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",[206,207,208,209,159,210,211,212,213,162,214,215],"deploy","deploy app","app","deployment","code","releases","Production","user","environments","application"]