[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M782ZZF4C29XQ63HZHSE0DNH":3,"skill-same:01M782ZZF4C29XQ63HZHSE0DNH":47},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M782ZZF4C29XQ63HZHSE0DNH","alba-inertia",null,"Alba serializers + Typelizer for type-safe Inertia Rails props with auto-generated TypeScript types. Use when serializing models for Inertia responses, setting up Alba resources, generating TypeScript types from Ruby, or using Inertia prop options (defer, once, merge, scroll) with Alba attributes. Replaces as_json with structured, auto-typed ApplicationResource, page resources, and shared props resources. When active, OVERRIDES the `render inertia: { ... }` pattern from other skills — use convention-based instance variable rendering instead.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_inertia-rails_skills_alba-inertia\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: alba-inertia\ndescription: >-\n  Alba serializers + Typelizer for type-safe Inertia Rails props with auto-generated TypeScript types. Use when\n  serializing models for Inertia responses, setting up Alba resources, generating TypeScript types from Ruby, or\n  using Inertia prop options (defer, once, merge, scroll) with Alba attributes. Replaces as_json with structured,\n  auto-typed ApplicationResource, page resources, and shared props resources. When active, OVERRIDES the\n  `render inertia: { ... }` pattern from other skills — use convention-based instance variable rendering instead.\n---\n\n# Alba + Typelizer for Inertia Rails\n\nRequires: `alba`, `typelizer`, `alba-inertia` gems in Gemfile.\n\nAlba serializers for Inertia props with auto-generated TypeScript types.\nReplaces `as_json(only: [...])` with structured, type-safe resources.\n\n**Before creating a resource, ask:**\n- **Reusable data shape (user, course)?** → Entity resource (`UserResource`) — shared across pages\n- **Page-specific props bundle?** → Page resource (`UsersIndexResource`) — one per controller action\n- **Global data (auth, notifications)?** → Shared props resource (`SharedPropsResource`)\n\n**NEVER:**\n- Use `as_json` when Alba is set up — it bypasses type generation and creates untyped props\n- Skip `typelize_from` when resource name differs from model — Typelizer can't infer column types and generates `unknown`\n- Put `declare module` augmentations in `serializers\u002Findex.ts` — Typelizer-generated types go in `serializers\u002Findex.ts`, manual InertiaConfig goes in `globals.d.ts`\n\n## Setup\n\n### ApplicationResource (all resources inherit from this)\n\n```ruby\n# app\u002Fresources\u002Fapplication_resource.rb\nclass ApplicationResource\n  include Alba::Resource\n\n  helper Typelizer::DSL          # enables typelize, typelize_from\n  helper Alba::Inertia::Resource # enables inertia: option on attributes\n\n  include Rails.application.routes.url_helpers\nend\n```\n\n### Controller Integration\n\n```ruby\n# app\u002Fcontrollers\u002Finertia_controller.rb\nclass InertiaController \u003C ApplicationController\n  include Alba::Inertia::Controller\n\n  inertia_share { SharedPropsResource.new(self).to_inertia }\nend\n```\n\n## Resource Types\n\n### Entity Resource (reusable data shape)\n\n```ruby\n# app\u002Fresources\u002Fuser_resource.rb\nclass UserResource \u003C ApplicationResource\n  typelize_from User  # needed when resource name doesn't match model\n\n  attributes :id, :name, :email\n\n  typelize :string?\n  attribute :avatar_url do |user|\n    user.avatar.attached? ? rails_blob_path(user.avatar, only_path: true) : nil\n  end\nend\n```\n\n### Page Resource (page-specific props)\n\n```ruby\n# app\u002Fresources\u002Fusers\u002Findex_resource.rb\n# Naming convention: {Controller}{Action}Resource\nclass UsersIndexResource \u003C ApplicationResource\n  has_many :users, resource: UserResource\n\n  typelize :string\n  attribute :search do |obj, _|\n    obj.params.dig(:filters, :search)\n  end\nend\n```\n\n### Shared Props Resource\n\nRequires Rails `Current` attributes (e.g., `Current.user`) to be configured —\nsee [CurrentAttributes](https:\u002F\u002Fapi.rubyonrails.org\u002Fclasses\u002FActiveSupport\u002FCurrentAttributes.html).\n\n```ruby\n# app\u002Fresources\u002Fshared_props_resource.rb\nclass SharedPropsResource \u003C ApplicationResource\n  one :auth, source: proc { Current }\n\n  attribute :unread_messages_count, inertia: { always: true } do\n    Current.user&.unread_count || 0\n  end\n\n  has_many :live_now, resource: LiveSessionsResource,\n    inertia: { once: { expires_in: 5.minutes } }\nend\n```\n\n## Convention-Based Rendering\n\nWith `Alba::Inertia::Controller`, instance variables auto-serialize:\n\n```ruby\nclass UsersController \u003C InertiaController\n  def index\n    @users = User.all        # auto-serialized via UserResource\n    @filters = filter_params  # plain data passed through\n    # Auto-detects UsersIndexResource\n  end\n\n  def show\n    @user = User.find(params[:id])\n    # Auto-detects UsersShowResource\n  end\nend\n```\n\n## Typelizer + Type Generation\n\n`typelize_from` tells Typelizer which model to infer column types from — needed when\nresource name doesn't match model. For computed attributes, declare types explicitly:\n\n```ruby\nclass AuthorResource \u003C ApplicationResource\n  typelize_from User\n\n  attributes :id, :name, :email\n\n  typelize :string?                                  # next attribute is string | undefined\n  attribute :avatar_url do |user|\n    rails_storage_proxy_path(user.avatar) if user.avatar.attached?\n  end\n\n  typelize filters: \"{category: number}\"            # inline TS type\nend\n```\n\nTypes auto-generate when Rails server runs. Manual: `bin\u002Frake typelizer:generate`.\n\n## Inertia Prop Options in Alba\n\nThe `inertia:` option on attributes\u002Fassociations maps to `InertiaRails` prop types:\n\n```ruby\nattribute :stats, inertia: :defer           # InertiaRails.defer\nhas_many :users, inertia: :optional         # InertiaRails.optional\nhas_many :countries, inertia: :once         # InertiaRails.once\nhas_many :items, inertia: { merge: true }   # InertiaRails.merge\nattribute :csrf, inertia: { always: true }  # InertiaRails.always\n```\n\n**MANDATORY — READ ENTIRE FILE** when using grouped defer, merge with `match_on`,\nscroll props, or combining multiple options:\n[`references\u002Fprop-options.md`](references\u002Fprop-options.md) (~60 lines) — full syntax\nfor all `inertia:` option variants and `inertia_prop` alternative syntax.\n\n**Do NOT load** for basic `inertia: :defer`, `inertia: :optional`, or\n`inertia: :once` — the shorthand above is sufficient.\n\n## Troubleshooting\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| TypeScript type is all `unknown` | Missing `typelize_from` | Add `typelize_from ModelName` when resource name doesn't match model |\n| `inertia:` option has no effect | Missing helper | Ensure `helper Alba::Inertia::Resource` is in `ApplicationResource` |\n| Types not regenerating | Server not running | Typelizer watches files in dev only. Run `bin\u002Frake typelizer:generate` manually |\n| `NoMethodError` for `typelize` | Missing helper | Ensure `helper Typelizer::DSL` is in `ApplicationResource` |\n| Convention-based rendering picks wrong resource | Naming mismatch | Resource must be `{Controller}{Action}Resource` (e.g., `UsersIndexResource` for `UsersController#index`) |\n| `to_inertia` undefined | Missing include | Controller needs `include Alba::Inertia::Controller` |\n\n## Related Skills\n- **Prop types** → `inertia-rails-controllers` (defer, once, merge, scroll)\n- **TypeScript config** → `inertia-rails-typescript` (InertiaConfig in globals.d.ts)\n","# Alba + Typelizer for Inertia Rails\n\nRequires: `alba`, `typelizer`, `alba-inertia` gems in Gemfile.\n\nAlba serializers for Inertia props with auto-generated TypeScript types.\nReplaces `as_json(only: [...])` with structured, type-safe resources.\n\n**Before creating a resource, ask:**\n- **Reusable data shape (user, course)?** → Entity resource (`UserResource`) — shared across pages\n- **Page-specific props bundle?** → Page resource (`UsersIndexResource`) — one per controller action\n- **Global data (auth, notifications)?** → Shared props resource (`SharedPropsResource`)\n\n**NEVER:**\n- Use `as_json` when Alba is set up — it bypasses type generation and creates untyped props\n- Skip `typelize_from` when resource name differs from model — Typelizer can't infer column types and generates `unknown`\n- Put `declare module` augmentations in `serializers\u002Findex.ts` — Typelizer-generated types go in `serializers\u002Findex.ts`, manual InertiaConfig goes in `globals.d.ts`\n\n## Setup\n\n### ApplicationResource (all resources inherit from this)\n\n```ruby\n# app\u002Fresources\u002Fapplication_resource.rb\nclass ApplicationResource\n  include Alba::Resource\n\n  helper Typelizer::DSL          # enables typelize, typelize_from\n  helper Alba::Inertia::Resource # enables inertia: option on attributes\n\n  include Rails.application.routes.url_helpers\nend\n```\n\n### Controller Integration\n\n```ruby\n# app\u002Fcontrollers\u002Finertia_controller.rb\nclass InertiaController \u003C ApplicationController\n  include Alba::Inertia::Controller\n\n  inertia_share { SharedPropsResource.new(self).to_inertia }\nend\n```\n\n## Resource Types\n\n### Entity Resource (reusable data shape)\n\n```ruby\n# app\u002Fresources\u002Fuser_resource.rb\nclass UserResource \u003C ApplicationResource\n  typelize_from User  # needed when resource name doesn't match model\n\n  attributes :id, :name, :email\n\n  typelize :string?\n  attribute :avatar_url do |user|\n    user.avatar.attached? ? rails_blob_path(user.avatar, only_path: true) : nil\n  end\nend\n```\n\n### Page Resource (page-specific props)\n\n```ruby\n# app\u002Fresources\u002Fusers\u002Findex_resource.rb\n# Naming convention: {Controller}{Action}Resource\nclass UsersIndexResource \u003C ApplicationResource\n  has_many :users, resource: UserResource\n\n  typelize :string\n  attribute :search do |obj, _|\n    obj.params.dig(:filters, :search)\n  end\nend\n```\n\n### Shared Props Resource\n\nRequires Rails `Current` attributes (e.g., `Current.user`) to be configured —\nsee [CurrentAttributes](https:\u002F\u002Fapi.rubyonrails.org\u002Fclasses\u002FActiveSupport\u002FCurrentAttributes.html).\n\n```ruby\n# app\u002Fresources\u002Fshared_props_resource.rb\nclass SharedPropsResource \u003C ApplicationResource\n  one :auth, source: proc { Current }\n\n  attribute :unread_messages_count, inertia: { always: true } do\n    Current.user&.unread_count || 0\n  end\n\n  has_many :live_now, resource: LiveSessionsResource,\n    inertia: { once: { expires_in: 5.minutes } }\nend\n```\n\n## Convention-Based Rendering\n\nWith `Alba::Inertia::Controller`, instance variables auto-serialize:\n\n```ruby\nclass UsersController \u003C InertiaController\n  def index\n    @users = User.all        # auto-serialized via UserResource\n    @filters = filter_params  # plain data passed through\n    # Auto-detects UsersIndexResource\n  end\n\n  def show\n    @user = User.find(params[:id])\n    # Auto-detects UsersShowResource\n  end\nend\n```\n\n## Typelizer + Type Generation\n\n`typelize_from` tells Typelizer which model to infer column types from — needed when\nresource name doesn't match model. For computed attributes, declare types explicitly:\n\n```ruby\nclass AuthorResource \u003C ApplicationResource\n  typelize_from User\n\n  attributes :id, :name, :email\n\n  typelize :string?                                  # next attribute is string | undefined\n  attribute :avatar_url do |user|\n    rails_storage_proxy_path(user.avatar) if user.avatar.attached?\n  end\n\n  typelize filters: \"{category: number}\"            # inline TS type\nend\n```\n\nTypes auto-generate when Rails server runs. Manual: `bin\u002Frake typelizer:generate`.\n\n## Inertia Prop Options in Alba\n\nThe `inertia:` option on attributes\u002Fassociations maps to `InertiaRails` prop types:\n\n```ruby\nattribute :stats, inertia: :defer           # InertiaRails.defer\nhas_many :users, inertia: :optional         # InertiaRails.optional\nhas_many :countries, inertia: :once         # InertiaRails.once\nhas_many :items, inertia: { merge: true }   # InertiaRails.merge\nattribute :csrf, inertia: { always: true }  # InertiaRails.always\n```\n\n**MANDATORY — READ ENTIRE FILE** when using grouped defer, merge with `match_on`,\nscroll props, or combining multiple options:\n[`references\u002Fprop-options.md`](references\u002Fprop-options.md) (~60 lines) — full syntax\nfor all `inertia:` option variants and `inertia_prop` alternative syntax.\n\n**Do NOT load** for basic `inertia: :defer`, `inertia: :optional`, or\n`inertia: :once` — the shorthand above is sufficient.\n\n## Troubleshooting\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| TypeScript type is all `unknown` | Missing `typelize_from` | Add `typelize_from ModelName` when resource name doesn't match model |\n| `inertia:` option has no effect | Missing helper | Ensure `helper Alba::Inertia::Resource` is in `ApplicationResource` |\n| Types not regenerating | Server not running | Typelizer watches files in dev only. Run `bin\u002Frake typelizer:generate` manually |\n| `NoMethodError` for `typelize` | Missing helper | Ensure `helper Typelizer::DSL` is in `ApplicationResource` |\n| Convention-based rendering picks wrong resource | Naming mismatch | Resource must be `{Controller}{Action}Resource` (e.g., `UsersIndexResource` for `UsersController#index`) |\n| `to_inertia` undefined | Missing include | Controller needs `include Alba::Inertia::Controller` |\n\n## Related Skills\n- **Prop types** → `inertia-rails-controllers` (defer, once, merge, scroll)\n- **TypeScript config** → `inertia-rails-typescript` (InertiaConfig in globals.d.ts)\n",{"name":5,"description":7},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fskills_sh\u002Fs\u002Fskills-sh_inertia-rails_skills_alba-inertia",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill alba-inertia",{"tool":39,"command":40},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill alba-inertia",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill alba-inertia","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_inertia-rails_skills_alba-inertia\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]