# Ollama CLI Ask

> Ollama CLI (ask) Skill 🦑

- Skill: `cuba6112/ollama-cli-ask` (Agent Skill, multi-file: 8 files)
- Install (CLI): `npx skillmds@latest add cuba6112/ollama-cli-ask`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cuba6112/ollama-cli-ask/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: cuba6112 (https://skillmd.com/u/cuba6112)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/cuba6112/ollama-cli-ask

---


# Ollama CLI (ask) Skill 🦑

This skill leverages the `ask` CLI tool to interact with local Ollama models. It's faster and more flexible than raw curl requests.

## Features
- **Context-aware:** Remembers conversation history in interactive mode.
- **Piping:** Can ingest file content or command output via stdin.
- **Thinking:** Supports `<think>` tag parsing for reasoning models (DeepSeek, etc).
- **JSON:** reliable JSON output for tool use.

## Installation (if missing)
```bash
cp ~/clawd/tools/ollama-cli/ask.sh ~/bin/ask
chmod +x ~/bin/ask
```

## Recommended Models
- **Coding:** `qwen3-coder-next` (Smartest local coder)
- **General:** `llama3.1:8b` (Fast, good generalist)
- **Reasoning:** `deepseek-r1` (if available, use `-t` flag)

## Examples

**Summarize a file:**
```bash
cat MEMORY.md | ask "Extract the key user preferences"
```

**Generate JSON data:**
```bash
ask --json "List 5 sci-fi book titles and authors"
```

**Complex Reasoning:**
```bash
ask -t "Solve this logic puzzle: Three gods A, B, and C are called..."
```

