effect-context-witness

Installation
SKILL.md

Context Witness Pattern

Choose between witness (existence) and capability (behavior) patterns for Context.Service definitions.

Baseline: effect@4.1.0 stable. Inspect Context.ts, Layer.ts, and Effect.ts with git show effect@4.1.0:packages/effect/src/<Module>.ts in the Effect reference repository; a newer main checkout is not the release contract.

Coupling: Hard vs Soft

Some coupling is necessary and good - but move it from hard to soft coupling.

Hard Coupling (Schema)

Field exists in the schema - tightly coupled to domain model:

import { Schema } from 'effect';
Installs
3
GitHub Stars
11
First Seen
Aug 27, 2026