webnn
Installation
SKILL.md
WebNN
Procedures
Step 1: Identify the browser integration surface
- Inspect the workspace for browser entry points, UI handlers, worker entry files, and any existing model-loading or inference abstraction layer.
- Execute
node scripts/find-webnn-targets.mjs .to inventory likely frontend files and existing WebNN markers when a Node runtime is available. - 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. - If the workspace contains multiple frontend apps, prefer the app that contains the active route, component, or user-requested feature surface.
- If the inventory still leaves multiple plausible frontend targets, stop and ask which app should receive the WebNN integration.
- If the project is not a browser web app, stop and explain that this skill does not apply.