llm-integration

LLM integration patterns including API usage, streaming, function calling, RAG pipelines, and cost optimization

Content Preview
---
name: llm-integration
description: LLM integration patterns including API usage, streaming, function calling, RAG pipelines, and cost optimization
---

# LLM Integration

## API Client Pattern

```typescript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic();

async function generateResponse(
  systemPrompt: string,
  userMessage: string,
  options?: { maxTokens?: number; temperature?: number }
): Promise<string> {
  const response = await client.messages.create({
   
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/llm-integration.md \
  https://raw.githubusercontent.com/rohitg00/awesome-claude-code-toolkit/main/skills/llm-integration/SKILL.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/rohitg00/awesome-claude-code-toolkit

Then reference at skills/llm-integration/SKILL.md

Related Skills