cat MEMORY.md | ask "Extract the key user preferences"
Generate JSON data:
ask --json "List 5 sci-fi book titles and authors"
Complex Reasoning:
ask -t "Solve this logic puzzle: Three gods A, B, and C are called..."
1---2name: ollama-cli-ask3description: Use the local 'ask' CLI to interact with Ollama models. Supports one-shot queries, interactive chat, piping context, and JSON output.4purpose: Fast, local LLM inference without cloud costs or latency.5usage: |6 # One-shot7 ask "Question"89 # Pipe context10 cat file.txt | ask "Summarize this"1112 # Interactive13 ask1415 # Specific model16 ask -m qwen3-coder-next "Code me a snake game"1718 # Reasoning/Thinking mode19 ask -t "Think step by step"20parameters:21 - prompt: The prompt to send (optional, enters interactive mode if empty)22 - model: (Optional) Model to use (default: qwen3-coder-next)23 - system: (Optional) System prompt24 - think: (Optional) Enable thinking/reasoning mode25 - json: (Optional) Force JSON output26dependencies:27 - ollama (running)28 - ~/bin/ask (installed CLI)29created: 2026-02-0430metadata:31 source: https://skillmd.com/skills/cuba6112/ollama-cli-ask32---3334# Ollama CLI (ask) Skill 🦑3536This skill leverages the `ask` CLI tool to interact with local Ollama models. It's faster and more flexible than raw curl requests.3738## Features39- **Context-aware:** Remembers conversation history in interactive mode.40- **Piping:** Can ingest file content or command output via stdin.41- **Thinking:** Supports `<think>` tag parsing for reasoning models (DeepSeek, etc).42- **JSON:** reliable JSON output for tool use.4344## Installation (if missing)45```bash46cp ~/clawd/tools/ollama-cli/ask.sh ~/bin/ask47chmod +x ~/bin/ask48```4950## Recommended Models51- **Coding:** `qwen3-coder-next` (Smartest local coder)52- **General:** `llama3.1:8b` (Fast, good generalist)53- **Reasoning:** `deepseek-r1` (if available, use `-t` flag)5455## Examples5657**Summarize a file:**58```bash59cat MEMORY.md | ask "Extract the key user preferences"60```6162**Generate JSON data:**63```bash64ask --json "List 5 sci-fi book titles and authors"65```6667**Complex Reasoning:**68```bash69ask -t "Solve this logic puzzle: Three gods A, B, and C are called..."70```
Run npx get-skill add cuba6112/ollama-cli-ask in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Ollama CLI (ask) Skill 🦑 It is listed under Coding & Dev Tools on SkillMD.
SkillMD's automated safety review verdict for this skill is PASS. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. Capability flags: executes scripts, makes network calls. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
cuba6112 (@cuba6112) published this skill. Their other Agent Skills are listed on their SkillMD profile.