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: Ollama CLI (ask) Skill 🦑4---56# Ollama CLI (ask) Skill 🦑78This skill leverages the `ask` CLI tool to interact with local Ollama models. It's faster and more flexible than raw curl requests.910## Features11- **Context-aware:** Remembers conversation history in interactive mode.12- **Piping:** Can ingest file content or command output via stdin.13- **Thinking:** Supports `<think>` tag parsing for reasoning models (DeepSeek, etc).14- **JSON:** reliable JSON output for tool use.1516## Installation (if missing)17```bash18cp ~/clawd/tools/ollama-cli/ask.sh ~/bin/ask19chmod +x ~/bin/ask20```2122## Recommended Models23- **Coding:** `qwen3-coder-next` (Smartest local coder)24- **General:** `llama3.1:8b` (Fast, good generalist)25- **Reasoning:** `deepseek-r1` (if available, use `-t` flag)2627## Examples2829**Summarize a file:**30```bash31cat MEMORY.md | ask "Extract the key user preferences"32```3334**Generate JSON data:**35```bash36ask --json "List 5 sci-fi book titles and authors"37```3839**Complex Reasoning:**40```bash41ask -t "Solve this logic puzzle: Three gods A, B, and C are called..."42```
Run npx skillmds@latest 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.
This skill has not completed SkillMD's automated safety review yet. 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.