Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Llm App Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-llm-app-patterns)
---
name: llm-app-patterns
description: "Production LLM features: prompt structure, tool use, structured outputs, streaming, retries, fallbacks and logging."
tags: [ai-agents]
---
# Llm App Patterns
## When to use
- Building on Claude/OpenAI/Gemini APIs
## Procedure
1. Separate system instructions, context and user input
2. Use tools or JSON schema for structured output and validate it
3. Stream for UX
4. Retry on 429/5xx with backoff
5. Log tokens, latency and cost with redaction
6. Write evals early
## Checklist
- [ ] Timeouts set
- [ ] Outputs validated
## Anti-patterns
- Parsing free text with regex
- No evals