effect

GitHub

指导基于 Effect 库进行前端开发,涵盖 React 状态管理、HTTP API 实现、CLI 脚本编写及架构审查。强调遵循最小化原则,复用现有原语,并集成可观测性与错误处理机制。

.agents/skills/effect/SKILL.md yielded-dev/auth

Trigger Scenarios

需要设置 Effect 环境或依赖 实现基于 Effect Atom 的 React 共享状态 开发 HTTP API 接口或中间件 构建 CLI 脚本或 CI 自动化流程 审查系统架构或重构服务边界 处理错误传播、恢复或清理逻辑

Install

npx skills add yielded-dev/auth --skill effect -g -y
More Options

Non-standard path

npx skills add https://github.com/yielded-dev/auth/tree/main/.agents/skills/effect -g -y

Use without installing

npx skills use yielded-dev/auth@effect

指定 Agent (Claude Code)

npx skills add yielded-dev/auth --skill effect -a claude-code -g -y

安装 repo 全部 skill

npx skills add yielded-dev/auth --all -g -y

预览 repo 内 skill

npx skills add yielded-dev/auth --list

SKILL.md

Frontmatter
{
    "name": "effect",
    "metadata": {
        "source": "https:\/\/github.com\/danieljvdm\/dev-kit\/tree\/2bda762e1573fbfdaf5c5aa6c06abe952d812a0b\/skills\/effect-development",
        "source_skill": "effect-development",
        "source_commit": "2bda762e1573fbfdaf5c5aa6c06abe952d812a0b"
    },
    "description": "Set up Effect, implement Atom React state, HTTP APIs or CLIs, and review architecture and error handling."
}

Effect development

Read the repository's node_modules/effect/AGENTS.md completely before writing or evaluating Effect code, then follow its relevant links. Installed declarations and repository policy own version-sensitive APIs and verification commands.

Read only the guide for the requested boundary:

  • React queries, mutations, shared state, workflows, or SSR: Effect Atom.
  • HTTP contracts, handlers, middleware, or server runtimes: HTTP APIs.
  • Scripts, CI automation, or command-line applications: CLIs.
  • Error propagation, recovery, reporting, or cleanup failures: error handling.
  • Trace/log instrumentation and OTLP export: observability, then the shared Effect OTLP snippets.
  • A requested architecture review or service-boundary refactor: architecture.
  • Adding Effect dependencies or its agent guidance: setup.

For Effect React applications, Effect Atom owns shared state and server data; React renders and dispatches. View-local state can stay in React. Keep business logic in Effect workflows and declare cross-query invalidation as mutation reactivity keys. Read the Atom guide for runtime and registry ownership.

Preserve the requested scope and build the minimum current behavior. Use Effect's existing primitives; a service boundary does not justify extra policy layers, recovery machinery, or configuration for hypothetical uses. Treat the references as guidance for a needed boundary, not a checklist of features to implement. A component edit does not require a server rewrite or architecture audit. Follow repository policy for committed tests; changes to an atom, endpoint, or script do not by themselves justify a new test.

For reusable contracts, use library-first. For critical-path changes or performance claims, use measure-performance. Reuse instructions already loaded and read only the relevant references.

Version History

  • 72bfeeb Current 2026-10-18 15:34

Same Skill Collection

.agents/skills/alchemy/SKILL.md
.agents/skills/cloudflare/SKILL.md
.agents/skills/dev-kit/SKILL.md
.agents/skills/feedback-loops/SKILL.md
.agents/skills/library-first/SKILL.md
.agents/skills/measure-performance/SKILL.md
.agents/skills/o11y/SKILL.md
.agents/skills/project-setup/SKILL.md
.agents/skills/pull-requests/SKILL.md
.agents/skills/show-me/SKILL.md
.agents/skills/simplify/SKILL.md
.agents/skills/testing/SKILL.md

Metadata

Files
0
Version
bc4df04
Hash
9b820c66
Indexed
2026-10-18 15:34

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-07 09:57
浙ICP备14020137号-1