Best for
- Choosing between prompt-only, RAG, tool use, fine-tuning, or hybrid LLM architectures
- Selecting a provider, model tier, or deployment path for a production workload
- Planning or reviewing model/provider migrations
vasilyu1983/AI-Agents-public/frameworks/shared-skills/skills/ai-llm/SKILL.md
Guides the LLM lifecycle from strategy to deployment. Use when planning, comparing, fine-tuning, distilling, compressing, migrating, or operating LLM systems.
Decision brief
Modern Best Practices: treat the model as a versioned component with contracts, eval gates, rollout controls, cost budgets, and explicit fallback paths. Prefer stable decision criteria over static "best model" lists, and verify volatile provider facts against current official do…
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Declared | Source record | Install path and trigger |
| Claude Code | Declared | Source record | Install path and trigger |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/vasilyu1983/AI-Agents-public --skill "frameworks/shared-skills/skills/ai-llm"Inspect the Agent Skill "ai-llm" from https://github.com/vasilyu1983/AI-Agents-public/blob/53f6cb73ea53a2646e3e7d4665062ad66f3683ac/frameworks/shared-skills/skills/ai-llm/SKILL.md at commit 53f6cb73ea53a2646e3e7d4665062ad66f3683ac. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
1. Clarify the outcome: task, users, required quality, latency budget, cost ceiling, privacy/compliance constraints. 2. Pick the simplest architecture that can work: prompt-only - RAG - tool use/agent - adaptation/fine-tuning - hybrid. 3. Define the contract first: input shape,…
1. Confirm user constraints: latency, quality floor, cost ceiling, compliance/privacy, hosting model, toolchain. 2. Check at least two official or primary sources from data/sources.json. 3. Prefer release notes, pricing pages, API docs, and deprecation pages over blogs or benchm…
Review the “ASCII Flow” section in the pinned source before continuing.
Activate this skill when the user asks for:
Choosing the approach first (classical ML vs LLM vs RAG vs fine-tune vs agent) - ai-architecture-advisor
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 93/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 80 | Source | Repository attention, not individual Skill quality |
| Compatibility | 2 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Modern Best Practices: treat the model as a versioned component with contracts, eval gates, rollout controls, cost budgets, and explicit fallback paths. Prefer stable decision criteria over static "best model" lists, and verify volatile provider facts against current official docs before recommending a stack.
This skill is the umbrella skill for deciding how to build, adapt, evaluate, migrate, and operate LLM systems.
Use this skill for architecture and lifecycle decisions. Use sibling skills for implementation depth.
No theory. No generic AI history. Focus on operational choices, tradeoffs, checklists, and reusable templates.
LLM product need
|
v
outcome contract
task + users + quality + latency + cost + privacy/compliance
|
v
architecture choice
prompt-only -> RAG -> tools/agents -> adaptation/fine-tuning -> hybrid
|
v
evaluation and rollout
golden set + edge cases + canary + observability + rollback
|
v
operated model component
versioned prompts/models/configs + fallbacks + governance
Activate this skill when the user asks for:
huggingface-skills: plugin (external)Starting an LLM project
│
├─ Is the task mostly instruction following with stable inputs?
│ └─ Start prompt-only with explicit contracts and evals
│
├─ Do you need current or private knowledge?
│ └─ Add retrieval (RAG) before considering fine-tuning
│
├─ Do you need external actions or tool use?
│ └─ Add bounded tool use or an agent workflow
│
├─ Does the system still fail in a repeated, stable way after prompt/RAG/tool fixes?
│ └─ Consider adapters/SFT or preference optimization
│
└─ Do you need multiple capabilities together?
└─ Build a hybrid system, but keep each layer independently testable
| Decision Area | Default Move | Promote Complexity When | Avoid |
|---|---|---|---|
| Architecture selection | Start prompt-only | Missing knowledge, repeated failures, or external actions are required | Jumping straight to fine-tuning |
| Retrieval | Add hybrid retrieval + citations | Corpus is large, fresh, or access-controlled | Treating RAG as a fix for poor instructions |
| Fine-tuning | Use only for stable repeated behavior gaps | You have quality data, stable tasks, and eval coverage | Tuning for information that should live in retrieval |
| Model selection | Rank by quality, latency, cost, privacy, and supportability | User constraints are strict or multi-provider fallback is needed | Picking a model from benchmarks alone |
| Migration | Preserve contracts, then replay evals | API surface or reliability requirements changed | Blind prompt copy-paste between providers |
| Rollout | Canary + compare + rollback plan | Production traffic is material or high risk | Single-shot model swaps |
Use this protocol whenever the user asks about current providers, models, frameworks, prices, or regulations.
| Script | Purpose |
|---|---|
scripts/prompt_eval_runner.py | Run a regression JSONL suite (input/expected_substring/expected_schema) and report pass rate. Validates pre-collected outputs — does not call any LLM API. |
scripts/cost_estimator.py | Estimate USD cost across providers from token counts or a prompt file. Provider pricing table embedded; update when rates change. |
ai-architecture-advisor owns the prior decision of whether to distil at all, and ai-pretraining explicitly delegates distillation here.Use templates as starting points, not as drop-in truth for current providers:
See data/sources.json for curated primary sources across:
Before applying this skill on a non-trivial task, read learnings.consolidated.md in this directory (and learnings.md if present).
After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.
Frequently asked questions
Modern Best Practices: treat the model as a versioned component with contracts, eval gates, rollout controls, cost budgets, and explicit fallback paths. Prefer stable decision criteria over static "best model" lists, and verify volatile provider facts against current official do…
The source record exposes this install command: npx skills add https://github.com/vasilyu1983/AI-Agents-public --skill "frameworks/shared-skills/skills/ai-llm". Inspect the command and pinned source before running it.
The pinned source record declares support for: codex, claude code.
Alternatives
vasilyu1983/AI-Agents-public
Guides iOS testing with XCTest, XCUITest, Swift Testing, simctl, and xcresult. Use when choosing destinations, controlling flakes, or parsing test artifacts for native apps.
vasilyu1983/AI-Agents-public
Scans public GitHub repos for agent skills, dev practices, and code patterns. Use when enriching skills, setting team policy, or researching a build domain.
lobu-ai/lobu
Set up new Lobu agents end to end and operate existing Lobu projects and memory: interview, scaffold, validate, authenticate, connect feeds, execute operations, and test Automations.
vasilyu1983/AI-Agents-public
Guides native iOS with Swift, SwiftUI, UIKit interop, concurrency, and persistence. Use when building or reviewing iPhone/iPad apps after establishing runtime truth.