
Mobile Platform Native Capabilities Integrate
When you need an LWC that talks to the device hardware (barcode scanner, biometrics, NFC, location, document scanner, payments, AR capture, and more), this routes Claude through the lightning/mobileCapabilities module with the correct type definitions and availability gating. It knows to check isAvailable() before every call, use the non-deprecated APIs (avoiding things like the old beginCapture/resumeCapture/endCapture triple for barcode), and map rejection codes to the right failure enums. Works across eleven native capabilities with a shared BaseCapability pattern. The workflow is lookup the capability, load the reference docs, wire it with try/catch and graceful desktop fallback. Explicitly excludes offline validation and generic SLDS component selection, which have their own skills.
- skills.sh installs
- 4.7K
- GitHub stars
- 1.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add forcedotcom/sf-skills --skill mobile-platform-native-capabilities-integrate --agent claude-codeInstalls into .claude/skills of the current project.
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:
Sponsors
Details
- Repository
- github.com/forcedotcom/sf-skills
- Categories
- DevOps & CI/CD, Git & Pull Requests, Code Review & Quality, Sales & Marketing, Mobile Development, Design & UI/UX, Finance & Trading
- First seen
- Jul 14, 2026
More from forcedotcom/sf-skills
All 158- Mobile Platform Offline Validate4.7K
- Commerce B2b Store Create4.7K
- Commerce B2b Open Code Components Integrate4.6K
- Commerce B2b Open Code Components Replace4.6K
- Generating Apex4.2K
- Generating Apex Test4.2K
- Generating Flow4.1K
- Generating Custom Field4K
- Generating Custom Object4K
- Generating Permission Set4K
- Generating Flexipage4K
- Generating Custom Tab3.9K
- Generating Custom Application3.9K
- Generating Lightning App3.9K
- Generating Custom Lightning Type3.9K
- Generating List View3.9K
- Generating Validation Rule3.9K
- Data360 Query3.8K
- Data360 Connect3.8K
- Data360 Activate3.8K
- Data360 Prepare3.8K
- Data360 Harmonize3.8K
- Data360 Orchestrate3.8K
- Data360 Segment3.8K