karvifi/foundation/ai-engineering

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Production AI design — RAG, agents, evals, cost management

Install

npx vskill@latest install karvifi/foundation/ai-engineering

SKILL.md

AI Engineering

Core principle: AI features must be treated as probabilistic systems, not deterministic code. Every output must be validated.

Core Patterns

Pattern 1: The LLM Call Contract
python
response = await client.messages.create(
model="claude-sonnet-4-5", # pinned model version
max_tokens=2048, # ALWAYS set — prevents runaway cost
system=system_prompt,
messages=[{"role": "user", "content": sanitized_input}],
timeout=30.0, # ALWAYS set
)
# Validate output before using
result = OutputSchema.model_validate_json(response.content[0].text)
Pattern 2: RAG Pipeline

Documents → Chunk → Embed → Store in vector DB Query → Embed → Similarity search → Rerank → LLM with context → Validate output

Pattern 3: Agent Design
Agent = LLM + Tools + Memory + Goal + Stop Condition
Required:
- max_tool_calls: 20 (budget cap)
- max_iterations: 10 (loop cap)
- Full trace logging (Langfuse)
Pattern 4: Cost Management
python
# Use cheapest model that works
classify → claude-haiku-3 # cheap
write_code → claude-sonnet-4-5 # mid-tier
architect → claude-opus (rarely) # expensive

Production AI Checklist

☐ max_tokens set on every LLM call
☐ model version pinned
☐ rate limiting on AI endpoints
☐ output validated with Pydantic/Zod
☐ user input sandboxed
☐ cost tracking enabled (Langfuse)
☐ eval test suite exists (DeepEval)
☐ prompts versioned in prompts/ directory

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/karvifi/foundation/ai-engineering/badge)](https://verified-skill.com/skills/karvifi/foundation/ai-engineering)

Something wrong with this skill or its page? Tell us.