Mobile Apps Create

forcedotcom/sf-skills/skills/mobile-apps-create

作者 forcedotcome5164d94d7511c00fa02a5b8b60754b2361e178f无许可证1K 个星标收录于 2026年10月9日更新于 2026年10月9日仓库2天前更新

The entry point for building any Salesforce native mobile app on iOS or Android. TRIGGER when the user says: "build a Salesforce iOS app", "add Salesforce login to my Android app", "set up Mobile SDK", "add MobileSync / SmartStore offline storage", "embed an Agentforce agent in my mobile app", "add Agentforce chat to iOS/Android", or otherwise asks to create, extend, or integrate a Salesforce mobile experience in Swift or Kotlin (MSDK, Agentforce SDK, or both). SKIP when the user is building a non-Salesforce mobile app, using React Native / Flutter / Ionic without Salesforce integration, asking about generic mobile UI design, or working on a Salesforce-adjacent web/desktop surface (LWC, Experience Cloud, Mobile Publisher branding-only).

仅含说明AI & Agents
AI 生成的概览

将 Salesforce 移动应用请求路由到适用于 iOS 或 Android 的对应子 SDK 技能。

功能
该技能是构建连接 Salesforce 的原生移动应用的入口。它从两个维度消除歧义:SDK 系列(Mobile SDK 与 Agentforce SDK)和平台(iOS 与 Android),然后将用户路由到匹配的子技能。它还说明了同时使用两个 SDK 的组合工作流的顺序,并说明当子技能在本地不可用时如何安装和加载它。
适用场景
当用户希望用 Swift 或 Kotlin 创建、扩展或集成 Salesforce 移动体验时使用,包括 Salesforce 登录、MobileSync 或 SmartStore 离线存储,或嵌入的 Agentforce 代理。它不适用于非 Salesforce 移动应用、未集成 Salesforce 的 React Native、Flutter 或 Ionic、通用移动 UI 设计,以及 Salesforce Web 和桌面界面。
运行要求
需要 npx CLI(9.0.0 或更高版本)从公共仓库安装子技能,并需要网络访问以完成这些安装。该技能不包含脚本,仅包含路由说明。

Salesforce Mobile

Route the user to the right SDK-family skill for building Salesforce-connected mobile apps. Do not implement features here; child skills own scenario detection and step-by-step instructions.

Before routing

Disambiguate on two dimensions: SDK family (Mobile SDK vs. Agentforce SDK) and platform (iOS vs. Android). They are not mutually exclusive — an app can use both SDKs.

If the user's intent could plausibly map to either SDK, ask before routing. Guessing wrong wastes the user's time because the child skills are platform- and SDK-specific.

Routing — which SDK family?

User's situationSDK
Authenticating end users to Salesforce, syncing records (MobileSync), storing data offline (SmartStore), biometric login, push notifications, REST integrationMobile SDK
Embedding an Agentforce agent — chat UI, agent conversations, conversational features as the primary surfaceAgentforce SDK
Both (data-driven app with an embedded agent)Mobile SDK first, then Agentforce SDK layered on top

Tiebreakers when both seem to apply

  • Is the agent the primary surface (chat-first app), or a feature inside an otherwise data-driven app?
    • Primary → Agentforce SDK
    • Feature → Mobile SDK; embed the agent via Agentforce SDK alongside it
  • Are end users authenticating into Salesforce data?
    • Yes → Mobile SDK is required (Agentforce SDK can be added on top).
    • No → Agentforce SDK alone is likely sufficient (it uses guest auth).
  • Asking about offline storage, sync, REST, push, or biometrics? → Mobile SDK.
  • Asking about agent conversations, chat UI, or streaming responses? → Agentforce SDK.

When still unclear, ask the user directly.

Routing — which platform?

PlatformMobile SDK skillAgentforce SDK skill
iOS (Swift)ios-mobile-sdkintegrate-agentforce-ios
Android (Kotlin)android-mobile-sdkintegrate-agentforce-android

If the user wants both platforms, route to each child skill separately — they are independent.

Combined workflows (Mobile SDK + Agentforce SDK)

When an app needs both:

  1. Route to the Mobile SDK platform skill first to scaffold and authenticate.
  2. Then you MUST load the Agentforce SDK platform skill (integrate-agentforce-ios or integrate-agentforce-android) to layer the agent surface. Do not hand-write the Agentforce integration — the SDK's dependencies, products, and APIs are not guessable and hand-rolled code will not compile.
  3. Treat each child skill's instructions as authoritative for its SDK; do not merge their steps. Each SDK owns its own auth setup, dependency installation order, and initialization sequence — interleaving them produces conflicting config and broken init order.

This sequencing is the only multi-skill logic this skill owns. Everything else lives inside the child skills.

Loading a child skill

Invoke the child skill by name through the harness. If it is not available locally, prompt the user to install it with npx skills add <repo>. If the user confirms (or has pre-authorized installs), run the command and load the child skill — do not make the user go figure out how to continue the workflow. If the user declines, stop and explain that the child skill owns the SDK's setup steps and the workflow cannot continue without it. Each child skill is published from a public repo:

SkillRepoInstall command
ios-mobile-sdkforcedotcom/SalesforceMobileSDK-Templates → skills/ios-mobile-sdk/npx --yes skills add forcedotcom/SalesforceMobileSDK-Templates --skill ios-mobile-sdk --yes
android-mobile-sdkforcedotcom/SalesforceMobileSDK-Templates → skills/android-mobile-sdk/npx --yes skills add forcedotcom/SalesforceMobileSDK-Templates --skill android-mobile-sdk --yes
integrate-agentforce-iossalesforce/AgentforceMobileSDK-iOS → skills/integrate-agentforce-ios/npx --yes skills add salesforce/AgentforceMobileSDK-iOS --skill integrate-agentforce-ios --yes
integrate-agentforce-androidsalesforce/AgentforceMobileSDK-Android → skills/integrate-agentforce-android/npx --yes skills add salesforce/AgentforceMobileSDK-Android --skill integrate-agentforce-android --yes

After install, load the child skill and let it take over. Do not inline the child skill's content — the child skill owns scenario detection, prerequisites, and step-by-step instructions.

来源与署名

来源:forcedotcom/sf-skills位于skills/mobile-apps-create提交e5164d9

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架