ai-integration-generator
Installation
SKILL.md
AI Integration Generator
Before generating any output, read config/defaults.md and adapt all patterns, imports, and code examples to the user's configured stack.
Generation Process
- Determine AI feature type (chat, completion, structured output, tool calling, RAG)
- Generate API route with streaming
- Generate UI component with appropriate hook
- Add error handling and loading states
- Verify streaming works end-to-end
Streaming Chat Route
Create app/api/chat/route.ts:
import { streamText } from 'ai';
import { openai } from '@ai-sdk/openai';