Agent skill

Gemma Dev

by google-gemma in google-gemma/gemma-skills

Trigger this skill when building applications with Gemma or for general knowledge inquiries related to Gemma models (e.g.

Apache-2.0Auto-check passedAI & LLM Engineering

Install Gemma Dev

skills CLI
$ npx skills add google-gemma/gemma-skills --skill gemma-dev -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install google-gemma/gemma-skills gemma-dev --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/google-gemma/gemma-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/gemma-dev .claude/skills/gemma-dev && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gemma-dev
GitHub stars
1k
Token cost
~2.3k tokens
SKILL.md length
917 words
Files
4 (incl. assets)
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

Trigger this skill when building applications with Gemma or for general knowledge inquiries related to Gemma models (e.g.

  • Works in 6 steps: Core Principle: Prioritize App Tooling → Model Selection Guide → Deployment Workflows → …
  • This skill when building applications with Gemma
  • SKILL.md covers 1. Core Principle: Prioritize…, 2. Model Selection Guide, 3. Deployment Workflows and 4. Speed Up Inference with…, plus 2 more sections
  • Runs Python and JavaScript scripts from its folder; calls npm and pip; reaches ai.google.dev

What it does

Gemma Dev is an agent skill from google-gemma/gemma-skills. Trigger this skill when building applications with Gemma or for general knowledge inquiries related to Gemma models (e.g. prompt structure, capabilities). Covers model selection, development workflows, and deployment best practices.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including assets (for example `assets/gradio-app.py`, `assets/transformers-js-app.js` and `assets/vertex-ai-app.py`).

It sits in AI & LLM Engineering, covering Deployment. The repository describes itself as: Skills for the Gemma and model/agent interactions. The licence is Apache-2.0.

When your agent uses it

  • This skill when building applications with Gemma
  • For general knowledge inquiries related to Gemma models (e.g

Example prompts

  • “/gemma-dev”

Requirements

  • Python 3
  • Node.js

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Core Principle: Prioritize App Tooling
  2. Model Selection Guide
  3. Deployment Workflows
  4. Speed Up Inference with Multi-Token Prediction (MTP)
  5. Quantization-Aware Training (QAT)
  6. Documentation Lookup

What it can do on your machine

Read from SKILL.md and the folder at commit f86bcc6. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python and JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • npm
    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • ai.google.dev

    Also links to:

    • ollama.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gemma Dev loads about 2.3k tokens when it runs. Until then it costs about 61 tokens; SKILL.md has 917 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~61
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from google-gemma/gemma-skills at commit f86bcc6, republished under its Apache-2.0 licence (© google-gemma). 917 words, ~2,312 tokens.

Download SKILL.mdSave it as .claude/skills/gemma-dev/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
gemma-dev
description
Trigger this skill when building applications with Gemma or for general knowledge inquiries related to Gemma models (e.g. prompt structure, capabilities). Covers model selection, development workflows, and deployment best practices.

Gemma Development Skill

1. Core Principle: Prioritize App Tooling

DO NOT generate raw PyTorch, TensorFlow, or transformers code unless the user explicitly asks for "Training," "Fine-tuning," or "Research." Always default to high-level frameworks, SDKs, and tooling optimized for application development.

2. Model Selection Guide

CRITICAL: Do not blindly default to gemma-3-1b-it. You must analyze the user's specific domain, technical constraints, and required input modalities to recommend the exact right fit. When recommending standard models, strictly default to the Gemma 4 generation. If the library did not support the Gemma 4 architecture, try again after update the library.

Core Gemma Models

All Gemma 4 models feature Thinking Mode, enabling advanced reasoning to process complex logic, math, and multi-step problems before generating a response.

  • Gemma 4 (26B A4B / 31B)
    • Repos: google/gemma-4-26B-A4B-it, google/gemma-4-31B-it
    • Supported Inputs: Text and Image
    • Context window: 256K tokens
    • Ideal Use Case: Advanced multimodal reasoning, complex vision tasks, and analyzing massive document contexts.
    • Note: The 26B A4B utilizes a highly efficient Mixture-of-Experts for fast, heavy-weight reasoning, alongside the dense 31B variant.
  • Gemma 4 (12B)
    • Repos: google/gemma-4-12B-it
    • Supported Inputs: Text, Image, Audio
    • Context window: 256K tokens
    • Ideal Use Case: Multimodal reasoning (including audio), inference in laptops, and consumer devices.
  • Gemma 4 (E2B / E4B)
    • Repos: google/gemma-4-E2B-it, google/gemma-4-E4B-it
    • Supported Inputs: Text, Image, Audio
    • Context window: 128K tokens
    • Ideal Use Case: Mobile NPU acceleration; on-device workflows explicitly requiring native audio processing alongside robust reasoning.
Legacy & Lightweight Models (Gemma 3)
  • Gemma 3 (4B / 12B / 27B)
    • Repos: google/gemma-3-4b-it, google/gemma-3-12b-it, google/gemma-3-27b-it
    • Supports Text and Image inputs with a 128K context window. Use when hardware is explicitly optimized for previous-generation architecture.
  • Gemma 3 (270M / 1B)
    • Repos: google/gemma-3-270m-it, google/gemma-3-1b-it
    • Supports Text-only inputs with a 32K context window. Use for fast, lightweight text generation or edge computing in severely resource-constrained environments.
Task-Specific Variants

Route users to purpose-built variants rather than forcing a standard model to perform highly specialized workflows.

  • RAG / Vector Search: Use EmbeddingGemma 2
    • Repo: google/embeddinggemma-2
    • This dedicated embedder supports up to 8k tokens with flexible output dimensions (128 to 768). Fetch EmbeddingGemma 2 model card for the best practice.
  • Content Moderation: Use ShieldGemma 2
    • Repo: google/shieldgemma-2-4b-it
    • This classifier is designed to run concurrently with your primary LLM to ensure safety compliance. Fetch ShieldGemma 2 model card for the best practice.

3. Deployment Workflows

Map the user's deployment goals to the correct tooling stack and best practices.

  • Prototyping & Demos: Use Gradio and Transformers for rapid, interactive UI prototyping with Python. Follow the [assets/gradio-app.py] best practice.
  • Web & Client Applications: Use transformers.js to run inference directly on-device or entirely in the browser. Follow the [assets/transformers-js-app.js] best practice. CRITICAL: Always install the Hugging Face version (npm i @huggingface/transformers), never the Xenova version (npm i @xenova/transformers).
  • Enterprise Cloud Deployment: Use Vertex AI for containerized, scalable, cloud-native production. Follow the [assets/vertex-ai-app.py] best practice. This requires setting the environment variables GOOGLE_CLOUD_PROJECT, GOOGLE_CLOUD_LOCATION (e.g., us-central1), and GOOGLE_CLOUD_ENDPOINT_ID.
  • Apple Silicon (MLX): Recommend MLX when the user is on Mac Apple Silicon hardware. These configurations are optimized primarily for Text workflows.
    • Easy Path: Use Ollama with model tags like gemma4:26b or gemma4:31b.
    • Advanced Path: Use the mlx-lm package (pip install mlx-lm) for direct control, custom quantization, and fine-tuning (LoRA/QLoRA) via mlx_lm.lora.
    • For more details, follow the MLX integration guide.
Show full SKILL.md (386 more words)Show less

4. Speed Up Inference with Multi-Token Prediction (MTP)

When the user needs faster inference or lower latency, recommend Multi-Token Prediction (MTP) — Gemma 4's built-in speculative decoding technique. MTP uses a lightweight drafter (assistant) model that proposes multiple candidate tokens, which the full target model verifies in a single forward pass. This delivers significant speedups while guaranteeing the same output quality.

Assistant Model Repos

Each Gemma 4 target model has a corresponding assistant model. The naming convention is <target-model-id>-assistant:

  • Repos:
    • google/gemma-4-E2B-it-assistant
    • google/gemma-4-E4B-it-assistant
    • google/gemma-4-12B-it-assistant
    • google/gemma-4-31B-it-assistant
    • google/gemma-4-26B-A4B-it-assistant

Fetch MTP overview and MTP with Transformers for the best practice.

5. Quantization-Aware Training (QAT)

For deployments requiring maximum efficiency with minimal quality compromise, Gemma offers official Quantization-Aware Training (QAT) models. Unlike standard Post-Training Quantization (PTQ) which compresses a fully trained model and can lead to quality degradation, QAT integrates quantization simulation into the training process itself.

Recommend QAT models based on the target deployment engine:

  • llama.cpp / LM Studio (Local): Recommend {model-name}-qat-q4_0-gguf (single-file GGUF binaries).
  • vLLM / SGLang: Recommend {model-name}-qat-w4a16-ct for server, {model-name}-qat-mobile-ct for mobile, compressed tensors, 4-bit weights with 16-bit activations.
  • Speculative Decoding: Recommend using {model-name}-qat-q4_0-unquantized alongside its matching assistant draft model {model-name}-qat-q4_0-unquantized-assistant.
  • Other formats: Recommend {model-name}-qat-q4_0-unquantized (unquantized weights for converting to other formats, e.g. MLX).
  • Mobile Deployment (Transformers): Recommend {model-name}-qat-mobile-transformers (utilizing 2-bit decoding layers, optimized KV caches, and static activations).

Official Hugging Face collections:

  • collections/google/gemma-4-qat-q4_0: Contains -unquantized/-assistant (E2B, E4B, 12B, 26B A4B, 31B), -gguf (E2B, E4B, 12B, 26B A4B, 31B), and -w4a16-ct (E2B, E4B, 12B, 31B).
  • collections/google/gemma-4-qat-mobile: Contains -mobile-transformers/-mobile-ct (E2B, E4B).

6. Documentation Lookup

When MCP is Installed (Preferred)

If the search_documentation tool (from the Google MCP server) is available, use it as your only documentation source:

  1. Call search_documentation with your query
  2. Read the returned documentation
  3. Trust MCP results as source of truth for API details — they are always up-to-date.

[!IMPORTANT] When MCP tools are present, never fetch URLs manually. MCP provides up-to-date, indexed documentation that is more accurate and token-efficient than URL fetching.

When MCP is NOT Installed (Fallback Only)

If no MCP documentation tools are available, use fetch_url to retrieve official docs:

  1. Fetch the Index URL (https://ai.google.dev/gemma/docs/llms.txt) to discover available pages.
  2. Fetch specific pages as needed. Key reference pages include:

© google-gemma, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (assets) in skills/gemma-dev of google-gemma/gemma-skills.

  • SKILL.md
  • assets/gradio-app.py
  • assets/transformers-js-app.js
  • assets/vertex-ai-app.py

Open the folder on GitHubat commit f86bcc6

Compare with similar skills

Gemma Dev next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gemma Dev compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gemma Dev this skillgoogle-gemma/gemma-skills1k—~2.3kAutomated safety check: PassApache-2.0
SageMaker Serving Image Selectionhuggingface/skills11k1 repos~4.6kAutomated safety check: PassApache-2.0
Google Agents CLI Adk Codepifferologo/cloud-agents-cli1291 repos~768Automated safety check: PassApache-2.0
Aqua CLIoracle/accelerated-data-science125—~2.1kAutomated safety check: PassUPL-1.0
Nemotron Nano3NVIDIA-NeMo/Nemotron2.1k—~1.9kAutomated safety check: PassApache-2.0
Testing Builder Deploymichaelshimeles/adam109—~813Automated safety check: NotesNone

Similar skills

  • Official

    Chooses the right serving container and current image URI for deploying a Hugging Face model to a SageMaker endpoint, preferring Hugging Face images over generic ones.

    11k GitHub starsUsed in 1 repo~4.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Google Agents CLI Adk Code

    pifferologo/cloud-agents-cli

    This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state management", or needs ADK (Agent…

    129 GitHub starsUsed in 1 repo~768 tokens
    AI & LLM EngineeringAuto-check passed
  • Aqua CLI

    oracle/accelerated-data-science

    Official

    Complete CLI reference for the ADS AQUA command-line interface (ads aqua).

    125 GitHub stars~2.1k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Nemotron Nano3

    NVIDIA-NeMo/Nemotron

    Reference desk for Nemotron 3 Nano / Llama-Nemotron Nano 3 — architecture, training data, recipes, evaluation, quantization, deployment.

    2.1k GitHub stars~1.9k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • Testing Builder Deploy

    michaelshimeles/adam

    Test adam's agent builder (platform/) end-to-end — builder form, deploy pipeline, and the deployed eve-style agent page.

    109 GitHub stars~813 tokensUpdated 2 mo ago
    AI & LLM EngineeringAuto-check: notes
  • Official

    Entry point for hosting a model on Amazon SageMaker: asks a few questions, picks a deployment pathway and hands off to the specialist skills.

    11k GitHub starsUsed in 1 repo~2.1k tokens
    AI & LLM EngineeringAuto-check passed

More from google-gemma/gemma-skills

  • Gemma Trainer

    google-gemma/gemma-skills

    Trigger this skill when the user wants to train, fine-tune, or adapt Gemma models (e.g.

    1k GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed

Questions about Gemma Dev

What does Gemma Dev do?

Trigger this skill when building applications with Gemma or for general knowledge inquiries related to Gemma models (e.g. Gemma Dev is an agent skill from google-gemma/gemma-skills.g.

When should I use Gemma Dev?

Gemma Dev fits situations like: this skill when building applications with Gemma; for general knowledge inquiries related to Gemma models (e.g.

How do I install Gemma Dev in Claude Code?

Run `npx skills add google-gemma/gemma-skills --skill gemma-dev -a claude-code`. Or copy the skill folder (skills/gemma-dev in google-gemma/gemma-skills) into .claude/skills/gemma-dev in your project. Claude Code loads it when a task matches its description.

How do I install Gemma Dev in Codex?

Run `npx skills add google-gemma/gemma-skills --skill gemma-dev -a codex`. Or copy the skill folder (skills/gemma-dev in google-gemma/gemma-skills) into .agents/skills/gemma-dev in your project. Codex loads it when a task matches its description.

Can I use Gemma Dev in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add google-gemma/gemma-skills --skill gemma-dev -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gemma-dev, .gemini/skills/gemma-dev, .github/skills/gemma-dev and .opencode/skills/gemma-dev in your project.

What does Gemma Dev need to run?

Going by SKILL.md and its folder, Gemma Dev needs Python and JavaScript for the scripts in its folder and the command-line tools its instructions call (npm and pip). Our summary lists: Python 3; Node.js.

Does Gemma Dev access the network?

SKILL.md names 2 domains. In commands or code: ai.google.dev; the agent is likely to contact it when it follows the instructions. As links in the text: ollama.com. This is read from the text; nothing was executed.

Is Gemma Dev safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gemma Dev use?

Gemma Dev is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gemma Dev use?

About 2.3k tokens (SKILL.md is roughly 9.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gemma Dev?

Skills that share tags, products or a category with Gemma Dev: SageMaker Serving Image Selection (huggingface/skills, 11k stars), Google Agents CLI Adk Code (pifferologo/cloud-agents-cli, 129 stars), Aqua CLI (oracle/accelerated-data-science, 125 stars) and Nemotron Nano3 (NVIDIA-NeMo/Nemotron, 2.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gemma Dev?

google-gemma (a GitHub organization) maintains it in google-gemma/gemma-skills, which has 1,004 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 6, 2026.

Source: google-gemma/gemma-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.