This handles the full lifecycle of browser-based neural network inference using the Web Neural Network API. You get navigator.ml feature detection, MLContext and MLGraphBuilder setup, explicit device selection with power preferences, tensor dispatch and readback, and graceful fallback paths when hardware acceleration isn't available. It won't help with server-side inference or cloud APIs. The procedures walk through identifying browser entry points, choosing between direct WebNN graphs or adapting existing runtimes like ONNX Runtime Web, and wiring up UX states for unsupported browsers versus actual accelerated execution. Useful when you need local ML inference that respects privacy constraints and can't phone home.

skills.sh installs
147
GitHub stars
31
last updated
Jun 3, 2026

Install

$ npx -y skills add webmaxru/agent-skills --skill webnn --agent claude-code

Installs into .claude/skills of the current project.

Files

WebNN

Procedures

Step 1: Identify the browser integration surface

  1. Inspect the workspace for browser entry points, UI handlers, worker entry files, and any existing model-loading or inference abstraction layer.
  2. Execute node scripts/find-webnn-targets.mjs . to inventory likely frontend files and existing WebNN markers when a Node runtime is available.
  3. If a Node runtime is unavailable, inspect the nearest package.json, HTML entry point, framework bootstrap files, and worker entry files manually to identify the browser app boundary.
  4. If the workspace contains multiple frontend apps, prefer the app that contains the active route, component, or user-requested feature surface.
  5. If the inventory still leaves multiple plausible frontend targets, stop and ask which app should receive the WebNN integration.
  6. If the project is not a browser web app, stop and explain that this skill does not apply.

Sponsors

Details

Repository
github.com/webmaxru/agent-skills
Category
AI & Agent Building
First seen
Jun 3, 2026

More from webmaxru/agent-skills

All 11
1nicepkg avatara-share-analysisnicepkg/ai-workflowComprehensive China A-share stock analysis covering fundamental analysis, technical analysis, policy impact assessment, and market-specific features (T+1 tradin146skills.sh installs
2oimiragieo avatardiagram-generatoroimiragieo/agent-studioGenerates architecture, database, and system diagrams using Mermaid syntax. Creates visual representations of system architecture, database schemas, component r146skills.sh installs
3webmaxru avatarskill-creatorwebmaxru/agent-skillsskill creator146skills.sh installs
4danielmiessler avatarPrivateInvestigatordanielmiessler/personal_ai_infrastructureprivateinvestigator145skills.sh installs
5itsmostafa avatariamitsmostafa/aws-agent-skillsAWS Identity and Access Management for users, roles, policies, and permissions. Use when creating IAM policies, configuring cross-account access, setting up ser145skills.sh installs
6webmaxru avatarenonic-sandbox-managerwebmaxru/enonic-agent-skillsGuides developers through Enonic CLI commands for sandbox management, project scaffolding, local development, app deployment, and CI/CD pipeline generation. Use145skills.sh installs