Skip to main content
skill CX Codex

gemma-gem-browser-ai — Claude Code skill: setup and architecture

Guides building and customizing Gemma Gem, an on-device Chrome extension running Gemma 4 through WebGPU with zero cloud calls.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add reason-machines/trending-skills --skill gemma-gem-browser-ai -a claude-code
Open on GitHub

What gemma-gem-browser-ai does

This skill guides developers through developing Gemma Gem, a Chrome extension that processes Google's Gemma 4 locally. Inference executes via WebGPU inside the user browser. The extension embeds an on-page assistant capable of reading DOM nodes and typing into inputs privately.

Work is split across three distinct contexts. An offscreen document handles ONNX execution through @huggingface/transformers alongside the decision loop. The background service worker routes events, while injected content scripts render the interface and manipulate page elements.

Building the codebase requires Node.js 18+ and pnpm. Running the model needs an initial download of roughly 500 MB for the default checkpoint, so a network connection is mandatory before offline usage works.

What it helps with

  • build an in-browser assistant powered by local Gemma 4 weights
  • add custom DOM or background tools to the agent loop
  • compile development or production extension bundles using pnpm
  • run LLM function calling directly in Chrome without cloud endpoints

Example prompts for the agent

  • Show me how to add a custom scraping tool to Gemma Gem
  • Explain how to compile and load the Gemma Gem extension in Chrome
  • How do I wire a new content script tool into the agent loop?

How to install gemma-gem-browser-ai

1Skills CLI (Vercel)

npx skills add reason-machines/trending-skills --skill gemma-gem-browser-ai -a claude-code

2Manually: put the files in place

~/.claude/skills/gemma-gem-browser-ai/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/gemma-gem-browser-ai/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about gemma-gem-browser-ai

How to install gemma-gem-browser-ai in Claude Code?

Run npx skills add reason-machines/trending-skills --skill gemma-gem-browser-ai -a claude-code. The skill instructions will be stored in ~/.claude/skills/gemma-gem-browser-ai/SKILL.md.

What prerequisites are needed to compile Gemma Gem?

You need Node.js 18 or newer and pnpm. Your Chrome setup must also support WebGPU to run the model locally.

How are Gemma 4 models downloaded and stored?

Download starts when launching the chat UI for the first time. The extension saves files to browser cache storage, taking ~500 MB for the standard 2B model or ~1.5 GB for the 4B variant.

Similar skills

All skills for AI and ML →

From the same set186

cabinet-ai-knowledge-base This skill sets up Cabinet, a self-hosted knowledge base and startup OS with markdown pages, agents that keep memory, cron jobs and embedded HTML apps. CX Codex +1 607installs binance-futures-signal-bot A skill that walks your agent through setting up a futures trading bot for Binance, Bybit and OKX, fed by Telegram, TradingView or a custom API. CX Codex +1 600installs karpathytalk-community A skill that walks you through running KarpathyTalk, an open developer social network built on Go and SQLite, and calling its API. CX Codex +1 597installs x-mentor-skill-nuwa A skill that turns six creators' methods and open-source algorithm data into concrete advice on hooks, threads and account growth. CX Codex +1 594installs claude-skill-app-onboarding-questionnaire Reads your app codebase and generates a questionnaire-style onboarding flow: copy, screen designs and working code in your framework. CX Codex +1 582installs gemma-tuner-multimodal Fine-tunes Gemma 4 and 3n models on Apple Silicon hardware with PyTorch MPS. Adapts weights for audio, vision, and text via LoRA. CX Codex +1 581installs tailslayer-dram-hedged-reads Guides coding assistants in setting up C++ hedged reads across DRAM channels. It helps eliminate memory tail latency caused by periodic DRAM refresh pauses. CX Codex +1 580installs bluehammer-vulnerability-poc A skill that walks the agent through the BlueHammer repo: building the C exploit, running it, and reading the vulnerability code. For isolated labs only. CX Codex +1 570installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor