effect-ai-prompt

Constructs typed prompts and manages histories with the @effect/ai/Prompt API for JavaScript/TypeScript projects.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/front-depiction/claude-setup --skill effect-ai-prompt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effect-ai-prompt
Source: https://github.com/front-depiction/claude-setup/tree/main/skills/effect-ai-prompt
Command: npx skills add https://github.com/front-depiction/claude-setup --skill effect-ai-prompt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps software teams design and compose safe, type-checked prompts for Effect AI using the @effect/ai/Prompt API. It streamlines building structured messages (system/user/assistant/tool calls), managing prompt history, and integrating tool results into conversations.

Core Features & Use Cases

  • Create and manipulate typed prompt messages using the Prompt API (Message, Part, Tool Call, Tool Result).
  • Merge and transform prompts, set or prepend system messages, and convert AI responses into prompt histories for multi-turn conversations.
  • Use in TS projects to build complex chat experiences, integrate tooling, and serialize/deserialize prompts for persistence.

Quick Start

Start by importing the Prompt API, construct a simple system/user prompt, then merge with an assistant response to form a complete prompt history.

Frequently Asked Questions about effect-ai-prompt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I construct type-safe prompts for multi-turn conversations in Effect AI?

Construct type-safe Effect AI prompts by using the @effect/ai/Prompt API to build typed messages, merge them with assistant responses, and convert AI responses into prompt histories for multi-turn conversations.

What is the best way to integrate tool calls and tool results into a TypeScript prompt history?

Integrate tool calls and results into TypeScript prompt history by using the Prompt API to structure typed tool messages, enabling seamless workflows for tool-message integration and serialization within your conversations.

Can I serialize and deserialize Effect AI prompts for persistence in TypeScript projects?

Yes, you can serialize and deserialize Effect AI prompts for persistence in TypeScript projects using the Prompt API's composition operators to transform and manage structured messages across your application.

Does the Effect AI Prompt API support setting and prepending system messages?

Yes, the Effect AI Prompt API supports setting and prepending system messages, allowing you to manipulate typed prompt messages and construct structured system/user/assistant interactions safely.

How do I merge and transform prompts when building complex chat experiences with Effect AI?

Merge and transform prompts in Effect AI by applying composition operators to typed messages and parts, allowing you to build complex chat experiences while maintaining strict type safety across the conversation flow.