[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71H5VV2TFZ20HYVQSBSQTY8":3,"skill-same:01M71H5VV2TFZ20HYVQSBSQTY8":52},{"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":27,"linkOnly":28,"markdownContent":29,"markdownBody":30,"frontMatter":31,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":13,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":37,"install":38,"resources":51},"01M71H5VV2TFZ20HYVQSBSQTY8","01-fundamentals",null,"Effect-TS 4 fundamentals — Effect.gen, yield*, pipe, basic combinators, and runtime execution","lambda-solver\u002Flambdabench-pro","lambda-solver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F279071046?v=4","01M71H55W2WK3PM6RRAY9JZWAJ","01M71H55WRT9XAFDAVACTCC2XP",0,"MIT","https:\u002F\u002Fgithub.com\u002Flambda-solver\u002Flambdabench-pro\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Feffect-ts\u002Fcore\u002F01-fundamentals\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26],"01 fundamentals","effect","yield","pipe","opencode","basic","runtime","execution","gen","2026-11-10 10:12:30",false,"---\nname: 01-fundamentals\ndescription: Effect-TS 4 fundamentals — Effect.gen, yield*, pipe, basic combinators, and runtime execution\nlicense: MIT\ncompatibility: opencode\n---\n\n# Effect-TS v4 Fundamentals\n\n**Version**: `effect@4.0.0-beta.41`\n\n## Core model\n\n`Effect\u003CSuccess, Error, Requirements>` — lazy description of a program.\nNothing runs until you call a `run*` function or `Layer.launch`.\n\n## Effect.gen — primary style\n\n```typescript\nimport { Effect } from \"effect\";\n\nconst program = Effect.gen(function* () {\n  yield* Effect.log(\"starting\");\n  const result = yield* someEffect;\n  return result;\n});\n```\n\n## Effect.fn — all named exported functions\n\nAdds automatic span tracing + stack frames. Use for every exported function\nthat returns an Effect.\n\n```typescript\nimport { Effect } from \"effect\"\n\n\u002F\u002F ✅ correct — traced, named span\nexport const processFile = Effect.fn(\"processFile\")(function* (path: string) {\n  yield* Effect.log(\"processing:\", path)\n  return yield* readFile(path)\n})\n\n\u002F\u002F Extra operators as additional arguments — NOT .pipe after the call\nexport const processFileSafe = Effect.fn(\"processFileSafe\")(\n  function* (path: string) {\n    return yield* readFile(path)\n  },\n  Effect.withSpan(\"processFile\"),\n  Effect.annotateLogs({ component: \"file-processor\" }),\n)\n\n\u002F\u002F ❌ wrong — no tracing, no span\nexport const bad = (path: string) => Effect.gen(function* () { ... })\n```\n\n## Effect.fnUntraced — internal \u002F private helpers\n\nUse when the function is not exported and tracing is not needed.\nSimpler syntax — no name string required.\n\n```typescript\nimport { Effect } from \"effect\";\n\n\u002F\u002F ✅ for private \u002F internal helpers\nconst buildPayload = Effect.fnUntraced(function* (id: string) {\n  const data = yield* loadData(id);\n  return { id, data };\n});\n```\n\n## Creating Effects\n\n```typescript\nEffect.succeed(value); \u002F\u002F constant value\nEffect.fail(new MyError()); \u002F\u002F typed error\nEffect.sync(() => Date.now()); \u002F\u002F sync side-effect, guaranteed not to throw\nEffect.try({\n  try: () => JSON.parse(s),\n  catch: (e) => new ParseError({ cause: e }),\n});\nEffect.tryPromise({\n  try: () => fetch(url).then((r) => r.json()),\n  catch: (e) => new FetchError({ url, cause: e }),\n});\nEffect.callback\u003Cnumber>((resume) => {\n  \u002F\u002F callback-based APIs\n  const id = setTimeout(() => resume(Effect.succeed(42)), 100);\n  return Effect.sync(() => clearTimeout(id)); \u002F\u002F finalizer on interruption\n});\n```\n\n## Running Effects\n\n```typescript\nimport { BunRuntime } from \"@effect\u002Fplatform-bun\";\nimport { NodeRuntime } from \"@effect\u002Fplatform-node\";\n\nBunRuntime.runMain(program); \u002F\u002F Bun entrypoint — handles signals\nNodeRuntime.runMain(program); \u002F\u002F Node entrypoint\nawait Effect.runPromise(program); \u002F\u002F tests \u002F scripts\nEffect.runSync(program); \u002F\u002F sync-only programs\n```\n\n## Pipe for composition\n\n```typescript\nprogram.pipe(\n  Effect.map((x) => x * 2),\n  Effect.flatMap((n) => Effect.succeed(n + 1)),\n  Effect.catchTag(\"ParseError\", () => Effect.succeed(0)),\n  Effect.withSpan(\"myOp\"),\n);\n```\n\n## Always `return` before `yield* error`\n\nTypeScript must see the `return` to know execution stops at that point:\n\n```typescript\nexport const load = Effect.fn(\"load\")(function* (id: string) {\n  if (!id) return yield* new NotFoundError(); \u002F\u002F return = TS knows it stops here\n  return yield* fetchById(id);\n});\n```\n\n## Type annotations\n\n```typescript\n\u002F\u002F Inside Effect.fn generator — use Effect.fn.Return\nfunction* (id: string): Effect.fn.Return\u003CUser, UserError>\n\n\u002F\u002F Standalone effect\nconst eff: Effect.Effect\u003Cstring, ParseError, never> = ...\n\n\u002F\u002F Service type access\ntype DbShape = Database[\"Service\"]\n```\n","# Effect-TS v4 Fundamentals\n\n**Version**: `effect@4.0.0-beta.41`\n\n## Core model\n\n`Effect\u003CSuccess, Error, Requirements>` — lazy description of a program.\nNothing runs until you call a `run*` function or `Layer.launch`.\n\n## Effect.gen — primary style\n\n```typescript\nimport { Effect } from \"effect\";\n\nconst program = Effect.gen(function* () {\n  yield* Effect.log(\"starting\");\n  const result = yield* someEffect;\n  return result;\n});\n```\n\n## Effect.fn — all named exported functions\n\nAdds automatic span tracing + stack frames. Use for every exported function\nthat returns an Effect.\n\n```typescript\nimport { Effect } from \"effect\"\n\n\u002F\u002F ✅ correct — traced, named span\nexport const processFile = Effect.fn(\"processFile\")(function* (path: string) {\n  yield* Effect.log(\"processing:\", path)\n  return yield* readFile(path)\n})\n\n\u002F\u002F Extra operators as additional arguments — NOT .pipe after the call\nexport const processFileSafe = Effect.fn(\"processFileSafe\")(\n  function* (path: string) {\n    return yield* readFile(path)\n  },\n  Effect.withSpan(\"processFile\"),\n  Effect.annotateLogs({ component: \"file-processor\" }),\n)\n\n\u002F\u002F ❌ wrong — no tracing, no span\nexport const bad = (path: string) => Effect.gen(function* () { ... })\n```\n\n## Effect.fnUntraced — internal \u002F private helpers\n\nUse when the function is not exported and tracing is not needed.\nSimpler syntax — no name string required.\n\n```typescript\nimport { Effect } from \"effect\";\n\n\u002F\u002F ✅ for private \u002F internal helpers\nconst buildPayload = Effect.fnUntraced(function* (id: string) {\n  const data = yield* loadData(id);\n  return { id, data };\n});\n```\n\n## Creating Effects\n\n```typescript\nEffect.succeed(value); \u002F\u002F constant value\nEffect.fail(new MyError()); \u002F\u002F typed error\nEffect.sync(() => Date.now()); \u002F\u002F sync side-effect, guaranteed not to throw\nEffect.try({\n  try: () => JSON.parse(s),\n  catch: (e) => new ParseError({ cause: e }),\n});\nEffect.tryPromise({\n  try: () => fetch(url).then((r) => r.json()),\n  catch: (e) => new FetchError({ url, cause: e }),\n});\nEffect.callback\u003Cnumber>((resume) => {\n  \u002F\u002F callback-based APIs\n  const id = setTimeout(() => resume(Effect.succeed(42)), 100);\n  return Effect.sync(() => clearTimeout(id)); \u002F\u002F finalizer on interruption\n});\n```\n\n## Running Effects\n\n```typescript\nimport { BunRuntime } from \"@effect\u002Fplatform-bun\";\nimport { NodeRuntime } from \"@effect\u002Fplatform-node\";\n\nBunRuntime.runMain(program); \u002F\u002F Bun entrypoint — handles signals\nNodeRuntime.runMain(program); \u002F\u002F Node entrypoint\nawait Effect.runPromise(program); \u002F\u002F tests \u002F scripts\nEffect.runSync(program); \u002F\u002F sync-only programs\n```\n\n## Pipe for composition\n\n```typescript\nprogram.pipe(\n  Effect.map((x) => x * 2),\n  Effect.flatMap((n) => Effect.succeed(n + 1)),\n  Effect.catchTag(\"ParseError\", () => Effect.succeed(0)),\n  Effect.withSpan(\"myOp\"),\n);\n```\n\n## Always `return` before `yield* error`\n\nTypeScript must see the `return` to know execution stops at that point:\n\n```typescript\nexport const load = Effect.fn(\"load\")(function* (id: string) {\n  if (!id) return yield* new NotFoundError(); \u002F\u002F return = TS knows it stops here\n  return yield* fetchById(id);\n});\n```\n\n## Type annotations\n\n```typescript\n\u002F\u002F Inside Effect.fn generator — use Effect.fn.Return\nfunction* (id: string): Effect.fn.Return\u003CUser, UserError>\n\n\u002F\u002F Standalone effect\nconst eff: Effect.Effect\u003Cstring, ParseError, never> = ...\n\n\u002F\u002F Service type access\ntype DbShape = Database[\"Service\"]\n```\n",{"name":5,"license":14,"description":7,"compatibility":22},"main","816c073aaf171300af3605b06f7ec5aa7370ef0b",".opencode\u002Fskills\u002Feffect-ts\u002Fcore\u002F01-fundamentals","https:\u002F\u002Fgithub.com\u002Flambda-solver\u002Flambdabench-pro","https:\u002F\u002Fgithub.com\u002Flambda-solver","2026-05-31 17:08:46",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add lambda-solver\u002Flambdabench-pro --skill 01-fundamentals",{"tool":44,"command":45},"bunx","bunx skills add lambda-solver\u002Flambdabench-pro --skill 01-fundamentals",{"tool":47,"command":48},"pnpm","pnpm dlx skills add lambda-solver\u002Flambdabench-pro --skill 01-fundamentals","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flambda-solver\u002Flambdabench-pro\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Feffect-ts\u002Fcore\u002F01-fundamentals\u002FSKILL.md",true,[],[53,79,98,116,136,153],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":27},"01M71H9FNA5D6Y4ANXD18Z1Z3X","tmux-workflow","Development workflow with tmux — run dev servers, Storybook, and background processes in persistent sessions with live logs, while keeping OpenCode free for chat","https:\u002F\u002Fgithub.com\u002Flambda-solver\u002Flambdabench-pro\u002Fblob\u002Fmain\u002Freference\u002Fghui\u002F.opencode\u002Fskills\u002Ftmux\u002FSKILL.md",[],[60,61,62,63,64,65,66,67,68,69,70,22,71,72,73,74,75,76,77,78],"tmux","workflow","tmux workflow","chat","dev servers","background","processes","storybook","live","servers","run","with","logs","development workflow","free","dev","sessions","for","development",{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":27},"01M71H9DQJDAJVZX37NDN99D3P","04-anti-patterns","React anti-patterns to avoid — manual JSX repetition, useEffect misuse, reference instability, prop drilling, conditional hooks, and common performance traps","https:\u002F\u002Fgithub.com\u002Flambda-solver\u002Flambdabench-pro\u002Fblob\u002Fmain\u002Freference\u002Fghui\u002F.opencode\u002Fskills\u002Freact\u002Fpatterns\u002F04-anti-patterns\u002FSKILL.md",[],[86,87,88,89,90,91,92,93,94,95,96,22,97],"patterns","anti patterns","04 anti patterns","common","jsx","reference","conditional","hooks","manual","performance","anti-patterns","react",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":27},"01M71H9BXF511W2R3B73S5P9ZN","03-state-management","React state management patterns — lifting state, colocation, URL state, server state with TanStack Query, local state with useState\u002FuseReducer","https:\u002F\u002Fgithub.com\u002Flambda-solver\u002Flambdabench-pro\u002Fblob\u002Fmain\u002Freference\u002Fghui\u002F.opencode\u002Fskills\u002Freact\u002Fpatterns\u002F03-state-management\u002FSKILL.md",[],[105,106,107,108,97,109,86,110,111,112,113,22,114,71,115],"management","state management","state","03 state management","query","URL","tanstack","react state management","local","server","tanstack query",{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":27},"01M71H9AAGVWMYQ4NG82QPYCTE","02-component-composition","React component composition patterns — render props, compound components, list rendering with map, slot patterns, and layout primitives","https:\u002F\u002Fgithub.com\u002Flambda-solver\u002Flambdabench-pro\u002Fblob\u002Fmain\u002Freference\u002Fghui\u002F.opencode\u002Fskills\u002Freact\u002Fpatterns\u002F02-component-composition\u002FSKILL.md",[],[123,124,125,22,71,126,127,97,128,86,129,130,131,132,133,134,135],"02 component composition","component","Composition","compound","components","primitives","composition patterns","list","map","rendering","render","react component","layout",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":27},"01M71H98RDXRQZDR496SRD906M","01-fp-style","React functional programming style — pure components, hooks conventions, Effect Atom integration, and Tailwind patterns","https:\u002F\u002Fgithub.com\u002Flambda-solver\u002Flambdabench-pro\u002Fblob\u002Fmain\u002Freference\u002Fghui\u002F.opencode\u002Fskills\u002Freact\u002Fpatterns\u002F01-fp-style\u002FSKILL.md",[],[143,144,145,86,146,147,22,148,97,149,127,93,150,151,152,19],"01 fp style","style","atom","conventions","integration","functional","programming","Tailwind","tailwind patterns","functional programming",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":27},"01M71H95PYGAWBS5C8KN0C4WGT","react-animation","React animation with react\u002Fmotion (Framer Motion) — declarative animations, gestures, layout animations, and performance best practices","https:\u002F\u002Fgithub.com\u002Flambda-solver\u002Flambdabench-pro\u002Fblob\u002Fmain\u002Freference\u002Fghui\u002F.opencode\u002Fskills\u002Freact\u002Fanimation\u002FSKILL.md",[],[97,160,161,95,162,22,135,163,164,71,165,166,167,168],"react animation","Animation","framer motion","motion","best practices","framer","gestures","animations","declarative"]