Agent skill

Effect TS

by pproenca in pproenca/dot-skills

Effect-TS library usage in TypeScript — Effect.gen generators, Schema.Struct/Schema.Class definitions, Layer/Context.Tag/Service patterns, Effect.pipe pipelines, Data.TaggedError/Data.Class error…

MITAuto-check passedDevelopment

Install Effect TS

skills CLI
$ npx skills add pproenca/dot-skills --skill effect-ts -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pproenca/dot-skills effect-ts --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.experimental/effect-ts .claude/skills/effect-ts && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
effect-ts
GitHub stars
214
Token cost
~2k tokens
SKILL.md length
399 words
Files
24 (incl. references)
Skills in repo
182
Repo updated
First seen
Licence
MIT

At a glance

Effect-TS library usage in TypeScript — Effect.gen generators, Schema.Struct/Schema.Class definitions, Layer/Context.Tag/Service patterns, Effect.pipe pipelines, Data.TaggedError/Data.Class error…

  • Refactoring TypeScript code that uses Effect — when you see imports from effect
  • SKILL.md covers When to Apply, How to Use, Quick Reference — Common… and Gotchas
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Any @effect/ scoped package (schema

What it does

Effect TS is an agent skill from pproenca/dot-skills. Effect-TS library usage in TypeScript — Effect.gen generators, Schema.Struct/Schema.Class definitions, Layer/Context.Tag/Service patterns, Effect.pipe pipelines, Data.TaggedError/Data.Class error types, Ref/Queue/PubSub/Deferred concurrency primitives, Match module, Config providers, Scope/Exit/Cause/Runtime patterns, or any code using Effect's typed error channel (E parameter). Trigger when writing, reviewing, debugging, or refactoring TypeScript code that uses Effect — when you see imports from effect, effect/…

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 24 other files, including reference files (for example `gotchas.md`, `metadata.json` and `references/_sections.md`).

It sits in Development, covering Observability, Event-driven systems and State management. It works with TypeScript, OpenTelemetry, Vitest and React. The repository describes itself as: A collection of AI agent skills following the Agent Skills open format. The licence is MIT.

When your agent uses it

  • Refactoring TypeScript code that uses Effect — when you see imports from effect
  • Any @effect/ scoped package (schema
  • The user asks about Effect patterns
  • Migration from Promises/fp-ts/neverthrow to Effect

Example prompts

  • “s useEffect, Redux side effects, or general English usage of”
  • “/effect-ts”

What it can do on your machine

Read from SKILL.md and the folder at commit cf93c57. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Effect TS loads about 2k tokens when it runs, and up to ~392k if it reads all its reference files. Until then it costs about 235 tokens; SKILL.md has 399 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~235
When it runs · the whole SKILL.md, loaded when a task matches
~2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~392k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from pproenca/dot-skills at commit cf93c57, republished under its MIT licence (© pproenca). 399 words, ~1,963 tokens.

Download SKILL.mdSave it as .claude/skills/effect-ts/SKILL.md (or your agent's skills folder). This skill also uses 23 other files; get the full folder from GitHub.
name
effect-ts
description
Effect-TS library usage in TypeScript — Effect.gen generators, Schema.Struct/Schema.Class definitions, Layer/Context.Tag/Service patterns, Effect.pipe pipelines, Data.TaggedError/Data.Class error types, Ref/Queue/PubSub/Deferred concurrency primitives, Match module, Config providers, Scope/Exit/Cause/Runtime patterns, or any code using Effect's typed error channel (E parameter). Trigger when writing, reviewing, debugging, or refactoring TypeScript code that uses Effect — when you see imports from `effect`, `effect/*`, or any `@effect/*` scoped package (schema, platform, sql, opentelemetry, cli, cluster, rpc, vitest). Also trigger when the user asks about Effect patterns, migration from Promises/fp-ts/neverthrow to Effect, or how to structure an Effect application. Do NOT trigger for React's useEffect, Redux side effects, or general English usage of "effect" unless the context clearly involves the Effect-TS library.

Effect TypeScript Best Practices

Effect is a TypeScript library for building complex, type-safe applications with structured error handling, dependency injection via services/layers, fiber-based concurrency, and resource safety.

When to Apply

  • Writing or reviewing TypeScript code that imports from effect, @effect/schema, or @effect/platform
  • Implementing typed error handling with Effect<Success, Error, Requirements>
  • Building services and layers for dependency injection
  • Working with Schema for data validation, decoding, and transformation
  • Using fiber-based concurrency (queues, semaphores, PubSub, deferred)
  • Processing data with Stream and Sink
  • Migrating from Promises, fp-ts, neverthrow, or ZIO to Effect

How to Use

This skill is organized by domain. Read the relevant reference file for the area you're working in.

Read First: The Paradigm

Always read this before diving into API references, especially when refactoring existing code to use Effect or writing new Effect services:

ReferenceWhen to Read
Think in Effect: The Paradigm ShiftBefore any other reference. Mental model shifts, refactoring recipes, anti-patterns, application architecture. Read this to understand HOW to think in Effect — the other files teach WHAT to type.
Core Foundations
ReferenceWhen to Read
Getting StartedCreating the Effect type, pipelines, generators, running effects
Error ManagementTyped errors, recovery, retrying, timeouts, sandboxing
Core ConceptsRequest batching, configuration management, runtime system
Data & Validation
ReferenceWhen to Read
Data TypesOption, Either, Cause, Chunk, DateTime, Duration, Exit, Data
Schema BasicsSchema intro, basic usage, classes, constructors, effect data types
Schema AdvancedTransformations, filters, annotations, error formatting, JSON Schema output
Show full SKILL.md (159 more words)Show less
Architecture & Dependencies
ReferenceWhen to Read
Requirements ManagementServices, Layers, dependency injection, layer memoization
Resource ManagementScope, safe resource acquisition/release, caching
State ManagementRef, SubscriptionRef, SynchronizedRef for concurrent state
Concurrency & Streaming
ReferenceWhen to Read
ConcurrencyFibers, Deferred, Latch, PubSub, Queue, Semaphore
Streams and SinksCreating, consuming, transforming streams; sink operations
SchedulingBuilt-in schedules, cron, combinators, repetition
Platform & Observability
ReferenceWhen to Read
PlatformFileSystem, Command, Terminal, KeyValueStore, Path
ObservabilityLogging, metrics, tracing, Supervisor
TestingTestClock for time simulation; for service mocking and layer testing, see Requirements Management
Style, AI & Migration
ReferenceWhen to Read
Code StyleBranded types, pattern matching, dual APIs, guidelines, traits
AI IntegrationEffect AI packages for LLM tool use and execution planning
MicroLightweight Effect alternative for smaller bundles
Migration GuidesComing from Promises, fp-ts, neverthrow, or ZIO

Quick Reference — Common Patterns

The Effect Type
ts
//         ┌─── Success type
//         │        ┌─── Error type
//         │        │      ┌─── Required dependencies
//         ▼        ▼      ▼
Effect<Success, Error, Requirements>
Creating Effects
ts
import { Effect } from "effect"

// From sync values
const succeed = Effect.succeed(42)
const fail = Effect.fail(new Error("oops"))

// From sync code that may throw
const sync = Effect.try(() => JSON.parse(data))

// From promises
const async = Effect.tryPromise(() => fetch(url))

// From generators (recommended for complex flows)
const program = Effect.gen(function* () {
  const user = yield* getUser(id)
  const todos = yield* getTodos(user.id)
  return { user, todos }
})
Running Effects
ts
// Async (returns Promise)
Effect.runPromise(program)

// With full Exit information
Effect.runPromiseExit(program)

// Sync (throws on async)
Effect.runSync(program)
Typed Errors
ts
import { Data, Effect } from "effect"

class NotFound extends Data.TaggedError("NotFound")<{
  readonly id: string
}> {}

class Unauthorized extends Data.TaggedError("Unauthorized")<{}> {}

// Error type is tracked: Effect<User, NotFound | Unauthorized>
const getUser = (id: string) =>
  Effect.gen(function* () {
    // ...
  })
Services and Layers
ts
import { Context, Effect, Layer } from "effect"

// Define a service
class UserRepo extends Context.Tag("UserRepo")<
  UserRepo,
  { readonly findById: (id: string) => Effect.Effect<User, NotFound> }
>() {}

// Use in effects — adds to Requirements channel
const program = Effect.gen(function* () {
  const repo = yield* UserRepo
  return yield* repo.findById("1")
})

// Implement with a Layer
const UserRepoLive = Layer.succeed(UserRepo, {
  findById: (id) => Effect.succeed({ id, name: "Alice" })
})

// Provide and run
program.pipe(Effect.provide(UserRepoLive), Effect.runPromise)
Schema Validation
ts
import { Schema } from "effect"

const User = Schema.Struct({
  id: Schema.Number,
  name: Schema.String,
  email: Schema.String.pipe(Schema.pattern(/@/))
})

type User = typeof User.Type

// Decode (parse + validate)
const decode = Schema.decodeUnknownSync(User)
const user = decode({ id: 1, name: "Alice", email: "a@b.com" })
Pipelines
ts
import { Effect, pipe } from "effect"

// Data-last (pipe style)
const result = pipe(
  getTodos,
  Effect.map((todos) => todos.filter((t) => !t.done)),
  Effect.flatMap((active) => sendNotification(active.length)),
  Effect.catchTag("NetworkError", () => Effect.succeed("offline"))
)

// Fluent (method style)
const result2 = getTodos.pipe(
  Effect.map((todos) => todos.filter((t) => !t.done)),
  Effect.flatMap((active) => sendNotification(active.length))
)

Gotchas

See gotchas.md for known failure points.

© pproenca, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 23 other files (references) in skills/.experimental/effect-ts of pproenca/dot-skills.

  • SKILL.md
  • gotchas.md
  • metadata.json
  • references/_sections.md
  • references/ai-integration.md
  • references/code-style.md
  • references/conc-concurrency.md
  • references/core-concepts.md
  • references/data-types.md
  • references/error-management.md
  • references/getting-paradigm.md
  • references/getting-started.md
  • references/micro-module.md
  • references/migration-guides.md
  • references/obs-observability.md
  • references/plat-platform.md
  • references/req-management.md
  • references/resource-management.md
  • references/sched-scheduling.md
  • references/schema-advanced.md
  • … and 4 more

Open the folder on GitHubat commit cf93c57

Compare with similar skills

Effect TS next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Effect TS compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Effect TS this skillpproenca/dot-skills214—~2kAutomated safety check: PassMIT
Effect TSmattiacerutti/supernova187—~2.8kAutomated safety check: PassMIT
Effect TStellahq/opensession392—~3.7kAutomated safety check: PassMIT
Phoenix Client DevelopmentArize-ai/phoenix12k—~370Automated safety check: PassApache-2.0
Coding Agentmastra-ai/mastra29k—~2.3kAutomated safety check: PassCustom licence
Typescript React ReviewerSuFxGIT/scoutarr114—~1.7kAutomated safety check: PassNone

Similar skills

  • Effect TS

    mattiacerutti/supernova

    Write idiomatic Effect v4 TypeScript following official best practices from effect-solutions and the Effect source.

    187 GitHub stars~2.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Effect TS

    tellahq/opensession

    Write idiomatic Effect v4 TypeScript verified against the pinned effect@4.0.0-rc.112 source.

    392 GitHub stars~3.7k tokensUpdated today
    Testing & QAAuto-check passed
  • Development guide for the @arizeai/phoenix-client TypeScript SDK — run and resume experiments, manage OpenTelemetry tracer providers with stack-based attach/detach, and write vitest unit and…

    12k GitHub stars~370 tokensUpdated today
    Testing & QAAuto-check passed
  • Coding Agent

    mastra-ai/mastra

    Authoring playbook for building agents that write, edit, review, or refactor code.

    29k GitHub stars~2.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Expert code reviewer for TypeScript + React 19 applications.

    114 GitHub stars~1.7k tokensUpdated 6 mo ago
    DevelopmentAuto-check passed
  • Rift Backend Effect

    Compound-inc/rift

    A skill your agent uses when adding, reviewing, or refactoring backend code in Rift's TanStack Start app that should follow apps/start/BACKENDEFFECTPLAYBOOK.md.

    123 GitHub stars~1.8k tokensUpdated 9 days ago
    DevOps & CloudAuto-check passed

More from pproenca/dot-skills

All 182 skills in this repo
  • Audio Voice Recovery

    pproenca/dot-skills

    Audio forensics and voice recovery guidelines for CSI-level audio analysis.

    214 GitHub stars~3.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Codemod React Pipeline

    pproenca/dot-skills

    Guided, scripted pipeline for running JSX/TSX/React codemods safely across large legacy codebases.

    214 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Dev Rfc

    pproenca/dot-skills

    Create well-structured RFCs and technical proposals for software projects.

    214 GitHub stars~3.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Dx Harness

    pproenca/dot-skills

    Developer-experience friction auditing and fixing — slow onboarding, repeated manual setup steps, missing bootstrap/reset/seed scripts, undiscoverable conventions.

    214 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Language Spec Author

    pproenca/dot-skills

    Turn a rough idea for a language into a complete, implementable specification — a DSL, query, config/data, template, or protocol language — by interviewing the author dimension by dimension until…

    214 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Python Pep Author

    pproenca/dot-skills

    Drafting Python Enhancement Proposals (PEPs) — proposing a Python language feature, a standard library change, an interoperability standard, or an informational/process document for the Python…

    214 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Effect TS

What does Effect TS do?

Effect-TS library usage in TypeScript — Effect.gen generators, Schema.Struct/Schema.Class definitions, Layer/Context.Tag/Service patterns, Effect.pipe pipelines, Data.TaggedError/Data.Class error…. Effect TS is an agent skill from pproenca/dot-skills.Class error types, Ref/Queue/PubSub/Deferred concurrency primitives, Match module, Config providers, Scope/Exit/Cause/Runtime patterns, or any code using Effect's typed error channel (E parameter).

When should I use Effect TS?

Effect TS fits situations like: refactoring TypeScript code that uses Effect — when you see imports from effect; any @effect/ scoped package (schema; the user asks about Effect patterns; migration from Promises/fp-ts/neverthrow to Effect.

How do I install Effect TS in Claude Code?

Run `npx skills add pproenca/dot-skills --skill effect-ts -a claude-code`. Or copy the skill folder (skills/.experimental/effect-ts in pproenca/dot-skills) into .claude/skills/effect-ts in your project. Claude Code loads it when a task matches its description.

How do I install Effect TS in Codex?

Run `npx skills add pproenca/dot-skills --skill effect-ts -a codex`. Or copy the skill folder (skills/.experimental/effect-ts in pproenca/dot-skills) into .agents/skills/effect-ts in your project. Codex loads it when a task matches its description.

Can I use Effect TS in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pproenca/dot-skills --skill effect-ts -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/effect-ts, .gemini/skills/effect-ts, .github/skills/effect-ts and .opencode/skills/effect-ts in your project.

What does Effect TS need to run?

SKILL.md names no scripts, command-line tools or credentials: Effect TS is instructions for the agent only.

Does Effect TS access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Effect TS safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Effect TS use?

Effect TS is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Effect TS use?

About 2k tokens (SKILL.md is roughly 7.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 390k tokens, read only when the agent opens those files.

What are the alternatives to Effect TS?

Skills that share tags, products or a category with Effect TS: Effect TS (mattiacerutti/supernova, 187 stars), Effect TS (tellahq/opensession, 392 stars), Phoenix Client Development (Arize-ai/phoenix, 12k stars) and Coding Agent (mastra-ai/mastra, 29k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Effect TS?

pproenca (a GitHub user) maintains it in pproenca/dot-skills, which has 214 GitHub stars. The repository holds 182 skills in this directory. The repository was last updated on August 15, 2026.

Source: pproenca/dot-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.