gemma4-local

gemma4-local is a skill for Claude Code from DDS-Solutions/AI-TadPole-OS. It costs 36 tokens per session (613 once invoked), scanned A, original, MIT.

A set of guidelines for sending prompts and tool calls to local Gemma 4 language models.

In plain words
What is it for?
Building prompt templates, handling conversation control tokens, and troubleshooting raw model-server interactions.
Why use it?
It helps avoid formatting errors, token mismatches, and accidental exposure of internal reasoning when using a local model.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Good fit Building prompt templates, handling conversation control tokens, and troubleshooting raw model-server interactions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dds-solutions/ai-tadpole-os/gemma4-local
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 DDS-Solutions/AI-TadPole-OS --skill gemma4-local
Clone the repo
git clone --depth 1 https://github.com/DDS-Solutions/AI-TadPole-OS

Made for: Claude Code.

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 gemma4-local

README.md
[![agentmods](https://agentmods.dev/badge/skills/dds-solutions/ai-tadpole-os/gemma4-local/github.svg)](https://agentmods.dev/skills/dds-solutions/ai-tadpole-os/gemma4-local)
Your own site
<a href="https://agentmods.dev/skills/dds-solutions/ai-tadpole-os/gemma4-local"><img src="https://agentmods.dev/badge/skills/dds-solutions/ai-tadpole-os/gemma4-local/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 gemma4-local

Your own site · 80×15
<a href="https://agentmods.dev/skills/dds-solutions/ai-tadpole-os/gemma4-local"><img src="https://agentmods.dev/badge/skills/dds-solutions/ai-tadpole-os/gemma4-local.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 613 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00613
Opus 5 $0.00018 $0.00307
Sonnet 5 $0.00007 $0.00123
Haiku 4.5 $0.00004 $0.00061

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

Security

Grade A, and why

gemma4-local 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 6d 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.

.agent/skills/gemma4-local/SKILL.md · 63 lines

What it actually says

[!IMPORTANT] AI Context & Knowledge Heritage

  • Subsystem: Agent Skills Registry / gemma4-local
  • Architecture: @docs ARCHITECTURE:Documentation
  • Failure Path: Token mismatch, raw thought leakage, or invalid tool string delimiters.
  • Observability: Traceability via execution/parity_guard.py ([SKILL:GEMMA4])

Gemma 4 (gemma4) Local Model Interaction Protocol

Target Model Identifier: Explicitly formatted as gemma4 (no spaces/hyphens).


🎯 Progressive Disclosure & L3 Reference Index

Read REQUIRED core token rules below; consult deep L3 Reference Guides on demand:

L3 Reference Guide Purpose Trigger / When to Load
references/prompt_templates_and_examples.md Multi-turn dialogue transcripts, raw tool JSON syntax, edge-case delimiters Custom local server templates & raw token debugging

1. Dialogue & Reasoning Control Tokens

Control Token Purpose Positioning / Scope
`< turn>system...<turn >`
`< think >`
`< channel>thought...<channel >`
`< turn>user/< turn>model`

2. Tool & Function Calling Tokens

Token Pair Function
`< tool>...<tool
`< tool_call>...<tool_call
`< tool_response>...<tool_response

[!IMPORTANT] String Delimiter Policy: Use <|"|> for all string literals inside tool blocks (e.g. {path:<|"|>server-rs/src/main.rs<|"|>}).


3. Standard Sampling Parameters

{
  "temperature": 1.0,
  "top_p": 0.95,
  "top_k": 64
}
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 63 lines · 36 tokens per session scan A f58e1b26872e

Subscribe to this mod's changes

gemma4-local is a skill published in the GitHub repository DDS-Solutions/AI-TadPole-OS (8 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 613 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

prompt-cache-optimizer

Audit and optimize Pisper system-prompt and tool-schema token overhead while preserving stable prompt-cache prefixes, permissions, and runtime behavior. Invoke only for explicit prompt or tool-context optimization work.

ling-kong-ran/pisper · 42 tokens

v4-best-practices

Use when working with deepseek-v4-pro or deepseek-v4-flash in thinking mode on multi-step or plan-driven tasks. Provides rules to prevent stale references, unverified plan assumptions, and vague plan output.

Hmbown/CodeWhale · 51 tokens

ax-gen

This skill helps an LLM generate correct AxGen code using @ax-llm/ax. Use when the user asks about ax(), AxGen, generators, forward(), streamingForward(), validation, assertions, streaming assertions, field processors, step hooks, self-tuning, or structured outputs. For MCP clients, transports, prompts, resources…

ax-llm/ax · 86 tokens

ax-signature

This skill helps an LLM generate correct DSPy signature code using @ax-llm/ax. Use when the user asks about signatures, s(), f(), field types, string syntax, fluent builder API, validation constraints, or type-safe inputs/outputs.

ax-llm/ax · 57 tokens

ax-llm

This skill helps with using the @ax-llm/ax TypeScript library for building LLM applications. Use when the user asks about ax(), ai(), f(), s(), agent(), flow(), AxGen, AxAgent, AxFlow, signatures, streaming, or mentions @ax-llm/ax.

ax-llm/ax · 68 tokens

ax-playbook

This skill helps an LLM generate correct playbook code using @ax-llm/ax. Use when the user asks about playbook(), AxPlaybook, context playbooks, evolving context, ACE / Agentic Context Engineering, agent.playbook(), or growing/applying task knowledge offline and online with evolve() and update().

ax-llm/ax · 70 tokens