local-ai-query

local-ai-query is a skill for Claude Code, Codex from strikersam/autonomous-ai-agency. It costs 0 tokens per session (972 once invoked), scanned B, original, MIT.

A guide for sending prompts to Ollama, a tool that runs AI models on your own computer, instead of cloud AI services.

In plain words
What is it for?
Use it to check a local Ollama setup, choose a model for coding, chat, summaries, or embeddings, and start the required Docker services when needed.
Why use it?
It helps keep sensitive code or data on the machine and supports offline work or lower-cost experimentation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to check a local Ollama setup, choose a model for coding, chat, summaries, or embeddings, and start the required Docker services when needed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/strikersam/autonomous-ai-agency/local-ai-query
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add strikersam/autonomous-ai-agency --skill local-ai-query
Clone the repo
git clone --depth 1 https://github.com/strikersam/autonomous-ai-agency

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for local-ai-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/strikersam/autonomous-ai-agency/local-ai-query/github.svg)](https://agentmods.dev/skills/strikersam/autonomous-ai-agency/local-ai-query)
Your own site
<a href="https://agentmods.dev/skills/strikersam/autonomous-ai-agency/local-ai-query"><img src="https://agentmods.dev/badge/skills/strikersam/autonomous-ai-agency/local-ai-query/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for local-ai-query

Your own site · 80×15
<a href="https://agentmods.dev/skills/strikersam/autonomous-ai-agency/local-ai-query"><img src="https://agentmods.dev/badge/skills/strikersam/autonomous-ai-agency/local-ai-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 972 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00972
Opus 5 $0.00000 $0.00486
Sonnet 5 $0.00000 $0.00194
Haiku 4.5 $0.00000 $0.00097

Measured 12d ago against content hash fb09dc083805, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

local-ai-query scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

r = requests.post("http://localhost:11434/api/embeddings",

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s http://localhost:11434/api/tags | jq '.models[].name'
.agents/skills/local-ai-query/SKILL.md · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: local-ai-query

Purpose

Route prompts to a locally running Ollama instance instead of cloud AI APIs. Use this for privacy-sensitive tasks, offline work, or cost reduction. Pairs with the Docker stack in docker/local-ai-stack/.

When to Use

  • Processing sensitive/proprietary code or data that shouldn't leave the machine
  • Offline or air-gapped environments
  • Rapid iteration where cloud latency matters
  • Cost-conscious experimentation with large prompts

Prerequisites

  • Ollama running locally (see docker/local-ai-stack/README.md)
  • At least one model pulled: docker exec ollama ollama pull llama3.2:latest

Steps

1. Verify Ollama is available

curl -s http://localhost:11434/api/tags | jq '.models[].name'

If this fails, start the stack: cd docker/local-ai-stack && docker compose up -d

2. Choose appropriate model

Task Recommended Model
Code generation deepseek-coder-v2:latest or codellama:latest
General chat llama3.2:latest
Summarization llama3.2:latest
Embeddings/RAG nomic-embed-text:latest
Fast/small phi3:mini

Pull a model if needed:

docker exec ollama ollama pull <model-name>

3. Send query to local model

Simple generation:

curl http://localhost:11434/api/generate \
  -d '{
    "model": "llama3.2:latest",
    "prompt": "<YOUR_PROMPT>",
    "stream": false
  }' | jq -r .response

Chat format (multi-turn):

curl http://localhost:11434/api/chat \
  -d '{
    "model": "llama3.2:latest",
    "messages": [
      {"role": "user", "content": "<YOUR_MESSAGE>"}
    ],
    "stream": false
  }' | jq -r '.message.content'

With system prompt:

curl http://localhost:11434/api/chat \
  -d '{
    "model": "llama3.2:latest",
    "messages": [
      {"role": "system", "content": "You are a senior software engineer. Be concise and technical."},
      {"role": "user", "content": "<YOUR_MESSAGE>"}
    ],
    "stream": false
  }' | jq -r '.message.content'

Read the full file on GitHub · 127 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 127 lines · 0 tokens per session scan B fb09dc083805

Subscribe to this mod's changes

local-ai-query is a skill published in the GitHub repository strikersam/autonomous-ai-agency (8 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 972 tokens. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.