effect-patterns-platform-getting-started

Standardize cross-platform Effect-TS operations for file I/O and environment access.

785|26|Updated Jun 22, 2025
One-click install
npx skills add https://github.com/PaulJPhilp/EffectPatterns --skill effect-patterns-platform-getting-started
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effect-patterns-platform-getting-started
Source: https://github.com/PaulJPhilp/EffectPatterns/tree/main/config/.claude-plugin/plugins/effect-patterns/skills/effect-patterns-platform-getting-started
Command: npx skills add https://github.com/PaulJPhilp/EffectPatterns --skill effect-patterns-platform-getting-started

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @effect/platform, @effect/platform-node.

What problem does it solve?

This Skill provides a structured approach to using Effect-TS Platform patterns for cross-platform operations, enabling consistent platform APIs across Node.js, Bun, and browser environments.

Core Features & Use Cases

  • Cross-platform file and system operation primitives via the Effect Platform.
  • Secure access to environment variables and platform context with typed configurations.
  • Real-world patterns for Node.js and Bun runtimes that translate to portable Effect code.

Quick Start

Run the platform getting started example to execute a simple Effect program that reads a configuration and outputs platform details.

Frequently Asked Questions about effect-patterns-platform-getting-started

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write cross-platform file I/O operations in Effect-TS?

You can achieve cross-platform file I/O in Effect-TS by using the @effect/platform package along with the appropriate platform bindings like @effect/platform-node for Node.js execution.

What is the best way to access environment variables in Effect-TS across Node.js and Bun?

Accessing environment variables securely across Node.js and Bun is handled by Effect Platform patterns, which provide typed configurations and platform context primitives for consistent system access.

Does Effect Platform require specific dependencies to run on Node.js?

Yes, running Effect Platform on Node.js requires installing the @effect/platform package and the @effect/platform-node bindings to ensure the runtime correctly maps platform-specific operations.

Can I use Effect-TS Platform patterns for both Node.js and Bun runtimes?

Effect-TS Platform patterns are designed for cross-platform operations, providing real-world primitives that translate to portable Effect code across both Node.js and Bun runtimes.

Why do I need platform bindings for Effect-TS applications?

Platform bindings like @effect/platform-node are needed to bridge the abstract Effect Platform APIs with the specific underlying runtime environment, ensuring file system and context operations execute correctly.

How does Effect-TS handle platform context during cross-platform operations?

Effect-TS handles platform context by standardizing system operations through the Effect Platform, wrapping environment access and file I/O in typed configurations that work across Node.js and browser environments.