clade-architecture-variants

Featured

Build different types of Claude-powered applications — chatbots, RAG systems, Use when working with architecture-variants patterns. agents, content pipelines, and code generation tools. Trigger with "claude architecture", "anthropic rag", "build with claude", "claude agent pattern", "anthropic app design".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Claude Architecture Variants ## Overview Five architecture patterns for Claude-powered applications: Chatbot (stateless API wrapper), RAG (retrieval-augmented generation with vector search), Agent (tool use loop), Content Pipeline (batch processing), and Evaluation (using Claude as a judge). Each includes complete code and a comparison table. ## 1. Chatbot (Stateless API Wrapper) Simplest pattern — proxy Claude with a system prompt. ```typescript // api/chat.ts export async function POST(req: Request) { const { messages } = await req.json(); const response = await client.messages.create({ model: 'claude-sonnet-4-20250514', max_tokens: 2048, system: 'You are a helpful assistant for our SaaS product.', messages, stream: true, }); return new Response(response.toReadableStream()); } ``` **Best for:** Customer support, Q&A, simple conversational interfaces. ## 2. RAG (Retrieval-Augmented Generation) Fetch relevant context, inject into prompt, generate grounded answer. ```typescript async function ragQuery(question: string) { // 1. Embed the question (use Voyage, OpenAI, or Cohere — not Anthropic) const embedding = await embeddingClient.embed(question); // 2. Search vector DB for relevant chunks const chunks = await vectorDb.query(embedding, { topK: 5 }); // 3. Send to Claude with context const message = await client.messages.create({ model: 'claude-sonnet-4-20250514', max_tokens: 2048, system: `Answer based on the provide...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

anth-reference-architecture

Implement Claude API reference architectures for common use cases. Use when designing a Claude-powered application, choosing between direct API vs queue-based, or planning a multi-model architecture. Trigger with phrases like "anthropic architecture", "claude system design", "anthropic reference architecture", "design claude integration".

2,266 Updated today
jeremylongshore
AI & Automation Featured

anth-architecture-variants

Choose and implement Claude API architecture patterns for different scales: serverless, microservice, event-driven, and edge deployment. Trigger with phrases like "anthropic architecture", "claude serverless", "claude microservice design", "edge claude deployment".

2,266 Updated today
jeremylongshore
AI & Automation Featured

clade-model-inference

Stream Claude responses, use system prompts, handle multi-turn conversations, Use when working with model-inference patterns. and process structured output with the Messages API. Trigger with "anthropic streaming", "claude messages api", "claude inference", "stream claude response".

2,266 Updated today
jeremylongshore
AI & Automation Listed

claude-api

Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs.

0 Updated today
CodeWithBehnam
AI & Automation Listed

claude-api

Build apps with the Claude API or Anthropic SDK. TRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`/`claude_agent_sdk`, or user asks to use Claude API, Anthropic SDKs, or Agent SDK. DO NOT TRIGGER when: code imports `openai`/other AI SDK, general programming, or ML/data-science tasks.

1 Updated 1 weeks ago
DROOdotFOO