aradotso avatar

Gemma Gem Browser Ai

This teaches Claude to build and extend Gemma Gem, a Chrome extension that runs Google's Gemma 4 model entirely on-device via WebGPU. No cloud calls, no API keys. The skill covers the three-part architecture (offscreen document for inference, service worker for routing, content script for DOM manipulation), adding new tools to the agent loop, and working with the extractable agent module that defines ModelBackend and ToolExecutor interfaces. You'd use this if you want a browser agent that can read pages, click elements, and execute JavaScript without sending data off-device, or if you're prototyping on-device LLM tooling patterns. The built-in tools are practical (screenshot, form filling, JS execution) and the message routing pattern between contexts is clean enough to steal for other extensions.

skills.sh installs
548
GitHub stars
61
last updated
Jul 14, 2026

Install

$ npx -y skills add aradotso/trending-skills --skill gemma-gem-browser-ai --agent claude-code

Installs into .claude/skills of the current project.

Files

Gemma Gem Browser AI

Skill by ara.so — Daily 2026 Skills collection.

Gemma Gem is a Chrome extension that runs Google's Gemma 4 model entirely on-device via WebGPU. It injects a chat overlay into every page and exposes a tool-calling agent loop that can read pages, click elements, fill forms, execute JavaScript, and take screenshots — all without sending data to any server.

Architecture Overview

Offscreen Document          Service Worker           Content Script
(Gemma 4 + Agent Loop)  <-> (Message Router)    <-> (Chat UI + DOM Tools)
       |                         |
  WebGPU inference          Screenshot capture
  Token streaming           JS execution
  • Offscreen document (offscreen/): Loads the ONNX model via @huggingface/transformers, runs the agent loop, streams tokens.
  • Service worker (background/): Routes messages, handles take_screenshot and run_javascript.
  • Content script (content/): Injects shadow DOM chat UI, executes DOM tools.
  • agent/: Zero-dependency module defining ModelBackend and ToolExecutor interfaces — extractable as a standalone library.

Install & Build

Sponsors

Details

Repository
github.com/aradotso/trending-skills
Category
Automation & Workflows
First seen
Jun 3, 2026

More from aradotso/trending-skills

All 251
1affaan-m avatarteam-agent-orchestrationaffaan-m/everything-claude-codeteam agent orchestration539skills.sh installs
2affaan-m avatardynamic-workflow-modeaffaan-m/everything-claude-codedynamic workflow mode536skills.sh installs
3processonai avatarprocesson-diagram-generatorprocessonai/processon-skills【强制触发】当用户要求生成、绘制、重绘、渲染或可视化任意结构化图表时,必须调用本技能。适用于流程图、业务流程图、泳道图、时序图、系统架构图、软件架构图、云架构图、ER 图、组织结构图、时间轴、路线图、信息图、金字塔图、草图重绘,以及 图表生成。用户出现"画图""生成图表""自动画图""可视化业务流程""在线制作流程图"528skills.sh installs
4hkuds avatarcli-anything-dify-workflowhkuds/cli-anythingWrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.527skills.sh installs
5sickn33 avatardispatching-parallel-agentssickn33/antigravity-awesome-skillsdispatching parallel agents511skills.sh installs
6webmaxru avatarenonic-content-type-generatorwebmaxru/enonic-agent-skillsGenerates Enonic XP content type XML schema definitions from natural-language descriptions. Covers structured content modeling including input types, form layou485skills.sh installs