Ai llm

From diegosouzapw/awesome-omni-skill · View interactive version

Ai llm is an AI agent skill from the GitHub repository diegosouzapw/awesome-omni-skill. Production LLM engineering skill. Covers strategy selection (prompting vs RAG vs fine-tuning), dataset design, PEFT/LoRA, evaluation workflows, deployment handoff to inference serving, and lifecycle operations with cost/safety controls.

How to use this skill

Skill file

LLM Development & Engineering — Complete Reference

Build, evaluate, and deploy LLM systems with modern production standards.

This skill covers the full LLM lifecycle:

Modern Best Practices (2026):

For detailed patterns: See Resources and Templates sections below.


Quick Reference

| Task | Tool/Framework | Command/Pattern | When to Use |

|------|----------------|-----------------|-------------|

| Choose architecture | Prompt vs RAG vs fine-tune | Start simple; add retrieval/adaptation only if needed | New products and migrations |

| Model selection | Scoring matrix | Quality/latency/cost/privacy/license weighting | Provider changes and procurement |

| Cost optimization | Tiered models + caching | Cascade routing, prompt caching, budget guardrails | Cost-sensitive production |

| Fine-tuning ROI | ROI calculator | Break-even analysis, TCO comparison | Investment decisions |

| Prompt contracts | Structured output + constraints | JSON schema, max tokens, refusal rules | Reliability and integration |

| RAG integration | Hybrid retrieval + grounding | Retrieve → rerank → pack → cite → verify | Fresh/large corpora, traceability |

| Fine-tuning | PEFT/LoRA (when justified) | Small targeted datasets + regression suite | Stable domains, repeated tasks |

| Evaluation | Offline + online | Golden sets + A/B + canary + monitoring | Prevent regressions and drift |


Decision Tree: LLM System Architecture

Building LLM application: [Architecture Selection]
    ├─ Need current knowledge?
    │   ├─ Simple Q&A? → Basic RAG (page-level chunking + hybrid retrieval)
    │   └─ Complex retrieval? → Advanced RAG (reranking + contextual retrieval)
    │
    ├─ Need tool use / actions?
    │   ├─ Single task? → Simple agent (ReAct pattern)
    │   └─ Multi-step workflow? → Multi-agent (LangGraph, CrewAI)
    │
    ├─ Static behavior sufficient?
    │   ├─ Quick MVP? → Prompt engineering (CI/CD integrated)
    │   └─ Production quality? → Fine-tuning (PEFT/LoRA)
    │
    └─ Best results?
        └─ Hybrid (RAG + Fine-tuning + Agents) → Comprehensive solution

See Decision Matrices for detailed selection criteria.


Cost-Quality Decision Framework

LLM spend is driven by usage-based inference (tokens/requests) plus supporting infra and engineering. Model selection is a cost-quality-latency-risk tradeoff.

Model Tier Strategy

| Tier | Typical profile | Use For |

|------|--------|------|---------|

| Value | Small/fast models | High-volume, simple tasks |

| Balanced | General-purpose models | Most production workloads |

| Premium | Frontier/large models | Hardest tasks, low volume |

Cost Optimization Levers

  1. Model tiering: Route simple requests to cheaper models (often large savings at scale)
  2. Prompt caching: Reuse stable prefixes/context (provider-specific discounts and constraints)
  3. Prompt optimization: Compress examples and instructions (typically meaningful token reduction)
  4. Output limits: Set appropriate max_tokens (prevents runaway costs)

When to Fine-Tune (ROI-Based)

Fine-tuning pays off when:

See Cost Economics for TCO modeling and Fine-Tuning ROI Calculator for investment analysis.


Core Concepts (Vendor-Agnostic)

Implementation Practices (Tooling Examples)

Do / Avoid

Do

Avoid

When to Use This Skill

Claude should invoke this skill when the user asks about:


Scope Boundaries (Use These Skills for Depth)


Resources (Best Practices & Operational Patterns)

Comprehensive operational guides with checklists, patterns, and decision frameworks:

Core Operational Patterns

Domain-Specific Patterns

Note: Each resource file includes preflight/validation checklists, copy-paste reference tables, inline templates, anti-patterns, and decision matrices.


Templates (Copy-Paste Ready)

Production templates by use case and technology:

Selection & Governance

RAG Pipelines

Prompt Engineering

Agentic Workflows

Data Pipelines

Deployment

Evaluation


Shared Utilities (Centralized patterns — extract, don't duplicate)


Trend Awareness Protocol

IMPORTANT: For “best/latest” recommendations, verify recency using current sources (official docs/release notes/benchmarks). If you can’t browse, state assumptions and ask for timeframe + constraints.

Trigger Conditions

Minimal Verification Checklist

  1. Confirm user constraints: latency, cost, privacy/compliance, deployment target, and toolchain.
  2. Check at least 2 authoritative sources from data/sources.json (provider docs, release notes, pricing/quotas, deprecations).
  3. Prefer stable guidance (tradeoffs + decision criteria) over “one best model/framework”.

What to Report

After searching, provide:

Example Topics (verify with fresh sources)


Related Skills

This skill integrates with complementary Claude Code skills:

Core Dependencies

Production & Operations


External Resources

See data/sources.json for 50+ curated authoritative sources:


Usage

For New Projects

  1. Start with Production Checklists - Validate all pre-deployment requirements
  2. Use Decision Matrices - Select technology stack
  3. Reference Project Planning Patterns - Design FTI pipeline
  4. Implement with Common Design Patterns - Copy-paste code examples
  5. Avoid Anti-Patterns - Learn from common mistakes

For Troubleshooting

  1. Check Anti-Patterns - Identify failure modes and mitigations
  2. Use Decision Matrices - Evaluate if architecture fits use case
  3. Reference Common Design Patterns - Verify implementation correctness

For Ongoing Operations

  1. Follow Production Checklists - Weekly operational tasks
  2. Integrate Evaluation Patterns - Continuous quality monitoring
  3. Apply LLMOps Best Practices - Deployment and rollback procedures

Navigation Summary

Quick Decisions: Decision Matrices

Pre-Deployment: Production Checklists

Planning: Project Planning Patterns

Implementation: Common Design Patterns

Troubleshooting: Anti-Patterns

Domain Depth: LLMOps | Evaluation | Prompts | Agents | RAG

Templates: assets/ - Copy-paste ready production code

Sources: data/sources.json - Authoritative documentation links


Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.