agentforce-architectur…
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA…
Review a Lightning Web Component for **mobile offline** compatibility — the Komaci offline static analyzer that pre-primes the data graph for Salesforce Mobile App Plus and Field Service Mobile App. Produces a finding list with code-level fixes covering inline GraphQL queries in
Claude Code
$ npx -y skills add forcedotcom/sf-skills --skill mobile-platform-offline-validate --agent claude-code
Codex
$ npx skills add forcedotcom/sf-skills --skill mobile-platform-offline-validate -a codex -y
Cursor
$ npx skills add forcedotcom/sf-skills --skill mobile-platform-offline-validate -a cursor -y
Gemini CLI
$ npx skills add forcedotcom/sf-skills --skill mobile-platform-offline-validate -a gemini-cli -y
GitHub Copilot
$ npx skills add forcedotcom/sf-skills --skill mobile-platform-offline-validate -a github-copilot -y
OpenCode
$ npx skills add forcedotcom/sf-skills --skill mobile-platform-offline-validate -a opencode -y
Windsurf
$ npx skills add forcedotcom/sf-skills --skill mobile-platform-offline-validate -a windsurf -y
name: mobile-platform-offline-validate
description: "Review a Lightning Web Component for **mobile offline** compatibility — the Komaci offline static analyzer that pre-primes the data graph for Salesforce Mobile App Plus and Field Service Mobile App. Produces a finding list with code-level fixes covering inline GraphQL queries in `@wire` configurations, modern `lwc:if` / `lwc:elseif` / `lwc:else` directives, and Komaci ESLint rule violations (private wire properties, non-local reactive references, getter side-effects). Use when the user asks for a \"mobile offline review\", \"Komaci check\", \"offline priming audit\", \"offline priming failure\", or \"offline data graph error\", or to validate an LWC against the `@salesforce/eslint-plugin-lwc-graph-analyzer` recommended ruleset. Do not use for generic LWC code review (use an appropriate domain review skill) or for building LWCs with native mobile capabilities (use `mobile-platform-native-capabilities-integrate`)."
metadata:
version: "1.0"
domains: ["Mobile"]
relatedSkills:
- "mobile-platform-native-capabilities-integrate"
cliTools:
- tool: ["eslint"]
semver: ">=8.0.0"
- tool: ["npm"]
semver: ">=9.0.0"
- tool: ["npx"]
semver: ">=9.0.0"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.
priming audit" on a specific LWC.
Service Mobile App offline mode.
Do NOT use this skill for:
biometrics, location, etc.) — use `mobile-platform-native-capabilities-integrate`.
(`reviewing-lws-security`, `reviewing-lwc-rtl`, `accessibility-code-review`).
`@salesforce/eslint-plugin-lwc-graph-analyzer` plugin.
[Mobile Offline Grounding](references/grounding.md) explains the three violation categories and why each blocks offline priming. Read it before judging. The per-reviewer references below are the source of truth for the rules and remediations:
Identify the component bundle: `.html`, `.js`/`.ts`. CSS and meta files are not in scope for offline priming. If the bundle has multiple HTML templates, all are reviewed.
Read [Mobile Offline Grounding](references/grounding.md) and the three per-reviewer references end-to-end before judging. Cite the specific reviewer when emitting each finding so the report is auditable.
Walk every `.html` file in the bundle and apply the rules in [lwc:if Reviewer](references/lwc-if.md). For each occurrence of `lwc:if={…}`, `lwc:elseif={…}`, or `lwc:else`, emit a finding with the exact `if:true` / `if:false` rewrite — including the nesting required to preserve `lwc:elseif` and `lwc:else` semantics.
Walk every `.js`/`.ts` file in the bundle and apply the rules in [Inline GraphQL Reviewer](references/inline-graphql.md). For each `@wire` that references a `gql` template literal directly (or via a top-level constant), emit a finding that names a concrete getter and shows the rewritten `@wire` configuration.
Run the Komaci ESLint analyzer over the bundle's JS file using the bundled script. It applies the `@salesforce/eslint-plugin-lwc-graph-analyzer` recommended ruleset with the `bundleAnalyzer` processor enabled.
scripts/run-komaci.sh path/to/component.js
The script requires `@salesforce/eslint-plugin-lwc-graph-analyzer` to be resolvable from the working directory, and the component's sibling HTML templates must live next to the JS file (the plugin's `bundleAnalyzer` processor uses them to resolve the offline data graph). Output is ESLint `--format json` on stdout.
For each `messages[*]` entry in the output, group by `ruleId` and look up the per-rule remediation in [Komaci ESLint Reviewer](references/komaci-eslint.md). Emit a finding per (rule, line) pair with the exact remediation text from the reference; do not invent new advice. See the reference for the manual `npx eslint ...` invocation if the script is unavailable in the runtime environment.
Emit a report in this shape:
## Mobile Offline (Komaci priming)
- <reviewer> — <file>:<startLine>:<startColumn>-<endLine>:<endColumn> — <type>
Description: <verbatim from the reviewer reference>
Intent analysis: <verbatim from the reviewer reference>
Suggested action: <verbatim from the reviewer reference>
Code: |
<source snippet from startLine through endLine, optional but
recommended when the violation spans multiple lines>
Applied: yes/no
## Summary
- <n> issues found; <m> fixed; <k> deferred (with reason)For Komaci ESLint findings, take `startLine`/`startColumn`/`endLine`/ `endColumn` from the ESLint message's `line`/`column`/`endLine`/`endColumn`. For Inline GraphQL and `lwc:if` findings, supply the line/column range yo
This repository provides Salesforce agent skills, plugins, and sample apps for building applications.
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA…
Use this skill to Upgrade Einstein Bots into Agentforce agents end-to-end in a single pass, orchestrating per-bot Agent Spec…
Data Cloud 360° view of a single Agentforce session. TRIGGER when user asks to trace, inspect, summarize, or describe a specific…
Build, modify, audit, repair, optimize, debug, and deploy agents with Agentforce Agent Script. TRIGGER when: user creates,…
Analyze production Agentforce agent behavior using session traces and Data Cloud, and manage Agent Health Monitoring (AHM)…
Use to design an AI agent persona — identity, voice, tone, behavioral style, guardrails — and encode it into Agent Script (.agent…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.