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.

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.

llm-gateway-routing 263 lines · 2 files
★ Maintainer's pick

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.

rag-pipelines 191 lines · 2 files

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.

prompt-caching-costs 189 lines · 2 files
★ Maintainer's pick

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-eval-harness 164 lines · 2 files

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.

agent-memory 190 lines

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.

prompt-injection-defense 169 lines · 2 files

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.

skill-description-tuning 175 lines · 2 files

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.

content-moderation 224 lines · 2 files

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.

realtime-voice-agents 221 lines · 2 files

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.

structured-outputs 220 lines

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.

esc