local-ai-query

local-ai-query is a skill for Claude Code, Codex from strikersam/autonomous-ai-agency. It costs 36 tokens per session (1,017 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.

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 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,017 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.00036 $0.01017
Opus 5.5 $0.00014 $0.00407
Sonnet 5.5 $0.00007 $0.00203
Haiku 4.5 $0.00004 $0.00102

Measured 1mo ago against content hash 1cdc02e1e031, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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'
harness/skills/local-ai-query/SKILL.md · 131 lines

How it starts

The opening of the file, as written. The whole thing — 131 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 · 131 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. 1mo ago Changed · +4 lines · +36 tokens per session 1cdc02e1e031
  2. 3mo 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 (13 stars, last pushed yesterday), licensed MIT. It adds 36 tokens to every session and 1,017 once invoked, about $0.0001 per session on Opus 5.5. 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.

Related

local-ai-query compared with skills from other repositories

local-ai-query next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
local-ai-querystrikersam/autonomous-ai-agencySkill13yesterdayMITB36Claude Code, Codex
guardrails-ai-setupa5c-ai/babysitterSkill1.9k29d agoMITA30Claude Code
mem0-integrationa5c-ai/babysitterSkill1.9k29d agoMITA27Claude Code
rag-hybrid-searcha5c-ai/babysitterSkill1.9k29d agoMITA28Claude Code
langchain-retrievera5c-ai/babysitterSkill1.9k29d agoMITA19Claude Code
milvus-integrationa5c-ai/babysitterSkill1.9k29d agoMITA17Claude Code
prompt-injection-detectora5c-ai/babysitterSkill1.9k29d agoMITA16Claude Code