effect-patterns-tooling-and-debugging
БесплатноБез исполняемых скриптовНе проверенEffect-TS patterns for Tooling And Debugging. Use when working with tooling and debugging in Effect-TS applications.
от PaulJPhilp★ 807 звёзд на GitHubОб этом скилле
Effect-TS Patterns: Tooling And Debugging
This skill provides 8 curated Effect-TS patterns for tooling and debugging. Use this skill when working on tasks related to:
- tooling and debugging
- Best practices in Effect-TS applications
- Real-world patterns and solutions
🟢 Beginner Patterns
Read Effect Type Errors
Rule: Effect errors are verbose but structured - learn to extract the key information.
Rationale:
Effect type errors can be long, but they follow a pattern. Learn to scan for the key parts.
Effect's type system catches many bugs at compile time, but:
- Effect types are complex - Three type parameters
- Errors are nested - Multiple layers of generics
- Messages are verbose - TypeScript shows everything
Understanding the pattern makes errors manageable.
Set Up Your Effect Development Environment
Rule: Install the Effect extension and configure TypeScript for optimal Effect development.
Rationale:
Set up your development environment with the Effect extension and proper TypeScript configuration for the best experience.
A well-configured environment helps you:
- See types clearly - Effect types can be complex
- Get better autocomplete - Know what methods are available
- Catch errors early - TypeScript finds problems
- Navigate easily - Go to definitions, find references
🟡 Intermediate Patterns
Supercharge Your Editor with the Effect LSP
Rule: Install and use the Effect LSP extension for enhanced type information and error checking in your editor.
Good Example:
Imagine you have the following code. Without the LSP, hovering over program might show a complex, hard-to-read inferred type.
import { Effect } from "effect";
// Define Logger service using Effect.Service pattern
class Logger extends Effect.Service<Logger>()("Logger", {
sync: () => ({
log: (msg: string) => Effect.log(`LOG: ${msg}`),
}),
}) {}
const program = Effect.succeed(42).pipe(
Effect.map((n) => n.toString()),
Effect.flatMap((s) => Effect.log(s)),
Effect.provide(Logger.Default)
);
// Run the program
Effect.runPromise(program);
With the Effect LSP installed, your editor would display a clear, readable overlay right above the program variable, looking something like this:
// (LSP Inlay Hint)
// program: Effect<void, never, never>
This immediately tells you that the final program returns nothing (void), has no expected failures (never), and has no remaining requirements (never), so it's ready to be run.
Anti-Pattern:
Going without the LSP. While your code will still compile and work perfectly fine, you are essentially "flying blind." You miss out on the rich, real-time feedback that the LSP provides, forcing you to rely more heavily on manual type checking, tsc runs, and deciphering complex inferred types from your editor's default tooltips. This leads to a slower, less efficient development cycle.
Rationale:
To significantly improve your development experience with Effect, install the official Effect Language Server (LSP) extension for your code editor (e.g., the "Effect" extension in VS Code).
Effect's type system is incredibly powerful, but TypeScript's default language server doesn't always display the rich information contained within the A, E, and R channels in the most intuitive way.
The Effect LSP is a specialized tool that understands the semantics of Effect. It hooks into your editor to provide a superior experience:
- Rich Inline Types: It displays the full
Effect<A, E, R>signature directly in your code as you work, so you always know exactly what an effect produces, how it can fail, and what it requires. - Clear Error Messages: It provides more specific and helpful error messages tailored to Effect's APIs.
- Enhanced Autocompletion: It can offer more context-aware suggestions.
This tool essentially makes the compiler's knowledge visible at a glance, reducing the mental overhead of tracking complex types and allowing you to catch errors before you even save the file.
Use Effect DevTools
Rule: Use Effect's built-in debugging features and logging for development.
Good Example:
1. Enable Debug Mode
import { Effect, Logger, LogLevel, FiberRef, Cause } from "effect"
// ============================================
// 1. Verbose logging for development
// ============================================
const debugProgram = Effect.gen(function* () {
yield* Effect.logDebug("Starting operation")
const result = yield* someEffect.pipe(
Effect.tap((value) => Effect.logDebug(`Got value: ${value}`))
)
yield* Effect.logDebug("Operation complete")
return result
})
// Run with debug logging enabled
const runWithDebug = debugProgram.pipe(
Logger.withMinimumLogLevel(LogLevel.Debug),
Effect.runPromise
)
// =========================================
Установить effect-patterns-tooling-and-debugging в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл effect-patterns-tooling-and-debugging?
Effect-TS patterns for Tooling And Debugging. Use when working with tooling and debugging in Effect-TS applications.
Как установить скилл effect-patterns-tooling-and-debugging?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл effect-patterns-tooling-and-debugging запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic