Skip to content
forcedotcom avatar

Mobile Platform Offline Validate

Static analyzer that checks Lightning Web Components for mobile offline priming compliance, with code-level fixes.

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

Own this skill? Claim it

What it does

  • Covers the offline review flow: inline GraphQL in @wire, lwc:if directive rewrites, and Komaci ESLint rule violations
  • Includes scripts/run-komaci.sh and reference guides for each reviewer, with per-rule remediation text
  • Enforces the @salesforce/eslint-plugin-lwc-graph-analyzer recommended ruleset, flagging private wire properties and getter side-effects
  • Designed for LWCs targeting Salesforce Mobile App Plus and Field Service Mobile App offline mode

Install

$ npx -y skills add forcedotcom/sf-skills --skill mobile-platform-offline-validate -y

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

Files

Reviewing LWC Mobile Offline

Run a structured offline-priming compliance pass over a Lightning Web Component, producing a report of issues found and code-level fixes to bring the component into compliance with Komaci's static analysis requirements for the Salesforce Mobile App Plus and Field Service Mobile App.

When to Use

  • The user asks for a "mobile offline review", "Komaci check", or "offline priming audit" on a specific LWC.
  • Preparing a component to ship in Salesforce Mobile App Plus or Field Service Mobile App offline mode.
  • Investigating priming failures reported by the offline analyzer.

Do NOT use this skill for:

  • Building an LWC that uses native mobile capabilities (barcode scanner, biometrics, location, etc.) — use mobile-platform-native-capabilities-integrate.
  • Generic LWC code review — use the appropriate domain skill (reviewing-lws-security, reviewing-lwc-rtl, accessibility-code-review).

Prerequisites

  • Component path (LWC bundle under modules/…).
  • Access to the component's JS/TS and HTML templates.
  • Local Node + npm; ability to run npx eslint with the @salesforce/eslint-plugin-lwc-graph-analyzer plugin.

Details

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

Questions

What does the mobile-platform-offline-validate skill check in a Lightning Web Component?

It runs a structured offline-priming compliance pass over a Lightning Web Component, flagging problems that block the Komaci offline analyzer from pre-priming the data graph for Salesforce Mobile App Plus and Field Service Mobile App. It checks inline GraphQL in @wire configurations, lwc:if directives, and Komaci ESLint rule violations, and produces code-level fixes for each finding.

When should I use the mobile-platform-offline-validate skill instead of a generic LWC review?

Use it when you ask for a mobile offline review, a Komaci check, or an offline priming audit on a specific component, or when you need to validate an LWC against the Komaci ESLint recommended ruleset. It is not meant for generic LWC code review or for building components with native mobile capabilities, which the mobile-platform-native-capabilities-integrate skill covers.

How do I install the mobile-platform-offline-validate skill?

Run npx -y skills add forcedotcom/sf-skills --skill mobile-platform-offline-validate -y inside your project. Once installed, the agent can review your component bundle for Komaci offline priming issues, using the eslint and npm tools the skill lists.

What do I need to run the mobile-platform-offline-validate skill?

You need the path to the LWC bundle, access to its JavaScript or TypeScript and HTML template files, and local Node and npm with the ability to run npx eslint. The skill also needs the @salesforce/eslint-plugin-lwc-graph-analyzer plugin resolvable from your working directory, with the component's sibling HTML templates next to the JS file.

More from forcedotcom/sf-skills

All 78

Similar to Mobile Platform Offline Validate

More Mobile Apps