effect-platform-layers
Installation
SKILL.md
Platform Layers
Master Effect platform layer provision for cross-platform applications. Use this skill when structuring applications that use Effect platform abstractions to ensure portability across Node.js and Bun environments.
Targets Effect 4.1.0. Keep effect and @effect/* packages on the same version and inspect the effect@4.1.0 source tag. APIs explicitly marked @stability unstable can change in minor releases, including third-party client surfaces such as NodeRedis.
The Golden Rule
Application code uses abstract interfaces. Platform-specific layers are provided either at the program entry point or inside a runtime-facing adapter module's defaultLayer.
// Application code - platform agnostic
import { Effect, FileSystem, Path, pipe } from 'effect';