Ollama
Run, tune, and troubleshoot local Ollama models with reliable API patterns, Modelfiles, embeddings, and hardware-aware deployment workflows.
от clawic★ 23 звезды на GitHub
Установить Ollama в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
When to Use
User needs to install, run, integrate, tune, or debug Ollama for local or self-hosted model workflows. Agent handles smoke tests, model selection, API usage, Modelfile customization, embeddings, RAG fit checks, and safe operations.
Use this instead of generic AI advice when the blocker is specific to local runtime behavior: wrong model tag, broken JSON output, poor retrieval, slow inference, context sizing, GPU fallback, or unsafe remote exposure.
Architecture
Memory lives in ~/Clawic/data/ollama/. If ~/Clawic/data/ollama/ does not exist, run setup.md. See memory-template.md for structure.
~/Clawic/data/ollama/
|-- memory.md # Durable context and activation boundaries
|-- environment.md # Host, GPU, OS, runtime, and service notes
|-- model-registry.md # Approved models, tags, quants, and fit notes
|-- modelfiles.md # Reusable Modelfile patterns and parameter decisions
|-- rag-notes.md # Embedding choices, chunking, retrieval checks, vector dimensions
`-- incident-log.md # Repeated failures, fixes, and rollback notes
Quick Reference
Load only the file needed for the current blocker.
| Topic | File |
|---|---|
| Setup guide | setup.md |
| Memory template | memory-template.md |
| Install and smoke-test workflow | install-and-smoke-test.md |
| Local API and OpenAI-compatible patterns | api-patterns.md |
| Modelfile creation and context control | modelfile-workflows.md |
| Embeddings and local RAG checks | embeddings-and-rag.md |
| Runtime operations and performance tuning | operations-and-performance.md |
| Failure recovery and incident triage | troubleshooting.md |
Requirements
- Local
ollamaaccess on the target machine, or permission to guide installation. - Enough RAM, VRAM, and disk for the exact model and context window being proposed.
- Explicit user approval before exposing Ollama beyond localhost, changing service managers, or deleting model files.
- Exact model tags and runtime facts must be verified with live commands such as
ollama list,ollama ps, andollama show.
Never assume model capabilities, context length, quantization, or GPU usage from memory alone.
Operating Coverage
This skill is for practical Ollama execution, not abstract local-LLM discussion. It covers:
- local installs on macOS, Linux, and Windows
- CLI workflows for pull, run, copy, show, create, and remove
- REST API usage on
http://127.0.0.1:11434/apiand OpenAI-compatible usage on/v1 - hardware-aware model sizing, context tuning, and throughput tradeoffs
- Modelfile-based customization for prompts, parameters, adapters, and reproducible model names
- embeddings and local RAG pipelines where indexing, querying, and retrieval must stay consistent
Data Storage
Keep only durable operational context in ~/Clawic/data/ollama/:
- host facts that materially change advice: OS, GPU class, CPU-only constraints, service manager, remote or local deployment
- approved model tags, copied aliases, quant choices, and context limits that worked in practice
- Modelfile defaults, JSON output patterns, and safe OpenAI-compatible mappings
- embedding model choices, vector dimensions, chunking defaults, and retrieval checks
- recurring failures such as partial pulls, CPU fallback, port conflicts, or broken upgrades
Core Rules
1. Verify the Runtime Before Giving Advice
- Confirm
ollamais installed and reachable before proposing any deeper fix. - Start with the smallest factual checks:
ollama --version,ollama list,ollama ps, and one minimal generation or/api/tagsrequest. - Treat "it runs" and "it runs correctly" as different states.
2. Pin Exact Model Names and Inspect Them Live
- Use exact tags, not vague family names, for anything reproducible or production-adjacent.
- Inspect the real model with
ollama showor/api/showbefore claiming context length, quantization, or capabilities. - Avoid silent drift from floating tags when stability matters.
3. Separate Runtime, Modelfile, and App Prompt Responsibilities
- Debug local behavior in layers: runtime first, then model definition, then application prompt.
- If output quality changed, check whether
SYSTEM,TEMPLATE, orPARAMETERsettings in the Modelfile are fighting the app prompt. - Put durable defaults in a named model, not in ad hoc copy-pasted prompts.
4. Choose Models by Hardware and Latency Budget
- A model that technically loads but falls back to CPU or swaps memory is not a good fit.
- Use
ollama psto confirm processor split before promising performance. - Keep separate defaults for chat, coding, extraction, vision, and embeddings instead of forcing one model to do everything.
5. Make API and Structured Output Flows Deterministic
- Prefer non-streaming responses when the next step needs strict parsing.
- Use
format: "json"or a JSON schema, set low temperature, and validate the parsed result before taking downst
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _meta.json
- api-patterns.md
- embeddings-and-rag.md
- install-and-smoke-test.md
- memory-template.md
- modelfile-workflows.md
- operations-and-performance.md
- setup.md
- troubleshooting.md
FAQ
Что делает скилл Ollama?
Run, tune, and troubleshoot local Ollama models with reliable API patterns, Modelfiles, embeddings, and hardware-aware deployment workflows.
Как установить скилл Ollama?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Ollama запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…