一键导入
effect-module-effect
Guidance for `effect/Effect` focused on APIs like gen, map, and fail. Load after `effect-skill-router` when this module is the primary owner.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guidance for `effect/Effect` focused on APIs like gen, map, and fail. Load after `effect-skill-router` when this module is the primary owner.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Guidance for facet `effect/Channel#composition` focused on APIs like map, flatMap, and mapDone. Load after `effect-skill-router` when this facet is the primary owner.
Guidance for facet `effect/Channel#core` focused on APIs like runDone, runFold, and runHead. Load after `effect-skill-router` when this facet is the primary owner.
Guidance for facet `effect/Channel#utilities` focused on APIs like provide, mapError, and mapInputError. Load after `effect-skill-router` when this facet is the primary owner.
Guidance for facet `effect/Effect#composition` focused on APIs like map, flatMap, and mapBoth. Load after `effect-skill-router` when this facet is the primary owner.
Guidance for facet `effect/Effect#concurrency` focused on APIs like runFork, runForkWith, and race. Load after `effect-skill-router` when this facet is the primary owner.
Guidance for facet `effect/Effect#context-di` focused on APIs like provide, service, and services. Load after `effect-skill-router` when this facet is the primary owner.
| name | effect-module-effect |
| description | Guidance for `effect/Effect` focused on APIs like gen, map, and fail. Load after `effect-skill-router` when this module is the primary owner. |
effect/Effect.packages/effect/src/Effect.ts.Effect module is the core of the Effect library, providing a powerful and expressive way to model and compose asynchronous, concurrent, and effectful computations.genmapfailfilterflatMapmapBothproviderunForkrunSyncservicesucceedfailSyncmakeSpanmapEagermapErrorservicesServicesfailCausereferences/api-reference.mdimport { Console, Effect } from "effect";
// Creating a simple effect
const hello = Effect.succeed("Hello, World!");
// Composing effects
const program = Effect.gen(function* () {
const message = yield* hello;
yield* Console.log(message);
return message.length;
});
// Running the effect
Effect.runPromise(program).then(console.log); // 13
effect-facet-effect-composition (effect/Effect#composition)effect-facet-effect-concurrency (effect/Effect#concurrency)effect-facet-effect-constructors (effect/Effect#constructors)effect-facet-effect-context-di (effect/Effect#context-di)effect-facet-effect-error-handling (effect/Effect#error-handling)effect-facet-effect-execution (effect/Effect#execution)effect-facet-effect-resource-scope (effect/Effect#resource-scope)effect-skill-router for routing and ownership checks.effect-facet-effect-composition.packages/effect/src/Effect.tspackages/effect/test/Effect.test.tspackages/effect/test/Channel.test.tspackages/effect/test/Deferred.test.tspackages/effect/test/Layer.test.tspackages/effect/test/Logger.test.tspackages/effect/test/LogLevel.test.tsreferences/api-reference.mdreferences/usage-reference.mdreferences/owner.md