[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EV5W87Z2HVQQ5F562B8ENK":3,"skill-same:01M7EV5W87Z2HVQQ5F562B8ENK":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7EV5W87Z2HVQQ5F562B8ENK","ollama-pro",null,"Ollama guidance — running local LLMs, model selection, Modelfiles, API usage, and RAG\u002Fagent integration.","TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-ollama-pro\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ollama-pro\ndescription: Ollama guidance — running local LLMs, model selection, Modelfiles, API usage, and RAG\u002Fagent integration.\ncategory: development\n---\n\n## Overview\n\nOllama is the easiest way to run open LLMs locally: `ollama run llama3.1` and you have a model on your machine — no cloud, no API keys, no data leaving your network. It manages model downloads, quantization, GPU offloading, and exposes an OpenAI-compatible API that plugs into existing tooling.\n\nLocal models trade raw capability for privacy, cost (after hardware), latency control, and offline operation. This skill covers running Ollama well: model selection, Modelfiles, the API, and integrating local models into RAG and agent workflows.\n\n## When to use\n\n- Running LLMs locally (privacy, offline, cost).\n- Choosing local models (size vs quality vs hardware).\n- Customizing models with Modelfiles.\n- Using the Ollama API (including OpenAI-compatible endpoints).\n- Building RAG\u002Fagents on local models.\n- Deciding local vs cloud models.\n\n## Core concepts\n\n- **The model library.** `ollama pull llama3.1:8b` — versioned models with size tags (`8b`, `70b`), quantization variants (`q4_0`, `q8_0`), and variants (instruct, vision, code, embedding). Tags encode the size\u002Fquantization tradeoff.\n- **Quantization.** Q4_K_M default — ~4 bits per weight, big quality retention; Q8 for more quality, smaller quants for tight VRAM. Quantization is why 70B models run on consumer hardware.\n- **Hardware fit.** Rule of thumb: ~0.5GB VRAM per billion params at Q4 (plus context overhead). 8B ≈ fits 8GB GPUs; 70B needs ~40GB+ or CPU offload (slow). Match model to hardware, not ambition.\n- **Modelfiles.** `FROM`, `PARAMETER` (temperature, num_ctx), `SYSTEM`, `TEMPLATE`, `ADAPTER` — declarative model customization; versioned in git like Dockerfiles. Custom system prompts and defaults without code.\n- **The API.** `POST \u002Fapi\u002Fgenerate` (completion), `\u002Fapi\u002Fchat` (messages), `\u002Fapi\u002Fembed` (embeddings) — plus OpenAI-compatible endpoints (`\u002Fv1\u002Fchat\u002Fcompletions`) that drop into existing clients. `ollama ps` shows loaded models.\n- **Context window.** `num_ctx` parameter — larger contexts need more memory (KV cache scales with context); set per use case, not maximally.\n- **GPU offloading.** `num_gpu` layers offloaded; partial offload splits CPU\u002FGPU (slower but fits bigger models). Ollama auto-detects; override when tuning.\n- **Keep-alive.** Models unload after inactivity (`keep_alive`) — preload latency-sensitive models (`ollama run` once, or `keep_alive: -1`); balance VRAM across concurrently-needed models.\n- **Embeddings.** `nomic-embed-text`, `mxbai-embed-large` — local embeddings for RAG; quality close enough for most retrieval, zero API cost, private.\n- **Vision models.** `llama3.2-vision`, `llava` — image understanding locally; quality behind frontier APIs but sufficient for many tasks (document QA, classification).\n- **Tool use.** Supported in recent models\u002FAPIs (`tools` parameter) — local agents are viable for well-scoped tools; weaker instruction-following than frontier models means simpler tools and more validation.\n- **RAG integration.** Ollama (LLM + embeddings) + your vector store (Chroma, Qdrant, pgvector) = fully local RAG. LangChain\u002FLlamaIndex both have Ollama integrations — swap the model layer, keep the pipeline.\n- **Evals for local models.** Smaller models fail differently (instruction-following, JSON validity, reasoning depth) — eval your actual tasks on the actual model; don't assume cloud-model prompts transfer.\n- **Updates.** `ollama pull` refreshes models; pin versions for reproducibility (`:8b` vs `:latest` semantics); test after updates — model updates change behavior.\n\n## Practical workflow\n\n1. **Size to hardware.** Check VRAM\u002FRAM, pick the largest model that fits comfortably at Q4 with your context needs:\n   ```bash\n   ollama pull llama3.1:8b        # ~5GB, solid general use\n   ollama pull qwen2.5-coder:32b  # coding tasks, needs ~20GB\n   ollama pull nomic-embed-text   # local embeddings\n   ```\n2. **Customize with Modelfiles.** System prompts, parameters, context size — versioned:\n   ```\n   FROM llama3.1:8b\n   PARAMETER temperature 0\n   PARAMETER num_ctx 8192\n   SYSTEM \"\"\"\n   You are a code reviewer. Be terse. Flag only real issues.\n   \"\"\"\n   ```\n   ```bash\n   ollama create reviewer -f Modelfile\n   ```\n3. **Use the API.** Chat, generate, embeddings — or the OpenAI-compatible endpoint for existing clients:\n   ```bash\n   curl http:\u002F\u002Flocalhost:11434\u002Fapi\u002Fchat -d '{\n     \"model\": \"llama3.1:8b\",\n     \"messages\": [{\"role\": \"user\", \"content\": \"Explain KV caching briefly.\"}],\n     \"stream\": false\n   }'\n   ```\n4. **Wire into RAG.** Local embeddings + vector store + Ollama generation — the private RAG stack; evaluate retrieval and generation on your corpus.\n5. **Tune serving.** `keep_alive` for hot models, `num_ctx` per use case, concurrent request limits; monitor tokens\u002Fsec per model.\n6. **Evaluate honestly.** Run your task evals on the local model; identify where it underperforms cloud models (usually: complex reasoning, strict JSON, long instructions) and design around it (simpler prompts, validation, fallbacks).\n7. **Hybrid architectures.** Local for private\u002Fbulk\u002Fsimple, cloud for hard reasoning — route by task sensitivity and difficulty, not ideology.\n8. **Keep updated deliberately.** Pin versions in production; test model updates against evals before rolling.\n\n## Common pitfalls\n\n- **Model bigger than hardware** — swapping to death; size to actual VRAM\u002FRAM.\n- **Default context too small\u002Flarge** — truncated inputs or wasted memory; `num_ctx` per use case.\n- **Cloud prompts on local models** — complex prompts failing on 8B models; simplify, validate outputs.\n- **No output validation** — weaker JSON adherence; schema-validate everything.\n- **Ignoring keep-alive** — cold-start latency on every request; preload hot models.\n- **Unpinned `:latest`** — silent model updates changing behavior; pin versions.\n- **Local-only dogma** — struggling with tasks needing frontier reasoning; hybrid routing.\n- **Embedding mismatch** — different embedding model than the index was built with; keep them paired.\n- **No evals** — assuming parity with cloud models; measure on your tasks.\n- **VRAM contention** — multiple large models fighting; plan concurrent model sets.\n- **CPU offload surprises** — 70B \"running\" at 2 tok\u002Fs; know your throughput requirements.\n- **Secrets in Modelfiles** — API keys baked into shared files; keep secrets out.\n- **Skipping quantization awareness** — tiny quants for quality-critical tasks; match quant to need.\n","## Overview\n\nOllama is the easiest way to run open LLMs locally: `ollama run llama3.1` and you have a model on your machine — no cloud, no API keys, no data leaving your network. It manages model downloads, quantization, GPU offloading, and exposes an OpenAI-compatible API that plugs into existing tooling.\n\nLocal models trade raw capability for privacy, cost (after hardware), latency control, and offline operation. This skill covers running Ollama well: model selection, Modelfiles, the API, and integrating local models into RAG and agent workflows.\n\n## When to use\n\n- Running LLMs locally (privacy, offline, cost).\n- Choosing local models (size vs quality vs hardware).\n- Customizing models with Modelfiles.\n- Using the Ollama API (including OpenAI-compatible endpoints).\n- Building RAG\u002Fagents on local models.\n- Deciding local vs cloud models.\n\n## Core concepts\n\n- **The model library.** `ollama pull llama3.1:8b` — versioned models with size tags (`8b`, `70b`), quantization variants (`q4_0`, `q8_0`), and variants (instruct, vision, code, embedding). Tags encode the size\u002Fquantization tradeoff.\n- **Quantization.** Q4_K_M default — ~4 bits per weight, big quality retention; Q8 for more quality, smaller quants for tight VRAM. Quantization is why 70B models run on consumer hardware.\n- **Hardware fit.** Rule of thumb: ~0.5GB VRAM per billion params at Q4 (plus context overhead). 8B ≈ fits 8GB GPUs; 70B needs ~40GB+ or CPU offload (slow). Match model to hardware, not ambition.\n- **Modelfiles.** `FROM`, `PARAMETER` (temperature, num_ctx), `SYSTEM`, `TEMPLATE`, `ADAPTER` — declarative model customization; versioned in git like Dockerfiles. Custom system prompts and defaults without code.\n- **The API.** `POST \u002Fapi\u002Fgenerate` (completion), `\u002Fapi\u002Fchat` (messages), `\u002Fapi\u002Fembed` (embeddings) — plus OpenAI-compatible endpoints (`\u002Fv1\u002Fchat\u002Fcompletions`) that drop into existing clients. `ollama ps` shows loaded models.\n- **Context window.** `num_ctx` parameter — larger contexts need more memory (KV cache scales with context); set per use case, not maximally.\n- **GPU offloading.** `num_gpu` layers offloaded; partial offload splits CPU\u002FGPU (slower but fits bigger models). Ollama auto-detects; override when tuning.\n- **Keep-alive.** Models unload after inactivity (`keep_alive`) — preload latency-sensitive models (`ollama run` once, or `keep_alive: -1`); balance VRAM across concurrently-needed models.\n- **Embeddings.** `nomic-embed-text`, `mxbai-embed-large` — local embeddings for RAG; quality close enough for most retrieval, zero API cost, private.\n- **Vision models.** `llama3.2-vision`, `llava` — image understanding locally; quality behind frontier APIs but sufficient for many tasks (document QA, classification).\n- **Tool use.** Supported in recent models\u002FAPIs (`tools` parameter) — local agents are viable for well-scoped tools; weaker instruction-following than frontier models means simpler tools and more validation.\n- **RAG integration.** Ollama (LLM + embeddings) + your vector store (Chroma, Qdrant, pgvector) = fully local RAG. LangChain\u002FLlamaIndex both have Ollama integrations — swap the model layer, keep the pipeline.\n- **Evals for local models.** Smaller models fail differently (instruction-following, JSON validity, reasoning depth) — eval your actual tasks on the actual model; don't assume cloud-model prompts transfer.\n- **Updates.** `ollama pull` refreshes models; pin versions for reproducibility (`:8b` vs `:latest` semantics); test after updates — model updates change behavior.\n\n## Practical workflow\n\n1. **Size to hardware.** Check VRAM\u002FRAM, pick the largest model that fits comfortably at Q4 with your context needs:\n   ```bash\n   ollama pull llama3.1:8b        # ~5GB, solid general use\n   ollama pull qwen2.5-coder:32b  # coding tasks, needs ~20GB\n   ollama pull nomic-embed-text   # local embeddings\n   ```\n2. **Customize with Modelfiles.** System prompts, parameters, context size — versioned:\n   ```\n   FROM llama3.1:8b\n   PARAMETER temperature 0\n   PARAMETER num_ctx 8192\n   SYSTEM \"\"\"\n   You are a code reviewer. Be terse. Flag only real issues.\n   \"\"\"\n   ```\n   ```bash\n   ollama create reviewer -f Modelfile\n   ```\n3. **Use the API.** Chat, generate, embeddings — or the OpenAI-compatible endpoint for existing clients:\n   ```bash\n   curl http:\u002F\u002Flocalhost:11434\u002Fapi\u002Fchat -d '{\n     \"model\": \"llama3.1:8b\",\n     \"messages\": [{\"role\": \"user\", \"content\": \"Explain KV caching briefly.\"}],\n     \"stream\": false\n   }'\n   ```\n4. **Wire into RAG.** Local embeddings + vector store + Ollama generation — the private RAG stack; evaluate retrieval and generation on your corpus.\n5. **Tune serving.** `keep_alive` for hot models, `num_ctx` per use case, concurrent request limits; monitor tokens\u002Fsec per model.\n6. **Evaluate honestly.** Run your task evals on the local model; identify where it underperforms cloud models (usually: complex reasoning, strict JSON, long instructions) and design around it (simpler prompts, validation, fallbacks).\n7. **Hybrid architectures.** Local for private\u002Fbulk\u002Fsimple, cloud for hard reasoning — route by task sensitivity and difficulty, not ideology.\n8. **Keep updated deliberately.** Pin versions in production; test model updates against evals before rolling.\n\n## Common pitfalls\n\n- **Model bigger than hardware** — swapping to death; size to actual VRAM\u002FRAM.\n- **Default context too small\u002Flarge** — truncated inputs or wasted memory; `num_ctx` per use case.\n- **Cloud prompts on local models** — complex prompts failing on 8B models; simplify, validate outputs.\n- **No output validation** — weaker JSON adherence; schema-validate everything.\n- **Ignoring keep-alive** — cold-start latency on every request; preload hot models.\n- **Unpinned `:latest`** — silent model updates changing behavior; pin versions.\n- **Local-only dogma** — struggling with tasks needing frontier reasoning; hybrid routing.\n- **Embedding mismatch** — different embedding model than the index was built with; keep them paired.\n- **No evals** — assuming parity with cloud models; measure on your tasks.\n- **VRAM contention** — multiple large models fighting; plan concurrent model sets.\n- **CPU offload surprises** — 70B \"running\" at 2 tok\u002Fs; know your throughput requirements.\n- **Secrets in Modelfiles** — API keys baked into shared files; keep secrets out.\n- **Skipping quantization awareness** — tiny quants for quality-critical tasks; match quant to need.\n",{"name":5,"category":24,"description":7},"development","main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-ollama-pro",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill ollama-pro",{"tool":39,"command":40},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill ollama-pro",{"tool":42,"command":43},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill ollama-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-ollama-pro\u002FSKILL.md",true,[],[48,55,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]