什么是 effect-best-practices?
对服务、错误、层和原子强制执行 Effect-TS 模式。在使用 Effect.Service、Schema.TaggedError、Layer 组合或effect-atom React 组件编写代码时使用。 来源:forcedotcom/salesforcedx-vscode。
对服务、错误、层和原子强制执行 Effect-TS 模式。在使用 Effect.Service、Schema.TaggedError、Layer 组合或effect-atom React 组件编写代码时使用。
通过命令行快速安装 effect-best-practices AI 技能到你的开发环境
来源:forcedotcom/salesforcedx-vscode。
This skill enforces opinionated, consistent patterns for Effect-TS codebases. These patterns optimize for type safety, testability, observability, and maintainability.
| Services | Effect.Service with accessors: true | Context.Tag for business logic | | Dependencies | dependencies: [Dep.Default] in service | Manual Layer.provide at usage sites | | Errors | Schema.TaggedError with message field | Plain classes or generic Error |
| Error Specificity | UserNotFoundError, SessionExpiredError | Generic NotFoundError, BadRequestError | | Error Handling | catchTag/catchTags | catchAll or mapError | | IDs | Schema.UUID.pipe(Schema.brand("@App/EntityId")) | Plain string for entity IDs | | Functions | Effect.fn("Service.method") | Anonymous generators |
对服务、错误、层和原子强制执行 Effect-TS 模式。在使用 Effect.Service、Schema.TaggedError、Layer 组合或effect-atom React 组件编写代码时使用。 来源:forcedotcom/salesforcedx-vscode。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/forcedotcom/salesforcedx-vscode --skill effect-best-practices对服务、错误、层和原子强制执行 Effect-TS 模式。在使用 Effect.Service、Schema.TaggedError、Layer 组合或effect-atom React 组件编写代码时使用。 来源:forcedotcom/salesforcedx-vscode。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/forcedotcom/salesforcedx-vscode --skill effect-best-practices 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/forcedotcom/salesforcedx-vscode