Effect AI
This skill should be used when the user asks about "Effect AI", "@effect/ai", "LLM integration", "AI tool use", "AI execution planning", "building AI agents", "AI providers", "structured AI output", "AI completions", "Effect OpenAI", "Effect Anthropic", or needs to understand how Effect integrates with AI/LLM services.
npx skills add majiayu000/claude-skill-registry --skill effect-ai --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Effect AI ## Overview Effect AI (`@effect/ai`) provides type-safe integration with AI/LLM services: - **Provider abstraction** - Unified API for OpenAI, Anthropic, etc. - **Tool use** - Type-safe function calling with Schema - **Execution planning** - Multi-step AI workflows - **Structured output** - Schema-validated responses ## Installation ```bash npm install @effect/ai @effect/ai-openai # or npm install @effect/ai @effect/ai-anthropic ``` ## Basic Usage ### Creating a Provider ```typescript import { AiChat } from "@effect/ai" import { OpenAiChat } from "@effect/ai-openai" import { Effect, Layer } from "effect" const OpenAiLive = OpenAiChat.layer({ apiKey: Config.redacted("OPENAI_API_KEY"), model: "gpt-4" }) import { AnthropicChat } from "@effect/ai-anthropic" const AnthropicLive = AnthropicChat.layer({ apiKey: Config.redacted("ANTHROPIC_API_KEY"), model: "claude-3-opus-20240229" }) ``` ### Simple Completion ```typescript const program = Effect.gen(function* () { const ai = yield* AiChat.AiChat const response = yield* ai.generateText({ prompt: "Explain functional programming in one sentence." }) return response.text }) const result = yield* program.pipe( Effect.provide(OpenAiL
- Overview
- Installation
- Basic Usage
- Creating a Provider
- Simple Completion
- Chat with Messages
- Tool Use
- Defining Tools with Schema
- Using Tools in Chat
- Multiple Tools
- Structured Output
- Execution Planning
- Streaming Responses
- Provider Configuration
npm install @effect/ai @effect/ai-openai or npm install @effect/ai @effect/ai-anthropic
What does the Effect AI skill do?
This skill should be used when the user asks about "Effect AI", "@effect/ai", "LLM integration", "AI tool use", "AI execution planning", "building AI agents", "AI providers", "structured AI output", "AI completions", "Effect OpenAI", "Effect Anthropic", or needs to understand how Effect integrates with AI/LLM services.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill effect-ai --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
