effect-ts

effect-ts/skills

Скилл для работы в репозиториях на Effect: следование паттернам, соглашениям и архитектуре проекта.

Звёзды116
Форки5
Авторeffect-ts
Обновлёнокт 9 2026

Установка

SKILL.md

Effect Expert

Expert guidance for programming with the Effect library, covering error handling, dependency injection, composability, and testing patterns.

Prerequisite

Before doing any other Effect-related work, check that ./.repos/effect exists at the root of the repository where the skill is being used.

If it does not exist, stop and prompt the user with the setup task documented in ./references/setup.md.

Research Strategy

Effect has many ways to accomplish the same task. Proactively research best practices when working with Effect patterns, especially for moderate to high complexity tasks.

Use the local guides in ./references/ first. They are the preferred source for best practices, conventions, and common implementation patterns.

Only go directly to the vendored Effect repo when:

  • the guides do not cover the question
  • you need exact API details or signatures
  • you need deeper implementation details
  • you need to verify a behavior against the source

Research Sources

  1. Local skill guides first. Start with the relevant files in ./references/ before doing deeper research.
  2. Codebase patterns second. Examine similar patterns in the current project before implementing. If Effect patterns already exist, follow them for consistency. If no patterns exist, skip this step.
  3. Effect source code last. For gaps in the guides, complex type errors, unclear behavior, or implementation details, examine the vendored Effect source at ./.repos/effect/packages/effect/src/.

When To Research

  • Always research for services, layers, or complex dependency injection.
  • Always research for error handling with multiple error types or complex error hierarchies.
  • Always research for stream-based operations and reactive patterns.
  • Always research for resource management with scoped effects and cleanup.
  • Always research for concurrent or performance-critical code.
  • Always research for unfamiliar testing patterns.
  • Research when needed for complex refactors from promises or try/catch into Effect.
  • Research when needed for new service dependencies or layer restructuring.
  • Research when needed for custom error types or extensions of existing error hierarchies.
  • Research when needed for integrations with external systems such as databases, APIs, or third-party services.

Research Approach

  • Focus on canonical, readable, and maintainable solutions rather than clever optimizations.
  • Verify suggested approaches against existing codebase patterns when those patterns exist.
  • When multiple approaches are possible, prefer the most idiomatic Effect solution supported by the codebase and the vendored source.

Codebase Pattern Discovery

When working in a project that uses Effect, check for existing patterns before implementing new code:

  1. Search for Effect imports and existing module usage to understand current conventions.
  2. Identify how services and layers are structured in the project.
  3. Note how errors are defined and propagated.
  4. Examine how Effect code is tested in the project.

If no Effect patterns exist in the codebase, proceed using canonical patterns from the vendored Effect source and examples. Do not block on missing codebase patterns.

Feature Discovery

When you need to discover available Effect modules, packages, or capabilities, search ./references/features.md first.

  • Use it to identify the right package or module for a task.
  • Use the listed repo paths to jump directly into the vendored source under ./.repos/effect.
  • Use it before inventing custom abstractions when Effect may already provide the functionality.

Guide Discovery

When the task touches one of these areas, consult the matching guide before implementing:

  • ./references/guide-effect.md for core Effect usage patterns, common constructors, composition, provisioning, and runtime boundaries
  • ./references/guide-error-handling.md for defining errors, schema-based errors, failure handling, defects, and interrupts
  • ./references/guide-layers.md for services, layer construction, composition, and provisioning patterns
  • ./references/guide-observability.md for Effect.fn, spans, logging, metrics, and telemetry wiring
  • ./references/guide-retries.md for retry policies, retry conditions, fallback strategies, and ExecutionPlan
  • ./references/guide-schedule.md for retries, repeats, backoff, polling, cron, and schedule composition
  • ./references/guide-schema.md for schema design, transformations, unions, recursion, opaque/branded types, and schema best practices
  • ./references/guide-sql.md for Effect SQL usage, transactions, resolvers, schema-aware SQL, and migrations
  • ./references/guide-testing.md for detailed @effect/vitest usage, layered test setup, property tests, and test services

These guides should be treated as the default implementation guidance. Do not skip them and jump straight to ./.repos/effect unless you need source-level confirmation or the guides do not answer the question.

Effect Principles

Apply these core principles when writing Effect code.

Installation

When installing Effect packages in a user repository:

  • use effect@beta
  • keep all @effect/* packages on aligned versions
  • install only the packages needed for the user's runtime and actual task

Version Rules

  • effect should be installed as effect@beta
  • if you install any @effect/* package, make sure all @effect/* packages use matching versions
  • do not mix unrelated @effect/* versions in the same project

Package Selection

Choose packages based on the runtime and the work being done.

  • core library: effect@beta
  • Node.js runtime needs: install the matching @effect/platform-node
  • browser runtime needs: install the matching @effect/platform-browser
  • Bun runtime needs: install the matching @effect/platform-bun
  • Vitest integration needs: install the matching @effect/vitest
  • OpenTelemetry integration needs: install the matching @effect/opentelemetry

Install additional @effect/* packages only when the user task actually needs them.

Practical Rule

  • start with effect@beta
  • add @effect/* packages as needed by runtime and features
  • keep the full installed Effect package set version-aligned

Error Handling

  • Use Effect's typed error system instead of throwing exceptions.
  • Define descriptive error types with proper error propagation.
  • Prefer Schema.TaggedErrorClass when the error can be schema-defined.
  • Use Effect.fail, Effect.catchTag, and Effect.catch for error control flow.

Dependency Injection

  • Implement dependency injection using services and layers.
  • Define services with Context.Tag.
  • Compose layers with Layer.merge and Layer.provide.
  • Use Effect.provide to inject dependencies at the edge, avoid providing locally.
  • Keep services encapsulated; avoid exporting trivial accessor wrappers that only forward to one service method.

Composability

  • Leverage Effect composability for complex operations.
  • Use appropriate constructors such as Effect.succeed, Effect.fail, Effect.tryPromise, Effect.try, and Effect.sync.
  • Apply proper resource management with scoped effects.
  • Chain operations with Effect.flatMap, Effect.map, and Effect.tap.

Business Logic Functions

  • Prefer Effect.fn for reusable business-logic functions that return Effect.
  • Prefer Effect.fn over raw Effect.gen definitions even when the function takes no arguments.
  • If you do not want an explicit named span, use Effect.fn without a span name.
  • Do not use Effect.fnUntraced as the default.
  • Use Effect.fnUntraced only for edge cases with a concrete low-level reason, such as measured hot-path overhead.

TypeScript Preferences

  • Never use any.
  • Never use as casts.
  • Never use unsafe type assertions or escape hatches.
  • Never use namespace.
  • Prefer correct typing, schema-driven decoding, narrowing, and proper generic constraints instead of forcing types.
  • If a value comes from an external boundary, validate or decode it instead of asserting its type.
  • If a type is hard to express, simplify the design or introduce a properly typed helper instead of using unsafe TypeScript.
  • For layers, do not hide them inside namespace blocks. Prefer either static members on the service class or plain exported layer constants.

Code Quality

  • Write type-safe code that leverages Effect's type system.
  • Use Effect.gen for readable sequential code.
  • Implement proper testing patterns using Effect testing utilities.
  • Prefer existing Effect primitives before introducing custom helpers.
  • Prefer Schema.Class / Schema.TaggedClass variants over plain Schema.Struct for named reusable schemas when possible.

Explaining Solutions

When providing solutions, explain the Effect concepts being used and why they fit the specific use case. If you encounter patterns not covered in local references, prefer consistency with the codebase when possible and otherwise rely on the vendored Effect source.

References

  • ./references/features.md
  • ./references/guide-effect.md
  • ./references/guide-error-handling.md
  • ./references/guide-layers.md
  • ./references/guide-observability.md
  • ./references/guide-retries.md
  • ./references/guide-schedule.md
  • ./references/guide-schema.md
  • ./references/guide-sql.md
  • ./references/guide-testing.md
  • ./references/setup.md

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: effect-ts](https://darkplay.ru/ai/skills/skills-effect-ts-2)

Похожие скиллы и другие разделы каталога

Похожие скиллы в категории «Программирование»

Та же категория — сравните, что ещё подойдёт под вашу задачу.

ponytailDietrichGebert · Режим ленивого сеньора для кодинга: YAGNI, сначала stdlib, без лишних абстракций
193 349 ★
graphifyGraphify-Labs · Ответы о кодовой базе через постоянный граф знаний из кода, документов и медиа
149 767 ★
add-uint-supportpytorch · Добавление поддержки беззнаковых целых (uint) в операторы PyTorch через макросы…
105 793 ★
playwright-devmicrosoft · Объясняет, как разрабатывать Playwright: добавление API, MCP-инструментов, CLI-команд и…
100 457 ★
understandegonex-ai · Анализирует кодовую базу и строит интерактивный граф знаний для понимания архитектуры…
93 066 ★
implementing-agent-modesposthog · Руководство по созданию и обновлению режима для ИИ-агента PostHog. Режимы ограничивают…
40 862 ★
copilotkit-aguicopilotkit · Применяйте при создании кастомных бэкендов агентов, реализации протокола AG-UI, отладке…
38 781 ★
turborepovercel · Руководство по Turborepo: turbo.json, пайплайны задач, кэш, --filter, CI и структура…
31 361 ★
repomix-exploreryamadashy · Анализ удалённого или локального репозитория через упаковку Repomix CLI и чтение…
29 309 ★
recommendtoss · Анализирует код или требования и рекомендует лучшие функции es-toolkit. Используйте…
11 398 ★
Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

Meta Agentic Project Scaffoldgithub · Мета-агент для создания проектов, помогающий пользователям эффективно создавать рабочие…
36 140 ★
Power BI Visualization Expert Modegithub · Экспертное руководство по дизайну и визуализации отчётов Power BI с лучшими практиками…
36 140 ★
Skill Revieweranthropics · Проверяет качество навыка и его соответствие лучшим практикам.
31 495 ★
statistical-analystalirezarezvani · Проверка гипотез, анализ A/B-экспериментов, расчёт размера выборки и доверительных…
510 комп.
brooks-lintanthropics · Диагностика качества кода по принципам шести классических книг по разработке ПО в четырёх…
38 комп.
claude-cowork-personal-context-loaderanthropics · Claude начинает каждую сессию с нуля — этот плагин автоматически загружает ваш документ…
38 комп.
claude-performanceanthropics · Слой самоулучшения: читает JSONL-сессии, считает метрики и пишет правила в CLAUDE.md.
38 комп.
datainkanthropics · Навыки ИИ для эффективной подачи данных: визуализация, сторителлинг и инфографика по…
38 комп.
golpo-videoanthropics · Навык Golpo превращает диалог в Claude Code в готовое объясняющее видео без выхода из…
38 комп.
imessageanthropics · Двусторонний мост iMessage для Claude Code: сообщения, фото, реакции и файлы.
38 комп.

Лучшие ИИ-инструменты для программирования

ИИ для программирования

Подборка нейросетей и ИИ-ассистентов для разработки и автоматизации кода. Сервисы, которые ускоряют написание, ревью и отладку, экономят часы рутины и снижают порог входа в сложные

GenAPIGenapi
По запросу
5.0
Notepad++ AINotepad-plus-plus
По запросу
4.9
GitHub CopilotGitHub
По подписке
4.9
Creatium MaxCremax
По запросу
4.8
Emacs AIGnu
По запросу
4.8
KiteKite
По запросу
4.8
Amazon Q DeveloperAmazon
По запросу
4.8
VECTA
Есть бесплатный тариф
4.8
SoftPractice
Есть бесплатный тариф
4.8
VibeForge
Есть бесплатный тариф
4.7

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8