Ollama CLI Ask

Ollama CLI (ask) Skill 🦑

cuba6112 35095fc 8 files · 2.7 MB Updated

File contents

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)

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:

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..."

cuba6112/ollama-cli-ask/tree/main/ commit 35095fc7e4

Frequently asked questions

npx skillmds@latest add cuba6112/ollama-cli-ask