mobile-platform-offline-validate

Reviews Lightning Web Components for Komaci offline priming compatibility and reports code-level fixes.

Updated Jul 2, 2026
One-click install
npx skills add https://github.com/padjei/SF_Build --skill mobile-platform-offline-validate-padjei
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: mobile-platform-offline-validate
Source: https://github.com/padjei/SF_Build/tree/main/.claude/skills/mobile-platform-offline-validate
Command: npx skills add https://github.com/padjei/SF_Build --skill mobile-platform-offline-validate-padjei

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @salesforce/eslint-plugin-lwc-graph-analyzer, eslint, and includes scripts (resource) and references (resource) components.

What problem does it solve? Lightning Web Components that use modern patterns like lwc:if directives or inline GraphQL queries in @wire configurations fail offline data priming in Salesforce Mobile App Plus and Field Service Mobile App, and developers lack a structured way to find and fix these violations before shipping. ## Core Features & Use Cases - Three-category compliance review: Detects lwc:if/lwc:elseif/lwc:else usage, inline GraphQL in @wire configs, and Komaci ESLint rule violations with exact rewrite guidance. - Automated static analysis: Runs the @salesforce/eslint-plugin-lwc-graph-analyzer recommended ruleset via a bundled script with pinned, isolated dependencies. - Auditable findings report: Emits findings with file locations, verbatim remediation text, and reviewer citations, plus a summary of fixed and deferred issues. - Use Case: Before shipping a component to Field Service Mobile App offline mode, run the review to extract inline GraphQL queries into getters and convert conditional directives, then apply the fixes directly. ## Quick Start Ask the assistant to run a mobile offline review on your LWC bundle, for example by saying "run a Komaci offline priming audit on modules/my/component".

Frequently Asked Questions about mobile-platform-offline-validate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check an LWC for Salesforce mobile offline compatibility?▼

Run a Komaci offline review over the component bundle. It checks HTML templates for lwc:if directives, JS files for inline GraphQL in @wire configs, and runs the @salesforce/eslint-plugin-lwc-graph-analyzer recommended ruleset, producing findings with exact fixes.

How to fix lwc:if directives for offline priming?▼

Replace lwc:if with if:true, and rewrite lwc:elseif and lwc:else as nested if:false blocks wrapping if:true branches. The review emits the exact rewrite for each occurrence, preserving the original branching logic.

Why do inline GraphQL queries break offline priming in LWC?▼

The Komaci static analyzer cannot resolve the offline data graph when GraphQL queries or variables are inlined in @wire configurations or defined as top-level constants. Queries must be extracted into getter functions and referenced via reactive parameters.

Does the Komaci ESLint analyzer need the component HTML files?▼

Yes. The plugin's bundleAnalyzer processor discovers sibling HTML templates next to the JS file to resolve the offline data graph across the bundle. Running against a stripped JS file without its templates can produce errors or missed findings.

When should I not use this offline review?▼

Do not use it for generic LWC code review, security review, or accessibility checks, which belong to domain-specific review skills. It also does not cover building LWCs with native mobile capabilities like barcode scanning or biometrics.