Skip to content
forcedotcom avatar

Mobile Platform Native Capabilities Integrate

Mobile-native device capabilities for Salesforce LWCs, gated behind availability checks and typed failure handling.

CCM score
64 of 100
skills.sh installs
4.8K
GitHub stars
1.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers 11 capabilities: barcode scanner, biometrics, location, NFC, calendar, contacts, document scanner, geofencing, AR space capture, app review, and payments
  • Provides a capability index mapping each feature to its reference file, with a shared BaseCapability interface and module declaration
  • Enforces a isAvailable() check before every call and prefers non-deprecated entry points over older methods
  • Designed for LWCs running inside Salesforce Mobile App or Field Service Mobile App, not desktop or mobile web

Install

$ npx -y skills add forcedotcom/sf-skills --skill mobile-platform-native-capabilities-integrate -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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:

Details

Repository
github.com/forcedotcom/sf-skills
Categories
Mobile Apps, Frontend & UI Code
First seen
Jul 14, 2026

More from forcedotcom/sf-skills

All 78

Similar to Mobile Platform Native Capabilities Integrate

More Mobile Apps