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.mdSkill 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-toolkitThen reference at skills/llm-integration/SKILL.md
Related Skills
karpathy-guidelines
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.
karpathy-guidelineskarpathyguidelinesllm
by forrestchang (Karpathy-derived) · karpathy-skills-derived
cost-aware-llm-pipeline
LLM API 使用成本优化模式 —— 基于任务复杂度的模型路由、预算跟踪、重试逻辑和提示缓存。
cost-aware-llm-pipelinecostawarellm
by affaan-m · everything-claude-code
foundation-models-on-device
苹果FoundationModels框架用于设备上的LLM——文本生成、使用@Generable进行引导生成、工具调用,以及在iOS 26+中的快照流。
foundation-models-on-devicefoundationmodelsdevice
by affaan-m · everything-claude-code
data-scraper-agent
Build a fully automated AI-powered data collection agent for any public source — job boards, prices, news, GitHub, sports, anything. Scrapes on a schedule, enriches data with a free LLM (Gemini Flash), stores results in Notion/Sheets/Supabase, and learns from user feedback. Runs 100% free on GitHub Actions. Use when the user wants to monitor, collect, or track any public data automatically.
data-scraper-agentdatascraperagent
by affaan-m · everything-claude-code