fqih/.mycc-setup/llm-engineering
Claude Code and agent skill by fqih/.mycc-setup
- community
Checking that the SKILL.md file is still in the repository.
Use when building LLM-powered applications — structured outputs via Pydantic, prompt versioning, token/cost tracking, evaluation harness integration, retry/caching patterns. Trigger on "structured output", "token count", "prompt version", "llm eval", "pydantic ai", "anthropic sdk".
Install
npx vskill@latest install fqih/.mycc-setup/llm-engineeringSKILL.md
The same SKILL.md was published earlier as fqih/.mycc-setup/llm-engineering.
llm-engineering
Pattern untuk aplikasi LLM yang production-ready: type-safe, terukur, reproducible.
Structured output via Pydantic
WAJIB untuk output LLM yang masuk ke logika downstream. JSON mode + manual parsing = fragile.
Anthropic SDK
OpenAI SDK
Token tracking & cost
Per-call tracking
Cost calculation (rough, Anthropic Claude Sonnet 5)
Caching untuk hemat biaya
Anthropic prompt caching (5-minute TTL default):
Prompt versioning
Jangan hardcode prompt string di kode. Pakai file terpisah + versioning.
Retry & resilience
Exponential backoff
Fallback model
Evaluation (integrasi eval-harness skill)
Sebelum deploy perubahan prompt/model:
- Tulis
eval_set.jsonldengan ~20-50 test cases (input + expected output). - Jalankan eval pakai
eval-harnessskill. - Track pass@k di mlflow sebagai regression metric.
- Bandingkan dua versi prompt sebelum promote.
Streaming untuk UX
Common pitfalls
| Pitfall | Solusi | |
|---|---|---|
| JSON output tidak konsisten | Pakai tools + input_schema (Anthropic) atau response_format=Pydantic (OpenAI) | |
| Biaya membengkak tanpa sadar | Log tokens_input/output per call, alert kalau spike | |
| Prompt drift antar versi | Versioning via file + log ke mlflow | |
| Rate limit mendadak | Exponential backoff + queue (Celery/RQ) | |
| Output hallucination di production | LLM-as-judge eval + human spot-check berkala | |
| Caching tidak hit | Cek cache_control di system prompt, bukan di message user |
Invokation
Auto-trigger saat:
- Edit file yang import
anthropic,openai,langchain,pydantic_ai - User sebut "structured output", "function calling", "tool use"
- Code pattern detection:
client.messages.create,chat.completions.create
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/llm-engineering/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/fqih/.mycc-setup/llm-engineering)