ollama-review

ollama-review is a skill for Claude Code from Lykhoyda/ask-llm. It costs 61 tokens per session (388 once invoked), scanned A, original, MIT.

A skill that asks a locally running Ollama language model to review your current code changes. Ollama runs AI models on your own computer, and the review checks staged, unstaged, and untracked changes.

In plain words
What is it for?
Use it for offline code review, especially when you want prioritized findings about the changes in your working tree.
Why use it?
It provides a local second review without sending the code to an external service or requiring API keys. It also verifies reported problems against the source.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ask-llm plugin — 18 skills, 9 agents, 5 hooks, 1 MCP server shipped together

Good fit Use it for offline code review, especially when you want prioritized findings about the changes in your working tree.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Lykhoyda/ask-llm
Claude Code
/plugin install ask-llm

Made for: Claude Code.

Or install ask-llm, the plugin that ships this one along with the rest of its 18 skills, 9 agents, 5 hooks, 1 MCP server.

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 ollama-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/lykhoyda/ask-llm/ollama-review/github.svg)](https://agentmods.dev/skills/lykhoyda/ask-llm/ollama-review)
Your own site
<a href="https://agentmods.dev/skills/lykhoyda/ask-llm/ollama-review"><img src="https://agentmods.dev/badge/skills/lykhoyda/ask-llm/ollama-review/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 ollama-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/lykhoyda/ask-llm/ollama-review"><img src="https://agentmods.dev/badge/skills/lykhoyda/ask-llm/ollama-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 388 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00061 $0.00388
Opus 5 $0.00030 $0.00194
Sonnet 5 $0.00012 $0.00078
Haiku 4.5 $0.00006 $0.00039

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

Security

Grade A, and why

ollama-review scanned grade A with 0 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 11d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/claude-plugin/skills/ollama-review/SKILL.md · 41 lines

What it actually says

Portable contract

Gather the relevant staged, unstaged, and untracked code changes; build a bounded context brief; request a local Ollama review; verify each reported finding against source; and return only prioritized, source-supported findings. Never imply external data transfer and surface unavailable local models actionably.

Host adapters

Pi adapter

Call the native ask-ollama tool and apply only the Portable contract section of ../../agents/ollama-reviewer.md; ignore that file's frontmatter and Claude Code adapter.

Claude Code adapter

The existing detailed workflow below is the Claude Code adapter. Its Agent, MCP, hook, CLAUDE_PLUGIN_ROOT, and AskUserQuestion mechanics apply only on Claude Code; they do not override the Pi adapter above.

Ollama Code Review

Review current code changes by delegating to the ollama-reviewer agent.

Instructions

  1. Gather the diff to review:

    • Run git diff to get unstaged changes
    • Run git diff --cached to get staged changes
    • Combine both into a single diff
  2. If the diff is empty, inform the user there are no changes to review.

  3. Launch the ollama-reviewer agent with the diff content. The agent handles the Ollama prompt structure and output formatting.

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. 11d ago First seen · 41 lines · 61 tokens per session scan A 6977e2c172e2

Subscribe to this mod's changes

ollama-review is a skill published in the GitHub repository Lykhoyda/ask-llm (18 stars, last pushed 2d ago), licensed MIT. It adds 61 tokens to every session and 388 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

adk-go-self-review

Review an ADK Go change the way a maintainer will — a fresh-context pass over the whole diff, five lenses (correctness and tests, scope, simplicity, style, adk-python parity), and the mutation check that proves your tests pin the change. Use before opening a PR, before any later push that changes code, and when asked…

google/adk-go · 87 tokens

verify-change

A change-checking skill that reviews code differences and checks whether related documentation, tests, and records were updated.

fengshao1227/ccg-workflow · 65 tokens

verify-module

A module-checking skill that scans a project’s folders, code, and documentation. It expects each module to include a README.md and DESIGN.md, which explain how the module is used and why it was designed that way.

fengshao1227/ccg-workflow · 61 tokens

verify-quality

A code-quality checker that measures complexity, size, naming, and common code smells. It reports problems such as duplicated code, unused code, and overly long functions.

fengshao1227/ccg-workflow · 64 tokens

red-team-review

Unified adversarial review: v4.3 Strategic Matrix (MTA-004). 7-phase framework: Priors → Rubric → Adversarial Lenses → SWOT/TOWS → MCDA Decision Engine → Blind Spot/Kill Switch → Executive Summary. Absorbs: bias-detector.

winstonkoh87/Athena-Public · 65 tokens

agtx-review

Self-review completed work. Check for correctness, edge cases, and code quality. Write review to .agtx/review.md and stop.

fynnfluegge/agtx · 32 tokens