13 skills built for LLM and AI apps
Claude Code skills for LLM and AI apps
Skills for building with language models: API integration with streaming and retries, evaluation sets, retrieval pipelines, prompt-injection defense, agents and cost control. Claude Code skills about agents and subagents appear here as well.
Start with these
- LLM App BuilderShip LLM features with timeouts, streams, and budgetsClaude builds LLM features the way a production team would: one client module with timeouts and typed retries, streaming for anything a user waits on, a model picked by a small eval instead of reputation, and per-request cost logged from the first deploy. Every stop reason, including truncation and refusal, gets explicit handling and a test.
- LLM EvalsKnow whether the change helped, with error barsClaude builds evals that can actually decide things. Cases come from real traffic and past failures, each criterion gets the cheapest reliable grader, and any LLM judge is checked against human labels before its scores count. Version comparisons are paired on the same cases with a McNemar test and bootstrap interval, and a bundled script fails CI when must-pass cases regress.
- LLM ClassificationLabels that match careful humans, per classClaude builds classifiers starting from the taxonomy, not the prompt. It writes label definitions with boundary examples and an escape label, measures human agreement with Cohen's kappa, constrains outputs to an enum, and reports per-class precision and recall on a frozen test set. Uncertain items escalate through a model cascade or to humans, and a bundled script computes kappa, confusion matrices, and macro-F1.
10 more LLM and AI appsskills
Each card opens the full playbook, example prompts and install commands.
LLM Gateway Routing
Fallbacks that are tested, retries that cannot snowball
Claude treats multi-provider routing as a contract per route rather than a list of model names. It builds an error-to-action table, splits time-to-first-token from total deadlines, caps retries with a budget, checks that each fallback passes the route's eval, and picks between an in-app router, a LiteLLM proxy, or a managed gateway, including when you need none of them.
RAG Pipelines
Fix retrieval first, then make answers cite it
Claude treats RAG as two systems with two scorecards. It builds a labeled question set, chunks with document structure and context prefixes, retrieves with hybrid search fused by reciprocal rank and a reranker, and generates answers that cite supplied sources or abstain. A bundled script reports recall@k, MRR and nDCG so retrieval failures are fixed before anyone touches the prompt.
Prompt Caching and Costs
Cut the LLM bill with caching before downgrades
Claude profiles where tokens actually go before changing anything, then applies the no-quality-loss levers in order: stable-prefix prompt caching with correct breakpoints, the batch API for offline work, and trimmed history and tool results. A bundled cost model shows break-even hit rates and tier what-ifs, and cheaper models or lower effort ship only after passing the eval.
Agent Eval Harness
Prove a skill or prompt change helped, run after run
Instead of eyeballing one run, Claude writes a small labeled suite of positive, negative and edge cases from real usage, grades each with deterministic checks on outcome and process before reaching for a judge model, runs every case several times through claude -p or claude plugin eval, and compares per case against a committed baseline. A stdlib runner script handles fixtures, tool-call grading and regression exit codes.
Agent Memory
Remember what matters, forget on request
Claude designs agent memory from recall tests outward: which layers you actually need, a schema with provenance and expiry, a write policy that refuses secrets and untrusted content, conflict handling when facts change, and deletion that purges vectors and summaries too. It red-teams memory poisoning and cross-user leakage before anything ships.
Prompt Injection Defense
Contain what an injected instruction can do
Claude defends LLM apps on the assumption that some injection will get through. It maps every untrusted input, breaks the private data, untrusted content and egress trifecta per agent, enforces permissions and approvals in code, closes markdown-image and URL exfiltration channels, and builds an adversarial suite from a catalog of real attack categories that runs in CI.
Skill Description Tuning
Make skills fire on the right prompts, and only those
Treats a skill description as a routing classifier and tests it like one. Claude builds a labeled set of realistic prompts and near-miss negatives, runs each in a fresh headless session to see whether the skill actually fires, diagnoses the miss pattern, and rewrites one variable at a time until recall is high, false positives are zero, and sibling skills still win their own requests.
Content Moderation
Policy first, thresholds from data, humans for the gray zone
Claude starts moderation work from a written policy with near-miss examples, not from a toxicity score. It builds a labeled evaluation set, layers normalization, blocklists, a moderation API, an LLM judge and a human queue, sets thresholds per category from precision and recall targets, and adds appeals, statements of reason and an audit log that records the policy version behind each decision.
Realtime Voice Agents
Answer fast, stop when interrupted, never talk over callers
Claude builds voice agents around a measured voice-to-voice budget rather than vendor demo numbers. It picks a cascaded or speech-to-speech design, tunes VAD or semantic turn detection, cancels and truncates speech on barge-in so history matches what the caller heard, covers slow tools with spoken filler, and replays a recorded-audio suite in real time to catch regressions.
Structured Outputs
Schema-valid JSON, then checks on what it says
Claude replaces prompt-and-regex JSON with native constrained decoding: a JSON schema output format or strict tool generated from Pydantic or Zod models. It designs schemas with nullable fields and escape-value enums so the model never invents data, checks stop reasons before parsing, validates meaning as well as shape, and caps repair retries before routing to a human.
Install
Every LLM and AI apps skill in one command
Installs these 13 skills into ~/.claude/skills/. Add --project after -- to install into the current repository instead.
The installer is a 101-line POSIX shell script. It downloads each skill you name from claudeskills.page and unpacks it into your skills folder, nothing else: no sudo, no telemetry. Every skill page shows the full SKILL.md, so you can read what you install first. Read install.sh
LLM and AI apps skills FAQ
Answers drawn from the skills themselves, including what they don't cover.
Are the skills tied to one model provider's SDK?
LLM App Builder defaults to the Anthropic Python and TypeScript SDKs but keeps provider specifics inside one client module so you can swap vendors. Structured Outputs uses Pydantic and Zod schemas with native constrained decoding where available and a validate-and-repair fallback elsewhere. LLM Gateway Routing covers fallbacks across providers in-app, through a self-hosted LiteLLM proxy, or a managed gateway.
Can I run and fine-tune open-weight models instead of calling a hosted API?
Yes. Local LLMs covers Ollama, llama.cpp, vLLM and MLX, including memory sizing for weights and KV cache, GGUF quantization choices, GPU offload and exposing an OpenAI-compatible endpoint. Fine-Tuning runs LoRA and QLoRA with Hugging Face TRL and PEFT on open-weight models. It does not walk through hosted fine-tuning services, which it says vary by provider and change often.
Which vector databases and retrieval methods does the RAG work assume?
Vector Search covers pgvector, Qdrant and Pinecone, with HNSW and IVFFlat tuning, metadata filtering and recall measured against exact search. It notes Anthropic has no embeddings endpoint, so you pair Claude with a hosted embedding model such as Voyage, OpenAI, Cohere or Google. RAG Pipelines starts from hybrid BM25 plus vector retrieval, then reranking, cited answers, and separate retrieval and answer evaluation.
How do I install all 13 LLM and AI apps skills at once?
Pass every name to the installer in one command: curl -fsSL https://claudeskills.page/install.sh | sh -s -- llm-app-builder llm-evals llm-classification llm-gateway-routing rag-pipelines prompt-caching-costs agent-eval-harness agent-memory prompt-injection-defense skill-description-tuning content-moderation realtime-voice-agents structured-outputs. Add --project after -- to install them into the current repository's .claude/skills/ folder so your team gets them too.