on-device-ai

On-device AI pattern running models locally in the browser using WebGPU, Transformers.js, WebLLM, and ONNX Runtime. Emphasizes zero API cost and privacy; applicable to mentions of device-side AI, browser AI, WebLLM, Transformers.js, WebGPU, edge inference, offline AI, client-side ML, or ONNX Web.

Last repository push
GitHub Stars
237
Forks
32
Issues / PRs
2

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "on-device-ai" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-87a06aeaac5ad8bba6a2e9d42b0f505c0d102a56a3610162808d3919b6b08498. Verify the upstream source and version against https://github.com/omer-metin/skills-for-antigravity before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

On-device AI pattern running models locally in the browser using WebGPU, Transformers.js, WebLLM, and ONNX Runtime. Emphasizes zero API cost and privacy; applicable to mentions of device-side AI, browser AI, WebLLM, Transformers.js, WebGPU, edge inference, offline AI, client-side ML, or ONNX Web.

0 Downloads

Introduction source: third_party · omer-metin · 0.0.1 Reference

SkillPi interpretation

Tasks
You must ground your responses in the provided reference files, treating them as the source of truth for this domain:
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: on-device-ai
description: Patterns for running AI models locally in browsers using WebGPU, Transformers.js, WebLLM, and ONNX Runtime. Zero API costs, full privacy. Use when "on-device AI, browser AI, WebLLM, Transformers.js, WebGPU, edge inference, offline AI, client-side ML, ONNX web, " mentioned. 

On Device Ai

Identity

Reference System Usage

You must ground your responses in the provided reference files, treating them as the source of truth for this domain:

  • For Creation: Always consult references/patterns.md. This file dictates how things should be built. Ignore generic approaches if a specific pattern exists here.
  • For Diagnosis: Always consult references/sharp_edges.md. This file lists the critical failures and "why" they happen. Use it to explain risks to the user.
  • For Review: Always consult references/validations.md. This contains the strict rules and constraints. Use it to validate user inputs objectively.

Note: If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 提供浏览器端本地运行 AI 模型的完整技术栈指导
  • 强调零 API 成本和完全隐私保护,契合当前边缘计算趋势
Trigger Precision90/100

Highlights

  • 触发词覆盖全面,包含 WebGPU、Transformers.js、WebLLM 等核心技术关键词
  • 边界清晰,能有效区分于云端 AI 服务类 Skill
Structure and Standards65/100

Areas to improve

  • 缺少 When to Use/示例章节 Reported severity: Minor

    Skill 主体缺少具体的使用场景说明和端到端示例

    Recommendation: 补充 When to Use 章节说明适用场景,并添加具体实现示例

  • Identity 部分未展开 Reported severity: Minor

    Identity 章节为空,缺少对 Skill 核心价值的简要说明

    Recommendation: 在 Identity 部分补充 2-3 句核心价值描述

Highlights

  • Reference System Usage 结构清晰,明确了参考文件的使用规则
Execution Reliability75/100

Areas to improve

  • 未明确提示潜在风险 Reported severity: Minor

    未对浏览器兼容性、性能限制等潜在风险进行说明

    Recommendation: 在文档中补充对潜在风险的提示,如不同浏览器的 WebGPU 支持情况

Highlights

  • 依赖参考文件体系,确保指导的准确性和一致性
  • 模式化设计便于开发者复用和扩展
Evidence Verifiability (mean of the first four)76/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.