domain-nlp-llm

domain-nlp-llm is a skill for Claude Code from mxslr/mlcraft. It costs 122 tokens per session (699 once invoked), scanned A, original, MIT.

A guide for tasks involving human language or language models, such as sorting text, answering questions, summarizing, searching documents, and building chatbots. It compares prompting, retrieval-augmented generation (using documents to ground answers), and fine-tuning a model.

In plain words
What is it for?
Use it to select models and methods for text classification, named-entity recognition, document search, question answering, summarization, translation, agents, and language-model fine-tuning.
Why use it?
It helps choose the least costly approach that fits the task and provides evaluation methods suited to different text problems.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the mlcraft plugin — 23 skills, 1 command, 1 agent shipped together

Good fit Use it to select models and methods for text classification, named-entity recognition, document search, question answering, summarization, translation, agents, and language-model fine-tuning.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mxslr/mlcraft/domain-nlp-llm
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mxslr/mlcraft --skill domain-nlp-llm
Clone the repo
git clone --depth 1 https://github.com/mxslr/mlcraft

Made for: Claude Code.

Or install mlcraft, the plugin that ships this one along with the rest of its 23 skills, 1 command, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for domain-nlp-llm

README.md
[![agentmods](https://agentmods.dev/badge/skills/mxslr/mlcraft/domain-nlp-llm/github.svg)](https://agentmods.dev/skills/mxslr/mlcraft/domain-nlp-llm)
Your own site
<a href="https://agentmods.dev/skills/mxslr/mlcraft/domain-nlp-llm"><img src="https://agentmods.dev/badge/skills/mxslr/mlcraft/domain-nlp-llm/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for domain-nlp-llm

Your own site · 80×15
<a href="https://agentmods.dev/skills/mxslr/mlcraft/domain-nlp-llm"><img src="https://agentmods.dev/badge/skills/mxslr/mlcraft/domain-nlp-llm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 699 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00122 $0.00699
Opus 5 $0.00061 $0.00349
Sonnet 5 $0.00024 $0.00140
Haiku 4.5 $0.00012 $0.00070

Measured 9d ago against content hash fae775ad102d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

domain-nlp-llm scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/domain-nlp-llm/SKILL.md · 31 lines

How it starts

The opening of the file, as written. The whole thing — 31 lines — stays where its author put it; the contents beside it link to each section on GitHub.

NLP / LLM - Method Selection

First decide the cheapest approach that works: prompt, then RAG, then fine-tune, in that order of effort.

Decision table

Sub-task Recommended Notes
Text classification / sentiment Fine-tune DeBERTa-v3 / RoBERTa (or a strong LLM few-shot if data is tiny) Encoder models are cheap, strong, and fast for fixed label sets.
NER / token tagging DeBERTa/RoBERTa token-classification Span-level F1; watch tokenizer alignment.
Semantic search / dedup / clustering Sentence-embeddings (e5 / BGE / GTE) + vector index Cosine similarity; evaluate with retrieval metrics.
Knowledge Q&A over your docs RAG (embed + retrieve + LLM answer) Prefer RAG over fine-tuning for factual/updatable knowledge.
Summarize / rewrite / extract / generate Instruction-tuned LLM (prompted) Start with prompting + few-shot; structured output via schema.
Domain adaptation of an LLM LoRA/QLoRA fine-tune Parameter-efficient; only after prompting/RAG proves insufficient.
Chatbot / tool-use agent LLM + tools/function-calling, RAG for grounding Define tools crisply; add guardrails.

Choosing prompt vs RAG vs fine-tune

  • Prompt / few-shot: fastest; use when the base model can already do it with instructions.
  • RAG: when the model lacks knowledge (private/updatable facts). Fixes hallucination better than fine-tuning.
  • Fine-tune (LoRA): when you need a behavior/format/style the base model won't follow, or a cheap specialized classifier. Not for injecting facts.

Rigor

  • Split leakage: dedup near-duplicate texts; split by document/author/time, not random sentences. For RAG, keep eval questions out of the indexed corpus if testing generalization.
  • Metrics: classification uses F1/AUC (macro for imbalance); generation uses task metrics plus LLM-as-judge with a rubric plus human spot-checks; retrieval uses recall@k / nDCG; QA uses exact-match/F1 plus faithfulness/groundedness.
  • Robustness: check prompt sensitivity, class imbalance, and demographic/topic subgroups.
  • Improve: use accuracy-improvement-loop (better retriever, hard-negative mining, better chunking, ensemble/judge, fine-tune last).

Read the full file on GitHub · 31 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 31 lines · 122 tokens per session scan A fae775ad102d

Subscribe to this mod's changes

domain-nlp-llm is a skill published in the GitHub repository mxslr/mlcraft (8 stars, last pushed 2mo ago), licensed MIT. It adds 122 tokens to every session and 699 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

agentic-patterns

Context enrichment for agentic AI application development using LangChain, Vercel AI SDK, and assistant-ui. Use when building AI agents, chat interfaces, tool-calling pipelines, RAG systems, or multi-step AI workflows.

rsmdt/the-startup · 51 tokens

llm-ops

LLM Operations -- RAG, embeddings, vector databases, fine-tuning, prompt engineering avancado, custos de LLM, evals de qualidade e arquiteturas de IA para producao.

davila7/claude-code-templates · 44 tokens

transformers

This skill should be used when working with pre-trained transformer models for natural language processing, computer vision, audio, or multimodal tasks. Use for text generation, classification, question answering, translation, summarization, image classification, object detection, speech recognition, and fine-tuning…

synthetic-sciences/openscience · 63 tokens

nemotron-retrieval-recipes

Use when planning, debugging, tuning, evaluating, exporting, or deploying public Nemotron embed/rerank retrieval recipes.

NVIDIA-NeMo/Nemotron · 36 tokens

pgvector-semantic-search

Use this skill for setting up vector similarity search with pgvector for AI/ML embeddings, RAG applications, or semantic search. Trigger when user asks to: Store or search vector embeddings in PostgreSQL Set up semantic search, similarity search, or nearest neighbor search Create HNSW or IVFFlat indexes for vectors…

timescale/pg-aiguide · 190 tokens

postgres-hybrid-text-search

Use this skill to implement hybrid search combining BM25 keyword search with semantic vector search using Reciprocal Rank Fusion (RRF). Trigger when user asks to: Combine keyword and semantic search Implement hybrid search or multi-modal retrieval Use BM25/pgtextsearch with pgvector together Implement RRF (Reciprocal…

timescale/pg-aiguide · 162 tokens