#869 by GitHub stars
google-gemma/gemma-skills
Skills for the Gemma and model/agent interactions
History
Review weekly changes to SKILL.md before updating. Dates mark the weeks in which we observed each version; checks apply to the recorded commits.
View weekly changes
skills/gemma-dev/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
5aee63beeed3 → 5aee63beeed3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → 5aee63beeed3
No earlier version was observed for comparison.
skills/gemma-trainer/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
5aee63beeed3 → 5aee63beeed3
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → 5aee63beeed3
No earlier version was observed for comparison.
Heat
1.2- Star growth, last 7 daysAhead of 6% of tracked repositories
- Star growth, last 24 hoursAhead of 3% of tracked repositories
- Rank movement, last 7 daysAhead of 4% of tracked repositories
- Commits, last 30 daysAhead of 67% of tracked repositories
- Accounts asking about it through MCP, last 7 daysNot available
- Hot votes this weekAhead of 0% of tracked repositories
Heat never changes the order by stars, and sponsorship never touches it. How heat works
Stars over time
Individual skills in this repository
- gemma-dev
skills/gemma-dev - gemma-trainer
skills/gemma-trainer
How it works
gemma-dev
When your agent uses it
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.
What it loads into context
Frontmatter
48 tokensAlways available to the agent
SKILL.md
2,517 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- 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
Scripts executed separately
assets/gradio-app.pyassets/transformers-js-app.jsassets/vertex-ai-app.py
Files
SKILL.mdcore9,448 bytesSKILL.mdcore9,448 bytesassets/gradio-app.pyruns1,977 bytesassets/transformers-js-app.jsruns2,277 bytesassets/vertex-ai-app.pyruns1,716 bytes
Read SKILL.md
# 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, strictlyView the complete source on GitHubgemma-trainer
When your agent uses it
Trigger this skill when the user wants to train, fine-tune, or adapt Gemma models (e.g. SFT, DPO, RLHF, Reward Modeling) on local hardware. Covers TRL, Unsloth, dataset preparation, validation, and GGUF/LiteRT conversion.
What it loads into context
Frontmatter
69 tokensAlways available to the agent
SKILL.md
2,242 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- 1. Core Principles: Local Fine-Tuning Setup
- 2. Choosing the Right Training Method
- 3. Dataset Preparation & Validation
- 4. Fine-Tuning Workflows
- 5. Multimodal Fine-Tuning (Vision & Audio)
- 6. Post-Training & Deployment Utilities
Scripts executed separately
assets/dataset_prep.pyassets/distill_dataset.pyassets/dpo_train.pyassets/reward_train.pyassets/sft_train.py
Files
SKILL.mdcore8,767 bytesSKILL.mdcore8,767 bytesassets/dataset_prep.pyruns17,746 bytesassets/distill_dataset.pyruns18,430 bytesassets/dpo_train.pyruns9,984 bytesassets/reward_train.pyruns6,041 bytesassets/sft_train.pyruns14,692 bytes
Read SKILL.md
# Gemma Training and Fine-Tuning Skill
## 1. Core Principles: Local Fine-Tuning Setup
When training locally, memory efficiency and execution speed are huge. Always
guide the user to follow these best practices:
* **Prioritize Unsloth**: For local single-GPU training, always recommend
**Unsloth**. It supports Gemma 4 natively, uses up to 70% less memory, and
is up to 2x faster than standard Hugging Face PEFT training.
* **Fall Back to TRL**: For multi-GPU environments (using DDP/FSDP) or when
Unsloth is unavailable, use Hugging Face **TRL** (`SFTTrainer`,
`DPOTrainer`) coupled with **PEFT** and **bitsandbytes** (for QLoRA).
* **Always use QLoRA (4-bit Quantization)**: Crucial for fitting Gemma modelsView the complete source on GitHubSkills included
- gemma-dev
- gemma-trainer
Repository facts
- License
- Apache-2.0
- Created
- Apr 1, 2026
- Last pushed
- Oct 28, 2026
- Forks
- 85
- Open issues
- 5
- Project activity
- Active
Rank over the last 12 weeks
Now #869 · best #584 · down 130 in 30 days
- #850 on Nov 1
- #853 on Nov 2
- #860 on Nov 3
- #863 on Nov 4
- #868 on Nov 5
- #869 since Nov 6
55 earlier periods
- #595 on Aug 2
- #573 on Aug 7
- #561 on Aug 8
- #565 on Aug 9
- #591 on Aug 10
- #595 on Aug 11
- #590 on Aug 12
- #601 on Aug 13
- #597 on Aug 14
- #579 on Aug 15
- #592 on Aug 16
- #616 on Aug 18
- #604 on Aug 19
- #603 on Aug 20
- #608 on Aug 21
- #584 on Aug 22
- #612 on Aug 23
- #620 on Aug 24
- #629 on Aug 25
- #623 on Aug 27
- #641 on Aug 28
- #599 on Aug 29
- #628 from Sep 2 to Sep 3
- #609 on Sep 4
- #602 on Sep 5
- #614 on Sep 6
- #642 on Sep 10
- #635 on Sep 12
- #660 on Sep 16
- #647 on Sep 20
- #666 on Sep 21
- #677 on Sep 22
- #634 on Sep 26
- #664 on Sep 27
- #713 on Sep 29
- #654 on Oct 1
- #663 on Oct 2
- #682 on Oct 5
- #688 on Oct 6
- #698 on Oct 7
- #739 on Oct 8
- #710 on Oct 9
- #691 on Oct 11
- #712 on Oct 13
- #723 on Oct 14
- #721 on Oct 16
- #699 on Oct 17
- #730 on Oct 19
- #733 on Oct 23
- #698 on Oct 24
- #829 on Oct 25
- #837 on Oct 28
- #841 on Oct 29
- #844 on Oct 30
- #849 on Oct 31
Before you install
Network or broad shellAutomated signals, not a guarantee
Checked Nov 4, 2026
Not fully analyzed: some files were too long, unreadable or missing. This never lowers the level.
Show 2 notes
skills/gemma-dev/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/gemma-trainer/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzed
- No broad tool permissions
- No dangerous shell commands
- 47 network referencesin 4 files: gemma-dev/SKILL.md:70 gemma-trainer/assets/distill_dataset.py:16 gemma-trainer/SKILL.md:218 and 1 more
- No hidden or obfuscated text
- No instruction overrides
- 8 executable scriptsin 8 files: gemma-dev/assets/gradio-app.py:1 gemma-dev/assets/transformers-js-app.js:1 gemma-dev/assets/vertex-ai-app.py:1 and 5 more
- 3 references to secretsin 1 file: gemma-dev/assets/vertex-ai-app.py:8
- No requests to vote in Hot
Show all 58 signals by file
skills/gemma-dev/SKILL.md
- Network accessline 70
- This dedicated embedder supports up to 8k tokens with flexible output dimensions (128 to 768). Fetch [EmbeddingGemma 2 model card](https://gemma.ai/models/embeddinggemma/model-card-v2.md.txt) - Network accessline 71
dimensions (128 to 768). Fetch [EmbeddingGemma 2 model card](https://gemma.ai/models/embeddinggemma/model-card-v2.md.txt) for the best practice. - Network accessline 72
[EmbeddingGemma 2 model card](https://gemma.ai/models/embeddinggemma/model-card-v2.md.txt) - Network accessline 76
- This classifier is designed to run concurrently with your primary LLM to ensure safety compliance. Fetch [ShieldGemma 2 model card](https://gemma.ai/models/shieldgemma/model-card-v2.md.txt) - Network accessline 77
ensure safety compliance. Fetch [ShieldGemma 2 model card](https://gemma.ai/models/shieldgemma/model-card-v2.md.txt) for the best practice. - Network accessline 78
[ShieldGemma 2 model card](https://gemma.ai/models/shieldgemma/model-card-v2.md.txt) - Network accessline 98
hardware. These configurations are optimized primarily for **Text** workflows. - Easy Path: Use [Ollama](https://ollama.com/library/gemma4/tags) with - Network accessline 99
workflows. - Easy Path: Use [Ollama](https://ollama.com/library/gemma4/tags) with model tags like `gemma4:26b` or `gemma4:31b`. - Network accessline 100
- Easy Path: Use [Ollama](https://ollama.com/library/gemma4/tags) with - Network accessline 104
`mlx_lm.lora`. - For more details, follow the [MLX integration guide](https://gemma.ai/deployment/mlx.md.txt). - Network accessline 106
[MLX integration guide](https://gemma.ai/deployment/mlx.md.txt). - Network accessline 129
Fetch [Speed-up Gemma 4 with Multi-Token Prediction](https://gemma.ai/get-started/capabilities/mtp.md.txt) - Network accessline 130
[Speed-up Gemma 4 with Multi-Token Prediction](https://gemma.ai/get-started/capabilities/mtp.md.txt) - Network accessline 186
1. Fetch the Index URL (`https://gemma.ai/llms.txt`) to discover available - Network accessline 190
- [Gemma 4 Best practices](https://gemma.ai/get-started/best-practices.md.txt) - Network accessline 191
- [Gemma 4 Prompt Formatting](https://gemma.ai/get-started/prompt-formatting.md.txt) - Network accessline 192
- [Text generation](https://gemma.ai/get-started/capabilities/text.md.txt) - Network accessline 193
- [Function calling](https://gemma.ai/get-started/capabilities/function-calling.md.txt) - Network accessline 194
- [Image understanding](https://gemma.ai/get-started/capabilities/image.md.txt) - Network accessline 195
- [Audio understanding](https://gemma.ai/get-started/capabilities/audio.md.txt) - Network accessline 196
- [Thinking mode](https://gemma.ai/get-started/capabilities/thinking.md.txt) - Network accessline 197
- [Text Embeddings](https://gemma.ai/models/embeddinggemma/inference.md.txt) - Network accessline 198
- [Multimodal Embeddings](https://gemma.ai/models/embeddinggemma/multimodal.md.txt) - Network accessline 199
- [Speed-up Gemma 4 with Multi-Token Prediction](https://gemma.ai/get-started/capabilities/mtp.md.txt) - Network accessline 200
- [DiffusionGemma](https://gemma.ai/models/diffusiongemma/explained.md.txt)
skills/gemma-dev/assets/gradio-app.py
- Executable scriptline 1
Executable file
skills/gemma-dev/assets/transformers-js-app.js
- Executable scriptline 1
Executable file
skills/gemma-dev/assets/vertex-ai-app.py
skills/gemma-trainer/SKILL.md
- Network accessline 218
Fetch [Saving to GGUF](https://unsloth.ai/docs/basics/inference-and-deployment/saving-to-gguf.md) - Network accessline 219
[Saving to GGUF](https://unsloth.ai/docs/basics/inference-and-deployment/saving-to-gguf.md) - Network accessline 224
If you did not use Unsloth, you can convert your merged Hugging Face model directory manually using [llama.cpp](https://github.com/ggml-org/llama.cpp). - Network accessline 225
directory manually using [llama.cpp](https://github.com/ggml-org/llama.cpp). - Network accessline 230
E4B** on mobile, web, and IoT hardware with hardware acceleration (CPU, GPU, NPU). Fetch [LiteRT-LM guide](https://developers.google.com/edge/litert-lm/models/gemma-4.md.txt) - Network accessline 231
NPU). Fetch [LiteRT-LM guide](https://developers.google.com/edge/litert-lm/models/gemma-4.md.txt) for the best practice. - Network accessline 232
[LiteRT-LM guide](https://developers.google.com/edge/litert-lm/models/gemma-4.md.txt)
skills/gemma-trainer/assets/dataset_prep.py
- Executable scriptline 1
#!/usr/bin/env python3
skills/gemma-trainer/assets/distill_dataset.py
- Executable scriptline 1
#!/usr/bin/env python3 - Network accessline 16
import argparse from collections.abc import Sequence import http.client - Network accessline 17
from collections.abc import Sequence import http.client import importlib - Network accessline 18
import http.client - Network accessline 205
headers = {"Content-Type": "application/json"} req = urllib.request.Request( - Network accessline 206
req = urllib.request.Request( - Network accessline 213
try: with urllib.request.urlopen(req, timeout=120) as response: - Network accessline 214
with urllib.request.urlopen(req, timeout=120) as response: - Network accessline 222
except ( OSError, http.client.HTTPException, - Network accessline 223
OSError, http.client.HTTPException, ValueError, - Network accessline 224
http.client.HTTPException, - Network accessline 577
"--ollama-url", type=str, default="http://localhost:11434", - Network accessline 578
type=str, default="http://localhost:11434", help="URL of the local Ollama service endpoint", - Network accessline 579
default="http://localhost:11434",
skills/gemma-trainer/assets/dpo_train.py
- Executable scriptline 1
#!/usr/bin/env python3
skills/gemma-trainer/assets/reward_train.py
skills/gemma-trainer/assets/sft_train.py
- Executable scriptline 1
#!/usr/bin/env python3
How the signals fit together
Facts from a static read of the files at the pinned commit. They describe what the code does, not why.
Signal confidence: 58 facts
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:70Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:71Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:72Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:76Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:77Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:78Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:98Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:99Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:100Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:104Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:106Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:129Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:130Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:186Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:190Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:191Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:192Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:193Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:194Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:195Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:196Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:197Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:198Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:199Low confidence
- Network access in prose of the SKILL.mdgemma-dev/SKILL.md:200Low confidence
- Executable script in prose of a file that runsgemma-dev/assets/gradio-app.py:1Low confidence
- Executable script in a comment of a file that runsgemma-dev/assets/transformers-js-app.js:1Low confidence
- Executable script in prose of a file that runsgemma-dev/assets/vertex-ai-app.py:1Low confidence
- Access to secrets in code of a file that runs: a variable, placeholder or call, not a stored valuegemma-dev/assets/vertex-ai-app.py:8Low confidence
- Access to secrets in code of a file that runs: a variable, placeholder or call, not a stored valuegemma-dev/assets/vertex-ai-app.py:9Low confidence
- Access to secrets in code of a file that runs: a variable, placeholder or call, not a stored valuegemma-dev/assets/vertex-ai-app.py:10Low confidence
- Network access in prose of the SKILL.mdgemma-trainer/SKILL.md:218Low confidence
- Network access in prose of the SKILL.mdgemma-trainer/SKILL.md:219Low confidence
- Network access in prose of the SKILL.mdgemma-trainer/SKILL.md:224Low confidence
- Network access in prose of the SKILL.mdgemma-trainer/SKILL.md:225Low confidence
- Network access in prose of the SKILL.mdgemma-trainer/SKILL.md:230Low confidence
- Network access in prose of the SKILL.mdgemma-trainer/SKILL.md:231Low confidence
- Network access in prose of the SKILL.mdgemma-trainer/SKILL.md:232Low confidence
- Executable script in code of a file that runsgemma-trainer/assets/dataset_prep.py:1High confidence
- Executable script in code of a file that runsgemma-trainer/assets/distill_dataset.py:1High confidence
- Network access in code of a file that runsgemma-trainer/assets/distill_dataset.py:16High confidence
- Network access in code of a file that runsgemma-trainer/assets/distill_dataset.py:17High confidence
- Network access in code of a file that runsgemma-trainer/assets/distill_dataset.py:18High confidence
- Network access in code of a file that runsgemma-trainer/assets/distill_dataset.py:205High confidence
- Network access in code of a file that runsgemma-trainer/assets/distill_dataset.py:206High confidence
- Network access in code of a file that runsgemma-trainer/assets/distill_dataset.py:213High confidence
- Network access in code of a file that runsgemma-trainer/assets/distill_dataset.py:214High confidence
- Network access in code of a file that runsgemma-trainer/assets/distill_dataset.py:222High confidence
- Network access in code of a file that runsgemma-trainer/assets/distill_dataset.py:223High confidence
- Network access in code of a file that runsgemma-trainer/assets/distill_dataset.py:224High confidence
and 8 more
Works with
| Agent | Status | Evidence | Install to |
|---|---|---|---|
| Claude Code | Compatible | Standard SKILL.md skills/gemma-dev/SKILL.md | .claude/skills/<skill-name>/ |
| Codex | Compatible | Standard SKILL.md skills/gemma-dev/SKILL.md | .agents/skills/<skill-name>/ |
| Cursor | Compatible | Standard SKILL.md skills/gemma-dev/SKILL.md | .cursor/skills/<skill-name>/ |
| Gemini CLI | Compatible | Standard SKILL.md skills/gemma-dev/SKILL.md | .gemini/skills/<skill-name>/ |
| GitHub Copilot | Compatible | Standard SKILL.md skills/gemma-dev/SKILL.md | .github/skills/<skill-name>/ |
| OpenCode | Compatible | Standard SKILL.md skills/gemma-dev/SKILL.md | .opencode/skills/<skill-name>/ |
- Native The repository ships a manifest, folder or frontmatter field for this agent.
- Compatible A standard SKILL.md that this agent can read.
- Unknown No evidence either way.
Derived automatically from paths, manifests and frontmatter. Not tested on each agent.
Explore alternatives and comparisons
Add this badge to your README
It updates every night and links to this page.
[](https://hotskills.dev/skill/google-gemma-gemma-skills/)