Logo de Ai Llm

Ai Llm

Comunidade
vasilyu1983
ai-llm

Orientações para todo o ciclo de vida de LLMs, da estratégia à implantação. Use para planejar, comparar, ajustar, destilar, comprimir, migrar ou operar sistemas de LLM.

Add to TypingMind

Visão geral

Publicado porvasilyu1983
RepositórioAI-Agents-public
Nome da habilidadeai-llm
Estrelas
87
Forks
19
Arquivos incluídos
41
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 41

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por vasilyu1983 no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Ai Llm no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/ai-llm
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vasilyu1983/AI-Agents-public.git /tmp/AI-Agents-public
mkdir -p .claude/skills
cp -r /tmp/AI-Agents-public/frameworks/shared-skills/skills/ai-llm .claude/skills/ai-llm
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Ai Llm em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Ai Llm automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Ai Llm não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

LLM Engineering - Lifecycle Skill

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.

ASCII Flow

text
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

When to Use This Skill

Activate this skill when the user asks 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
  • Designing eval suites, graders, rollout gates, and regression policies
  • Calculating cost, latency, and quality tradeoffs at the system level
  • Defining LLM governance: data handling, safety boundaries, compliance, and rollback
  • Building current recommendations that depend on provider/platform capabilities
  • Creating a preflight plan for an LLM project before implementation begins

Scope Boundaries (Use These Skills for Depth)

  • Choosing the approach first (classical ML vs LLM vs RAG vs fine-tune vs agent) -> ai-architecture-advisor
  • Eval methodology: LLM-judge bias, framework choice, threshold calibration, reproducibility -> ai-evals
  • Prompt design, structured outputs, prompt CI/CD -> ai-prompt-engineering
  • RAG design, chunking, retrieval, reranking -> ai-rag
  • Agent architectures, MCP tools, multi-agent orchestration -> ai-agents
  • Serving optimization, batching, routing, quantization -> ai-llm-inference
  • Deployment, monitoring, incident response, security depth -> ai-mlops
  • Hugging Face-specific LLM training workflows (TRL, SFT, DPO, GRPO) -> use the huggingface-skills: plugin (external)
  • Build a transformer/GPT and BPE tokenizer from scratch (pre-training layer) -> ai-pretraining
  • Multi-GPU pre-training: FSDP, DeepSpeed ZeRO, tensor/pipeline parallelism, reproduce GPT-2 -> ai-distributed-training
  • Scaling laws, Chinchilla compute-optimal sizing, token/param budget -> ai-scaling-laws
  • Web-scale + synthetic pre-training corpus curation and data ablations -> ai-data-curation-pretraining
  • Post-training depth: RLHF/PPO, DPO, GRPO, RLVR, reward modeling, alignment, and reasoning-model training -> ai-post-training

Default 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, output contract, allowed tools, retrieval boundaries, failure modes.
  4. Choose the adaptation path: prompting, retrieval, adapters/SFT, preference optimization, or a combination.
  5. Design evaluation before rollout: golden set, edge cases, adversarial cases, format validation, online checks.
  6. Plan deployment controls: versioning, canarying, observability, rollback, degraded mode.

Decision Tree: Architecture and Adaptation

text
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

Quick Reference

Decision AreaDefault MovePromote Complexity WhenAvoid
Architecture selectionStart prompt-onlyMissing knowledge, repeated failures, or external actions are requiredJumping straight to fine-tuning
RetrievalAdd hybrid retrieval + citationsCorpus is large, fresh, or access-controlledTreating RAG as a fix for poor instructions
Fine-tuningUse only for stable repeated behavior gapsYou have quality data, stable tasks, and eval coverageTuning for information that should live in retrieval
Model selectionRank by quality, latency, cost, privacy, and supportabilityUser constraints are strict or multi-provider fallback is neededPicking a model from benchmarks alone
MigrationPreserve contracts, then replay evalsAPI surface or reliability requirements changedBlind prompt copy-paste between providers
RolloutCanary + compare + rollback planProduction traffic is material or high riskSingle-shot model swaps

Known Traps

  • escalating to fine-tuning when the real issue is retrieval, tool grounding, or weak output contracts
  • migrating providers by copying prompts only and ignoring schema, tool-call, safety, and retry differences
  • choosing models from leaderboard screenshots without checking latency, quotas, privacy, or supportability
  • shipping fallback models or silent reroutes that produce different behavior with no contract tests
  • treating judge-model scores as ground truth instead of one input in a calibrated eval program
  • budgeting off introductory/launch pricing without checking the expiry date — providers frequently run time-boxed discounts on a newly released tier (verify the current pricing page for an end date, not just the headline number)
  • building or maintaining an integration on a provider's deprecated beta surface (e.g., an API family with a published sunset date) without a migration plan already in motion

Common Anti-Patterns

  • benchmark-first architecture selection
  • rollout without a slice-based regression set and rollback trigger
  • prompt and model changes shipped together so regressions cannot be attributed
  • "cost optimization" that lowers success rate and raises cost per successful task
  • provider-specific capabilities hardcoded into durable strategy docs without freshness checks

Core Principles

1. Contracts Before Cleverness

  • Define inputs, outputs, schemas, tool boundaries, and refusal behavior before optimizing prompts or models.
  • Prefer provider-native structured output and tool contracts when available, with application-side validation as the source of truth.
  • Treat prompt text as one part of the contract, not the contract itself.

2. Prefer Stable Guidance Over Static Rankings

  • Model rankings, pricing, quotas, context limits, and framework momentum are volatile.
  • Keep stable decision criteria in the skill; verify current winners with current docs, release notes, and pricing pages.
  • When the user asks for "best" or "latest", search current official sources before making a recommendation.

3. Reasoning Is Model-Specific

  • Do not default to prompting for full visible chain-of-thought.
  • Prefer internal reasoning with a concise final answer or brief justification.
  • Ask for explicit visible steps only when the task is educational, audit-oriented, mathematical, or the user explicitly wants the steps shown.

4. Evals Are Release Gates

  • Every prompt, model, retrieval, or tool change should be testable against a versioned eval set.
  • Judge models and graders are useful, but they are not ground truth; keep a human-calibrated subset.
  • Track regressions by slice, not only by a global average.

5. Cost Is Per Successful Outcome

  • Measure cost per successful task, not just cost per token.
  • Budget for retries, failures, tool calls, retrieval, and observability overhead.
  • Add routing, caching, and output limits early when economics matter.

Current-Facts Protocol (Required for Volatile-Fact Questions)

Use this protocol whenever the user asks about current providers, models, frameworks, prices, or regulations.

Trigger Conditions

  • "What is the best model/framework right now?"
  • "Is this still current in 2026?"
  • "What should I use for structured outputs / RAG / agents / fine-tuning?"
  • "Which provider is cheapest / fastest / best for X?"
  • "Can I still use this API / framework / model?"

Verification Steps

  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 benchmark roundups.
  4. Report what is stable vs what is volatile.

What to Report

  • Stable recommendation criteria: why a category or approach fits
  • Current platform reality: API family, supported features, structured output/tooling path, pricing/deprecation caveats
  • Migration risk: what breaks if the user changes provider/model
  • Fallback option: second-best path if the preferred option changes

Scripts

ScriptPurpose
scripts/prompt_eval_runner.pyRun 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.pyEstimate USD cost across providers from token counts or a prompt file. Provider pricing table embedded; update when rates change.

Navigation: Core References

  • Production Checklists - preflight, rollout, and operational validation
  • Decision Matrices - architecture, retrieval, embeddings, frameworks, deployment, MoE vs dense, and distributed training parallelism
  • Post-Training 2026 - 2026 post-training stack: GRPO, DAPO, GSPO (MoE), RLVR, SimPO, KTO vs PPO/DPO; decision tree and comparison table. Reasoning-model training (RLVR, GRPO, thinking-budget-as-a-dial) and test-time compute scaling are covered here and in Advanced LLM Patterns; for full alignment/reward-modeling depth see ai-post-training.
  • Project Planning Patterns - milestone planning, stack selection, and pipeline design
  • Model Migration Guide - contract-first migration, eval replay, canaries, and rollback
  • Evaluation Patterns - offline/online evaluation, lm-eval-harness standard, judge-model calibration, traceability
  • Cost Economics - TCO, budget guardrails, and ROI framing
  • Fine-Tuning Recipes - SFT, LoRA, mid-training/annealing, over-training regime, and the 2026 post-training stack pointer
  • Advanced LLM Patterns - RLHF loop, pretraining path, test-time compute scaling, and model compression: quantization, pruning (pointers to ai-llm-inference pruning-and-sparsity), and knowledge distillation recipes (logit KD, sequence KD, on-policy MiniLLM/GKD, rationale, prune-then-distill Minitron, reasoning-trace) (teacher soft labels -> student training -> validation). This skill owns the distillation recipe; ai-architecture-advisor owns the prior decision of whether to distil at all, and ai-pretraining explicitly delegates distillation here.
  • Tokenizer Diagnostics - debugging production tokenizer failures: fertility and parity metrics, glitch/undertrained tokens, domain-mismatch fragmentation, number tokenization as an arithmetic failure source, and typo brittleness. Start here when a model misbehaves on only a subset of inputs. The constructive counterpart — building a BPE tokenizer — is ai-pretraining.
  • Dataset Formatting Guide - instruction/chat/transformation formats, dataset hygiene, and SFT loss-masking mechanics (ignore_index=-100, keeping the first EOS unmasked, per-batch dynamic padding). ai-pretraining delegates SFT formatting here.
  • Structured Output Patterns - provider-native schema enforcement and validation fallbacks
  • Multimodal Patterns - vision/audio/document workflows with explicit freshness caveats
  • Anti-Patterns - failure modes to detect early

Templates

Use templates as starting points, not as drop-in truth for current providers:

Shared Utilities (Centralized Patterns)

External Sources

See data/sources.json for curated primary sources across:

  • Official provider docs, pricing, and API guides
  • Model adaptation and training references
  • Retrieval and agent frameworks
  • Evaluation and observability tooling
  • Security, governance, and protocol standards

Fact-Checking Rule

  • Known bugs, regressions, framework/compiler/runtime footguns, and version-specific crash or workaround guidance must be verified against current primary web sources before being treated as current fact.
  • Verify volatile external facts before final answers.
  • Prefer official docs, standards, release notes, and pricing pages.
  • If you cannot verify, say so explicitly and present the guidance as a dated assumption instead of a fact.

Learnings Loop

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.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Ai Llm faz?

Orientações para todo o ciclo de vida de LLMs, da estratégia à implantação. Use para planejar, comparar, ajustar, destilar, comprimir, migrar ou operar sistemas de LLM.

Por que usar Ai Llm no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Ai Llm é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Ai Llm no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/ai-llm. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Ai Llm?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Ai Llm?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Ai Llm com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Ai Llm é gratuita?

Sim. A habilidade é publicada no GitHub por vasilyu1983 sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇