Skip to main content

effect-development

Effect development guidance. Use when implementing or reviewing code that composes Effect APIs or patterns, or that adds or changes API signatures.

来源信息

仓库
Effect-TS/effect
最近来源活动
2026年10月22日 22:29
检测到的 SKILL.md 语言
英语
星标
17,486
Forks
894

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
effect-development
description
Effect development guidance. Use when implementing or reviewing code that composes Effect APIs or patterns, or that adds or changes API signatures.
Use the repository's AI documentation as targeted reference, not ambient context: 1. Identify the Effect APIs and concepts involved in the change. 2. Search `LLMS.md` and `ai-docs/src` for those names and concepts, then read the matching sections and examples. 3. Apply the relevant guidance and inspect nearby source and tests for any repository-internal conventions not covered by the documentation. The task is ready for implementation when every material Effect API or pattern has matching local guidance, or the search has established that none exists. ## API conventions Write option types inline in the signature by default. Mark fields `readonly` and add `| undefined` to optional fields: ```ts export const make = (options: { readonly capacity: number readonly strategy?: "dropping" | "sliding" | undefined }): Effect.Effect<Queue> => ... ``` Declare a named options type only in these cases: - A substantial set of options is shared across several APIs, so a named type keeps them in sync. - The options type needs complex conditional logic, such as conditional or mapped types driven by type parameters. A long option list for a single API is not on its own a reason to extract a named type.
在 GitHub 查看