# LLM App Production Pack

> Eight agent skills and two scripts for shipping Claude and OpenAI apps: current models and prices, streaming, tool loops, caching, cost, evals, tracing, safety.

LLM App Production Pack is a paid AI agent skill on Agensi by Abdalkader Alhamoud, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $29 (one-time purchase)
- Creator: [Abdalkader Alhamoud](https://www.agensi.io/creators/abdalkaderdev)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-10-13
- Security: scan passed (2026-10-13); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/llm-app-production-pack
- Tags: llm-ops, api, ai-agents, llm, claude, anthropic, openai, gpt

## About this skill

Ask an agent to build an LLM feature today and you get last year's API: `temperature` and `budget_tokens` on Claude models that now reject them with a 400, forced `tool_choice` that current Claude models no longer accept, Chat Completions code where OpenAI's Responses API is the default, prices and model ids that no longer exist, and a cost estimate made with the wrong tokenizer. Then production finds the rest: a timestamp in the system prompt that silently disables prompt caching, an agent loop with no cap, tool errors that crash the loop, parallel tool results split across messages, Anthropic and OpenAI usage fields summed the same way when one includes cached tokens and the other does not, 429s from a spend cap retried forever, and prompts with customer data sitting in the trace backend.

This pack gives the agent current rules, checked on 2026-10-13 against Anthropic's and OpenAI's docs, the SDK changelogs and the packages themselves:

- **llm-app-production**: model and SDK version tables, routing, the rules agents get wrong, a pre-flight checklist.
- **llm-calls**: request shapes for both providers, streaming with abort, stop reasons, structured outputs with zod and pydantic, SDK retry behaviour, rate-limit headers, the 429s you must not retry.
- **llm-tool-use**: tool schemas and strict mode, parallel calls in one message, errors as results, approval gates, turn and spend caps, OpenAI reasoning items, tested loops for both providers.
- **llm-cost-control**: how each provider bills cache reads and writes, Claude and OpenAI prompt caching (including OpenAI's new explicit breakpoints), batch APIs, token counting, budgets, routing.
- **llm-evals**: golden sets, deterministic graders first, binary judge rubrics and calibration, CI gates on baselines.
- **llm-observability**: OpenTelemetry GenAI attributes mapped field by field for both providers, tool spans, safe prompt logging.
- **llm-safety**: prompt injection described as patterns with layered defences, least-privilege tools, exfiltration channels, PII minimisation.
- **llm-rag**: chunking, embeddings, hybrid search and reranking, citations, recall@k and faithfulness evals.

Two zero-dependency Node scripts: `estimate-cost.mjs` prices API logs, batch results or a prompt file across Claude and OpenAI models, including cache writes, 1-hour TTLs and long-context tiers; `run-evals.mjs` grades a JSONL golden set offline or live (only when a key is already set), with LLM-as-judge and CI gates.

TypeScript snippets typechecked with `tsc --strict` against `@anthropic-ai/sdk` 0.133 and `openai` 7.32; Python checked with pyright against `anthropic` 1.13 and `openai` 3.29; both agent loops run against a mock server.

## Requires

- Python

## Known limitations

Scripts need Node.js 20+. No live API calls were made while building the pack; the agent loops were tested against a local mock server. Prices were copied from the official pricing pages on 2026-10-13 and will drift; unknown models are reported as unpriced, never guessed. OpenTelemetry GenAI conventions are still in Development status.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the LLM App Production Pack skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Why not just ask my agent?

Model ids, prices, cache minimums and SDK majors changed this year, and agents quote old ones. The pack has current tables for the Claude and OpenAI APIs (checked 2026-10-13), the patterns that cut cost such as prompt caching and batch, and two scripts that price your real usage and gate prompt changes on evals.

### Which SDKs and versions?

@anthropic-ai/sdk 0.133 and anthropic 1.13 for Python; openai 7.32 for Node and 3.29 for Python. Version boundaries such as Node 22 for openai 7 are noted.

### What is in the zip?

One entry skill with seven guides (API calls, tool use, cost control, evals, observability, safety, RAG) and two zero-dependency Node scripts: estimate-cost.mjs with prices.json, and run-evals.mjs.

### Does run-evals spend money?

Only if you ask for live generation or a judge and an API key is already set. Without a key it grades saved outputs offline and reports live cases as skipped.

### Is it only for Claude?

No. Every guide covers both the Claude API and the OpenAI Responses and Chat Completions APIs.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
