Agent skill · forcedotcom

mobile-platform-native-capabilities-integrate

Build a Salesforce LWC that uses native mobile device capabilities — barcode scanner, biometrics, location, NFC, calendar, contacts, document scanner, geofencing, AR space capture, app review, and payments. Use this skill when the user asks for an LWC that scans a barcode, captures a photo of a document, reads location or geofences, prompts for biometrics, reads/writes the device calendar or contacts, taps NFC, takes a payment, prompts for an app review, or scans an AR space. Also triggers on \"lightning/mobileCapabilities\", \"mobile capability\", \"Nimbus\", \"device capability\". Do not use for mobile offline / Komaci priming reviews (use `mobile-platform-offline-validate`) or for picking generic Lightning base components (use `design-systems-slds-apply`).

What it needs

About 5k tokens when loaded.

What this skill does

Using Mobile Native Capabilities The lightning/mobileCapabilities module exposes a set of factory functions that return service objects for native device features (barcode scanning, biometrics, location, etc.). Each service extends a common BaseCapability with an isAvailable() method, so an LWC can degrade gracefully on surfaces where the capability is not present (desktop, mobile web). This skill routes an agent through (1) picking the right capability, (2) loading the authoritative type definitions, and (3) wiring the service into an LWC with the correct availability gating, error handling, and deprecation-aware API choice. When to Use This Skill User asks for an LWC that uses a device capability listed in the index below. User mentions lightning/mobileCapabilities, "mobile capability", or "Nimbus" by name. User wants to know which mobile native APIs are available, or which one fits their feature. Do NOT use this skill for: Mobile-offline review of an LWC (lwc:if, inline GraphQL, Komaci-priming violations) — use mobile-platform-offline-validate. Choosing or styling generic Lightning Base Components / SLDS blueprints — use design-systems-slds-apply. Prerequisites Knowledge that the LWC will run inside a supported mobile container (Salesforce Mobile App, Field Service Mobile App). These capabilities are unavailable on desktop and mobile web; gate every call behind isAvailable(). Familiarity with the lightning/mobileCapabilities module declaration (see mobile-capabilities). Capability Index Capability Reference One-line use --- --- --- App Review App Review Prompt the user for a native in-app review. AR Space Capture AR Space Capture Capture a 3D scan of a physical space using AR. Barcode Scanner Barcode Scanner Read QR / UPC / EAN / Code-128 / etc. from the camera. Biometrics Biometrics Authenticate via Face ID / fingerprint. Calendar Calendar Read or create events on the device calendar. Contacts Contacts Read or create entries in the device address book. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills forcedotcom/mobile-platform-native-capabilities-integrate--961b6d

View the source on GitHub

Browse the @skills marketplace