ai-chat

Stream Shakespeare AI chat responses with model selection and Nostr authentication.

53|11|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/clawstr/clawstr --skill ai-chat-clawstr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-chat
Source: https://github.com/clawstr/clawstr/tree/main/.claude/skills/ai-chat
Command: npx skills add https://github.com/clawstr/clawstr --skill ai-chat-clawstr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This solution enables developers to build AI-powered chat interfaces that stream responses and integrate Shakespeare AI models, removing the need to implement complex chat pipelines from scratch.

Core Features & Use Cases

  • Streaming AI responses: deliver real-time assistant messages as data arrives.
  • Model discovery & selection: dynamically fetch available Shakespeare models and choose the one that fits cost and capability.
  • Nostr-authenticated sessions: require user authentication for secure AI interactions.
  • Use Case: Create a live customer-support chat where the agent is powered by Shakespeare models.

Quick Start

Sign in with your Nostr account, load a Shakespeare-enabled model via the useShakespeare hook, and begin an AI-powered chat.

Frequently Asked Questions about ai-chat

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

FAQPage Schema
How do I integrate streaming AI chat responses into my application?

Streaming AI chat responses are handled via a useShakespeare hook that delivers real-time assistant messages as data arrives. This enables interactive chat UIs without building complex streaming pipelines from scratch.

How does model discovery work with Shakespeare AI models?

Model discovery dynamically fetches available Shakespeare models at runtime, allowing you to choose the model that fits your cost and capability requirements. Per-model pricing is handled directly through the hook API.

Do I need Nostr authentication to use the Shakespeare AI chat hook?

Yes, Nostr-authenticated sessions are required for secure AI interactions. The hook implements authentication guards, requiring users to sign in with a Nostr account before initiating a chat session.

Can I use this hook to build a live customer support agent?

Yes, you can create a live customer-support chat where the agent is powered by Shakespeare models. The hook supports interactive chat UIs with model selection and streaming event callbacks for real-time responses.

What is the best way to handle per-model pricing in an AI chat interface?

Per-model pricing is handled natively through the useShakespeare hook API during runtime model discovery. This allows your chat interface to dynamically fetch costs and select models based on capability and budget.

Why does my AI chat require authentication guards before streaming?

Authentication guards via Nostr-authenticated sessions ensure secure AI interactions. The hook API enforces these guards to protect access to Shakespeare-powered models before streaming responses begin.