forcedotcom avatar

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-code

Installs 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
1claude-office-skills avatarform-builderclaude-office-skills/skillsBuild interactive document forms and questionnaires using docassemble4.7Kskills.sh installs
2coralogix avatarcx-search-dashboardcoralogix/cx-cliThis skill should be used when the user asks to "find a dashboard", "search dashboards", "does a dashboard exist for X", "find widgets that query Y", "which das4.7Kskills.sh installs
3figma avatarfigma-generate-libraryfigma/mcp-server-guideBuild or update a professional-grade design system in Figma from a codebase. Use when the user wants to create variables/tokens, build component libraries, crea4.7Kskills.sh installs
4elastic avatarelasticsearch-onboardingelastic/agent-skillsHelp developers new to Elasticsearch get from zero to a working search experience. Guide them through understanding their intent, mapping their data, and buildi4.7Kskills.sh installs
5iii-hq avatariii-sdk-referenceiii-hq/iiiUse when working with iii SDK APIs across Node.js, browser, Python, or Rust: package installation, worker initialization, function/trigger registration, invocat4.7Kskills.sh installs
6dotnet avatarmsbuild-antipatternsdotnet/skillsDetect and fix MSBuild anti-patterns in project and build files. USE WHEN asked to review, audit, lint, clean up, or code-review a .csproj/.vbproj/.fsproj/.prop4.7Kskills.sh installs