[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C4M6K4NVF6XDRCC1SPP2BX":3,"skill-same:01M6C4M6K4NVF6XDRCC1SPP2BX":70},{"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":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":15,"repositoryHtmlUrl":52,"repositoryHomepageUrl":17,"ownerHtmlUrl":53,"ownerBlogUrl":54,"ownerDescription":17,"updatedAt":55,"install":56,"resources":69},"01M6C4M6K4NVF6XDRCC1SPP2BX","effect-ts-idioms","Effect TypeScript 惯用法","Write idiomatic modern Effect TypeScript using Effect.gen or clear pipelines, typed error channels, Context and Layer services, and resource-safe runtime boundaries. Use when building or reviewing code with Effect, @effect\u002Fplatform, Schema, Layers, or Effect-based applications.","编写地道的现代 Effect TypeScript 代码，使用 Effect.gen 或清晰的 pipeline（管道）、类型化错误通道、Context 与 Layer 服务，以及资源安全的运行时边界。在使用 Effect、@effect\u002Fplatform、Schema、Layers 构建或审查代码，或开发基于 Effect 的应用程序时使用。","JonasThowsen\u002F.dotfiles","JonasThowsen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F116713750?v=4","01M6C4M1ZT6HTT1X5TH96Q48AQ","Jonas Thowsen","01M6C4M247M99A8EX3SS04F8RT",0,"MIT",null,"https:\u002F\u002Fgithub.com\u002FJonasThowsen\u002F.dotfiles\u002Fblob\u002Fmain\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Feffect-ts-idioms\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QVANT4709358VEJK53E","代码实现","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43],"effect","effect ts","effect ts idioms","safe","typescript","code","services","applications","write","context","use","schema","opencode","2026-11-10 10:12:30",false,"---\nname: effect-ts-idioms\ndescription: Write idiomatic modern Effect TypeScript using Effect.gen or clear pipelines, typed error channels, Context and Layer services, and resource-safe runtime boundaries. Use when building or reviewing code with Effect, @effect\u002Fplatform, Schema, Layers, or Effect-based applications.\ncompatibility: opencode\n---\n\nUse this skill to keep Effect code modern, explicit, and faithful to the library's model instead of falling back to Promise-first habits.\n\n## Mindset\n\nEffect code should make three things obvious from the type and structure:\n- success value\n- expected failure mode\n- required services\u002Fenvironment\n\nPrefer Effect-native modeling over wrapping Promise code and keeping the old design.\n\n## Default style\n\n- Use `Effect.gen` for multi-step workflows, branching, and orchestration.\n- Use `pipe(...)` plus combinators for short local transformations.\n- Keep effects lazy; describe work first, run it only at the program edge.\n- Write explicit lambdas instead of point-free or tacit style.\n\nPrefer:\n```ts\nEffect.map((user) => formatUser(user))\n```\n\nOver:\n```ts\nEffect.map(formatUser)\n```\n\nThis follows the official guidance to avoid tacit usage because it can hurt inference, overload resolution, and stack traces.\n\n## Error modeling\n\n- Put expected domain and operational failures in the error channel.\n- Reserve defects for truly unexpected bugs or violated invariants.\n- Prefer tagged, structured errors over raw strings.\n- Recover close to the boundary where a fallback is meaningful.\n\nGood defaults:\n- `Effect.fail(...)` for expected failures\n- `Effect.try(...)` \u002F `Effect.tryPromise(...)` when wrapping throwing or rejecting APIs\n- `catchTag`, `catchAll`, and `mapError` for recovery and translation\n\nAvoid:\n- throwing inside `Effect.sync`\n- burying business failures in `Option.none()` when the caller needs an explanation\n- converting everything to `unknown` or `Error` too early\n\n## Services, Context, and Layers\n\n- Model shared capabilities as services with `Context.Tag`.\n- Provide implementations with `Layer` for reusable dependency graphs.\n- Keep service interfaces small and capability-oriented.\n- Inject services through requirements, not global singletons.\n\nPrefer:\n- pure domain functions for pure logic\n- service tags for effectful capabilities\n- layers at app assembly boundaries\n\nDo not manually thread giant dependency objects through business logic if Effect requirements can model them cleanly.\n\n## Resource safety\n\n- Use scoped resource management for files, sockets, clients, subscriptions, locks, and anything requiring cleanup.\n- Prefer `Effect.acquireRelease`, `Effect.addFinalizer`, and scoped layers over manual cleanup bookkeeping.\n- Treat interruption as a normal part of execution, not an edge case.\n\nIf something must always be cleaned up, model it in the effect structure rather than relying on convention.\n\n## Runtime boundaries\n\n- Run effects at the outermost program boundary.\n- In Node apps, prefer `NodeRuntime.runMain(...)` for the main program so shutdown is graceful.\n- Avoid `Effect.runPromise` or `Effect.runSync` inside library code, helpers, or domain modules.\n- Convert external APIs at the edge, then stay inside Effect.\n\n## Concurrency and composition\n\n- Use fibers and combinators deliberately; choose sequential vs concurrent behavior explicitly.\n- Prefer `Effect.all(...)` and concurrency options for independent work.\n- Use retries, schedules, timeouts, and supervision as first-class tools instead of ad hoc loops.\n- Keep concurrent workflows readable; name intermediate effects when needed.\n\n## Data modeling\n\n- Prefer `Schema` at boundaries for parsing, validation, and encoding.\n- Prefer `Option`, `Either`, `Data`, `Chunk`, `Duration`, and other Effect data types when they make semantics clearer.\n- Avoid `null` and `undefined` in domain modeling when `Option` or a tagged union is better.\n\n## Interop rules\n\n- Wrap promise-returning APIs with `Effect.tryPromise` unless rejection is impossible.\n- Wrap callback or event APIs once, then expose an Effect-native interface.\n- Keep framework glue thin.\n\n## Review checklist\n\nWhen writing or reviewing Effect code, check:\n- Is expected failure in the error channel?\n- Are services expressed as requirements instead of hidden globals?\n- Is resource cleanup guaranteed by structure?\n- Is the runtime only used at the edge?\n- Is the code using `Effect.gen` or pipelines in a way that is easy to follow?\n- Is this still really Effect code, or just Promise code wrapped at the last second?\n","Use this skill to keep Effect code modern, explicit, and faithful to the library's model instead of falling back to Promise-first habits.\n\n## Mindset\n\nEffect code should make three things obvious from the type and structure:\n- success value\n- expected failure mode\n- required services\u002Fenvironment\n\nPrefer Effect-native modeling over wrapping Promise code and keeping the old design.\n\n## Default style\n\n- Use `Effect.gen` for multi-step workflows, branching, and orchestration.\n- Use `pipe(...)` plus combinators for short local transformations.\n- Keep effects lazy; describe work first, run it only at the program edge.\n- Write explicit lambdas instead of point-free or tacit style.\n\nPrefer:\n```ts\nEffect.map((user) => formatUser(user))\n```\n\nOver:\n```ts\nEffect.map(formatUser)\n```\n\nThis follows the official guidance to avoid tacit usage because it can hurt inference, overload resolution, and stack traces.\n\n## Error modeling\n\n- Put expected domain and operational failures in the error channel.\n- Reserve defects for truly unexpected bugs or violated invariants.\n- Prefer tagged, structured errors over raw strings.\n- Recover close to the boundary where a fallback is meaningful.\n\nGood defaults:\n- `Effect.fail(...)` for expected failures\n- `Effect.try(...)` \u002F `Effect.tryPromise(...)` when wrapping throwing or rejecting APIs\n- `catchTag`, `catchAll`, and `mapError` for recovery and translation\n\nAvoid:\n- throwing inside `Effect.sync`\n- burying business failures in `Option.none()` when the caller needs an explanation\n- converting everything to `unknown` or `Error` too early\n\n## Services, Context, and Layers\n\n- Model shared capabilities as services with `Context.Tag`.\n- Provide implementations with `Layer` for reusable dependency graphs.\n- Keep service interfaces small and capability-oriented.\n- Inject services through requirements, not global singletons.\n\nPrefer:\n- pure domain functions for pure logic\n- service tags for effectful capabilities\n- layers at app assembly boundaries\n\nDo not manually thread giant dependency objects through business logic if Effect requirements can model them cleanly.\n\n## Resource safety\n\n- Use scoped resource management for files, sockets, clients, subscriptions, locks, and anything requiring cleanup.\n- Prefer `Effect.acquireRelease`, `Effect.addFinalizer`, and scoped layers over manual cleanup bookkeeping.\n- Treat interruption as a normal part of execution, not an edge case.\n\nIf something must always be cleaned up, model it in the effect structure rather than relying on convention.\n\n## Runtime boundaries\n\n- Run effects at the outermost program boundary.\n- In Node apps, prefer `NodeRuntime.runMain(...)` for the main program so shutdown is graceful.\n- Avoid `Effect.runPromise` or `Effect.runSync` inside library code, helpers, or domain modules.\n- Convert external APIs at the edge, then stay inside Effect.\n\n## Concurrency and composition\n\n- Use fibers and combinators deliberately; choose sequential vs concurrent behavior explicitly.\n- Prefer `Effect.all(...)` and concurrency options for independent work.\n- Use retries, schedules, timeouts, and supervision as first-class tools instead of ad hoc loops.\n- Keep concurrent workflows readable; name intermediate effects when needed.\n\n## Data modeling\n\n- Prefer `Schema` at boundaries for parsing, validation, and encoding.\n- Prefer `Option`, `Either`, `Data`, `Chunk`, `Duration`, and other Effect data types when they make semantics clearer.\n- Avoid `null` and `undefined` in domain modeling when `Option` or a tagged union is better.\n\n## Interop rules\n\n- Wrap promise-returning APIs with `Effect.tryPromise` unless rejection is impossible.\n- Wrap callback or event APIs once, then expose an Effect-native interface.\n- Keep framework glue thin.\n\n## Review checklist\n\nWhen writing or reviewing Effect code, check:\n- Is expected failure in the error channel?\n- Are services expressed as requirements instead of hidden globals?\n- Is resource cleanup guaranteed by structure?\n- Is the runtime only used at the edge?\n- Is the code using `Effect.gen` or pipelines in a way that is easy to follow?\n- Is this still really Effect code, or just Promise code wrapped at the last second?\n",{"name":5,"description":7,"compatibility":43},"main","f5b4e1172fd18558c9071d150a1ffe797be04ca7","opencode\u002F.config\u002Fopencode\u002Fskills\u002Feffect-ts-idioms","https:\u002F\u002Fgithub.com\u002FJonasThowsen\u002F.dotfiles","https:\u002F\u002Fgithub.com\u002FJonasThowsen","invaron.no","2026-11-11 04:03:33",{"source":9,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add JonasThowsen\u002F.dotfiles --skill effect-ts-idioms",{"tool":62,"command":63},"bunx","bunx skills add JonasThowsen\u002F.dotfiles --skill effect-ts-idioms",{"tool":65,"command":66},"pnpm","pnpm dlx skills add JonasThowsen\u002F.dotfiles --skill effect-ts-idioms","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJonasThowsen\u002F.dotfiles\u002Fblob\u002Fmain\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Feffect-ts-idioms\u002FSKILL.md",true,[],[71,97,119,147,164],{"skillNo":72,"name":73,"nameZh":74,"description":75,"descriptionZh":76,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":77,"categories":78,"keywords":85,"publishedAt":44},"01M6C4MHG9NKR5WM5PQ3Z1TE0C","skill-creator","技能创建与优化评估","Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.","创建新技能、修改并改进现有技能，以及衡量技能性能。当用户想要从头创建技能、编辑或优化现有技能、运行评估（eval）来测试技能、通过方差分析对技能性能做基准测试，或优化技能描述以提高触发准确率时使用。","https:\u002F\u002Fgithub.com\u002FJonasThowsen\u002F.dotfiles\u002Fblob\u002Fmain\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fskill-creator\u002FSKILL.md",[79,82],{"categoryNo":80,"categoryName":81,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理",{"categoryNo":83,"categoryName":84,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",[86,41,87,88,89,90,91,92,93,94,95,96],"skill creator","performance","run evals","test","variance analysis","create","run","benchmark","analysis","improve","edit",{"skillNo":98,"name":99,"nameZh":100,"description":101,"descriptionZh":102,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":103,"categories":104,"keywords":109,"publishedAt":44},"01M6C4METZ2H1R94DPVFBM6EEX","modern-astro-v6","Astro v6 应用开发","Build idiomatic Astro v6 applications with server-first rendering, islands, content collections, actions, and current v6-safe APIs. Use when creating, reviewing, or migrating Astro projects, pages, components, content layers, or integrations.","使用服务端优先渲染、islands、content collections（内容集合）、actions 以及当前 v6 安全兼容的 API，构建地道的 Astro v6 应用。在创建、审查或迁移 Astro 项目、页面、组件、内容层或集成时使用该技能。","https:\u002F\u002Fgithub.com\u002FJonasThowsen\u002F.dotfiles\u002Fblob\u002Fmain\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fmodern-astro-v6\u002FSKILL.md",[105,106],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":107,"categoryName":108,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[110,111,112,113,38,114,115,116,34,117,118,41,43],"astro","modern astro v6","server","actions","first","content","components","projects","integrations",{"skillNo":120,"name":121,"nameZh":122,"description":123,"descriptionZh":124,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":125,"categories":126,"keywords":131,"publishedAt":44},"01M6C4MC12H795H32MWYRA9JQM","frontend-design","前端界面设计与实现","Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML\u002FCSS layouts, or when styling\u002Fbeautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.","创建富有特色、达到生产级且设计精良的前端界面。当用户要求构建 Web 组件、页面、工件、海报或应用时使用此技能（例如网站、落地页、仪表板、React 组件、HTML\u002FCSS 布局，或为任意 Web UI 提供样式美化）。生成富有创意、精致的代码和 UI 设计，避免千篇一律的 AI 风格。","https:\u002F\u002Fgithub.com\u002FJonasThowsen\u002F.dotfiles\u002Fblob\u002Fmain\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Ffrontend-design\u002FSKILL.md",[127,130],{"categoryNo":128,"categoryName":129,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQMKHSMFVQHR2KYAEVN","界面设计师",{"categoryNo":107,"categoryName":108,"taxonomyType":28,"taxonomyTypeDesc":29},[132,133,134,135,136,41,137,138,139,140,116,141,142,143,91,36,144,145,146,38],"design","frontend","frontend design","creative","styling","landing","quality","css","web","react","react components","web components","artifacts","examples","Production",{"skillNo":148,"name":149,"nameZh":150,"description":151,"descriptionZh":152,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":153,"categories":154,"keywords":157,"publishedAt":44},"01M6C4M9AJTGEJN0Q68WXDV4DG","elixir-idioms","Elixir 与 Phoenix 惯用法","Write idiomatic Elixir and Phoenix code with pattern matching, small composable functions, OTP-friendly boundaries, and BEAM-aware error handling. Use when creating or reviewing Elixir code, APIs, GenServers, Phoenix apps, Ecto code, or tests.","编写地道的 Elixir 和 Phoenix 代码，运用模式匹配、可组合的小型函数、OTP 友好的边界设计以及 BEAM 感知的错误处理。在创建或审查 Elixir 代码、API、GenServer、Phoenix 应用、Ecto 代码或测试时使用。","https:\u002F\u002Fgithub.com\u002FJonasThowsen\u002F.dotfiles\u002Fblob\u002Fmain\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Felixir-idioms\u002FSKILL.md",[155,156],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[158,159,41,160,161,36,162,163,39,43],"elixir idioms","elixir","beam","composable","error handling","Phoenix",{"skillNo":165,"name":166,"nameZh":167,"description":168,"descriptionZh":169,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":170,"categories":171,"keywords":174,"publishedAt":44},"01M6C4M42EEAKE6VBVQKTN11MK","ash-framework-idioms","Ash 框架惯用法","Write idiomatic Ash framework code using intentful actions, code interfaces, relationship management, DSL-first modeling, and framework-native changes\u002Fpreparations instead of ad hoc helper layers. Use when creating or reviewing Ash resources, domains, actions, queries, or Phoenix integrations.","编写地道的 Ash 框架代码，使用意图明确的 action（动作）、代码接口、关系管理、DSL 优先的建模，以及框架原生的 change\u002Fpreparation（变更\u002F准备），而非临时的辅助层。在创建或审查 Ash resource（资源）、domain（域）、action（动作）、query（查询）或 Phoenix 集成时使用。","https:\u002F\u002Fgithub.com\u002FJonasThowsen\u002F.dotfiles\u002Fblob\u002Fmain\u002Fopencode\u002F.config\u002Fopencode\u002Fskills\u002Fash-framework-idioms\u002FSKILL.md",[172,173],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[175,176,36,113,163,114,118,39,177,41,43],"framework","ash framework idioms","management"]