agentleFS
leroyguillaumeleroyguillaume/claude/ollama-conventions/SKILL.md

ollama-conventions

Skill7 starsChanged 5 days agoMITView on GitHub

Picking a model for Ollama or local inference. TRIGGER when: setting up Ollama; code or compose files that pull or run an Ollama model (`ollama pull`/`run`, `/api/chat`, `/api/generate`, `/api/embed`, `OLLAMA_*`, a `Modelfile`); choosing a local model tag; user asks which model to use with Ollama or self-hosted LLMs. SKIP when: a hosted provider only. The model-selection study is skipped when the user already chose the model.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the user asks you to pick, suggest, or hard-code an Ollama model — or when you would otherwise reach for a default tag — run a fresh …

    line 21
  2. Very specific:

    What's new on Ollama: check the Ollama model library (https://ollama.com/library) and recent model announcements — the tag has to actually …

    line 36
  3. Distinctive:

    Ask for or infer the available memory if it isn't obvious.

    line 42
  4. Distinctive:

    Cite what you found: When you give the recommendation, briefly say *which benchmarks* and *how recent* they are, and name a runner-up.

    line 43
  5. Distinctive:

    If web access is unavailable, say so and flag that the suggestion is from possibly-stale memory — don't present a remembered model as a …

    line 52
  6. Very specific:

    Don't pin :latest: Always use an explicit, reproducible model tag in code, compose files, Modelfiles, and docs.

    line 60
  7. Very specific:

    Document the choice: When you commit a model tag, leave a one-line note in ARCHITECTURE.md of *why* in terms of the task it serves.

    line 62

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Ollama conventions

Never recommend a model from memory

Local-model leaderboards move every few weeks: new releases, new quantizations, new fine-tunes. Whatever you "remember" as the best 7B/13B/70B is almost certainly stale. Before you name a model, do the homework.

When the user asks you to pick, suggest, or hard-code an Ollama model — or when you would otherwise reach for a default tag — run a fresh benchmark study first. This is non-negotiable for any recommendation; it does not apply when the user already told you exactly which model to use.

The study (do this before recommending)

  1. Search the web for current benchmarks and the latest releases, and cross-check several sources when the choice is high-stakes. Cover at least:
    • The task the user actually has — code, chat, reasoning, RAG/retrieval, embeddings, vision, tool/function calling, long context, non-English. A model that tops a chat leaderboard can be mediocre at code.
    • Recent leaderboards and evals: LMArena, Artificial Analysis, LiveBench, task-specific evals (HumanEval / MBPP / LiveCodeBench / SWE-bench for code, MMLU / GPQA / MATH for reasoning, MTEB for embeddings, etc.).
    • What's new on Ollama: check the Ollama model library (https://ollama.com/library) and recent model announcements — the tag has to actually exist and be pullable.
  2. Match the model to the hardware. A benchmark winner the user can't run is useless. Account for parameter count, the quantization that fits their VRAM/RAM (q4_K_M, q5_K_M, q8_0, …), and context-window needs. Ask for or infer the available memory if it isn't obvious.
  3. Cite what you found. When you give the recommendation, briefly say which benchmarks and how recent they are, and name a runner-up. The user should see the evidence, not just the verdict. Note the benchmark date — "as of <month/year>" — in the reply, so it's clear the data has a shelf life.
  4. Pin an exact tag. Recommend and hard-code a concrete, reproducible tag (shaped <family>:<size>-<variant>-<quant>, as listed on the model's page), never a floating :latest.

If web access is unavailable, say so and flag that the suggestion is from possibly-stale memory — don't present a remembered model as a current best.

Plumbing conventions

  • Configuration via env vars. Honour OLLAMA_HOST and the standard OLLAMA_* names as they are — they are upstream's, not yours to rename or prefix. Your own variables follow config-conventions.
  • Don't pin :latest. Always use an explicit, reproducible model tag in code, compose files, Modelfiles, and docs.
  • Document the choice. When you commit a model tag, leave a one-line note in ARCHITECTURE.md of why in terms of the task it serves. The benchmark snapshot and its date go in the commit message or PR description, never in the file — a dated ranking in a doc is stale the week it lands.
  • Embeddings go through /api/embed, which takes a batch input; /api/embeddings is superseded upstream.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.