SalesforceMobileSDK-ReactNative: Instructions file for Claude Code

CLAUDE.md

SalesforceMobileSDK-ReactNative CLAUDE.md is an instructions file for Claude Code from forcedotcom/SalesforceMobileSDK-ReactNative. It costs 4,155 tokens per session, scanned A, original, BSD-3-Clause.

Project instructions for Salesforce Mobile SDK for React Native, a toolkit that lets React Native mobile apps connect to Salesforce through iOS and Android code.

In plain words
What is it for?
Use them when changing the SDK's JavaScript, iOS, Android, generated code, tests, or release-related files.
Why use it?
They explain the repository structure, compatibility requirements, native bridges, generated code, and testing expectations.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

This is forcedotcom/SalesforceMobileSDK-ReactNative's own configuration. It tells Claude Code how to work on SalesforceMobileSDK-ReactNative itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything SalesforceMobileSDK-ReactNative configures →

Reuse

Borrowing it

Nothing to install: this file belongs to forcedotcom/SalesforceMobileSDK-ReactNative. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/forcedotcom/SalesforceMobileSDK-ReactNative/dev/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/forcedotcom/SalesforceMobileSDK-ReactNative

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for SalesforceMobileSDK-ReactNative CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/forcedotcom/salesforcemobilesdk-reactnative/claude-md/github.svg)](https://agentmods.dev/instructions/forcedotcom/salesforcemobilesdk-reactnative/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/forcedotcom/salesforcemobilesdk-reactnative/claude-md"><img src="https://agentmods.dev/badge/instructions/forcedotcom/salesforcemobilesdk-reactnative/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for SalesforceMobileSDK-ReactNative CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/forcedotcom/salesforcemobilesdk-reactnative/claude-md"><img src="https://agentmods.dev/badge/instructions/forcedotcom/salesforcemobilesdk-reactnative/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,155 This file is loaded in full into every session.
When invoked 4,155 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.04155 $0.04155
Opus 5.5 $0.01662 $0.01662
Sonnet 5.5 $0.00831 $0.00831
Haiku 4.5 $0.00415 $0.00415

Measured 2mo ago against content hash 0231328d95a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

SalesforceMobileSDK-ReactNative CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 391 lines

How it starts

The opening of the file, as written. The whole thing — 391 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md — Salesforce Mobile SDK for React Native


About This Project

The Salesforce Mobile SDK for React Native provides JavaScript/TypeScript bindings and native bridge modules that enable React Native applications to integrate with the Salesforce platform. This repo contains:

  • JavaScript/TypeScript libraries (src/) - The public API exposed to React Native apps
  • iOS bridge code (ios/SalesforceReact/) - Objective-C++ TurboModule bridges to iOS SDK
  • Android bridge code (android/) - Kotlin TurboModule bridges to Android SDK
  • iOS tests (iosTests/) - XCTest suite for iOS bridge functionality
  • Android tests (androidTests/) - AndroidX Test suite for Android bridge functionality
  • JavaScript tests (test/) - Test suite for JavaScript API
  • Pre-built codegen (android/generated/) - C++ JavaTurboModule wrappers committed to npm package. Regenerated by setversion.sh during releases. Must be regenerated manually if bridge methods change in src/specs/.

Key constraint: This is a public SDK. Every change is visible to external developers. Backward compatibility, deprecation cycles, and semver discipline are non-negotiable.

Architecture

This repository is part of a cross-platform architecture:

React Native App
  └── react-native-force (this repo)
       ├── JavaScript/TypeScript API (src/)
       ├── iOS Bridge (ios/SalesforceReact/)
       │    └── depends on → SalesforceMobileSDK-iOS libraries
       └── Android Bridge (android/)
            └── depends on → SalesforceMobileSDK-Android libraries

Note: As of SDK 14.0, the Android bridge code lives in this repo (android/), matching the iOS bridge layout. It was previously in SalesforceMobileSDK-Android/libs/SalesforceReact/. Both platforms now use unified SF* prefix module names (e.g. SFOauthReactBridge, SFNetReactBridge). React Native autolinking handles module registration automatically.

Repository Structure

SalesforceMobileSDK-ReactNative/
├── src/                          # TypeScript source - public API
│   ├── index.ts                  # Main export
│   ├── react.force.oauth.ts      # OAuth/Authentication
│   ├── react.force.net.ts        # REST API client
│   ├── react.force.smartstore.ts # SmartStore (encrypted storage)
│   ├── react.force.mobilesync.ts # MobileSync (sync framework)
│   ├── react.force.util.ts       # Utilities
│   ├── react.force.log.ts        # Logging
│   ├── react.force.test.ts       # Test harness utilities
│   ├── specs/                    # TurboModule codegen specs
│   └── typings/                  # TypeScript type definitions
├── ios/SalesforceReact/          # iOS bridge modules (Objective-C++)
│   ├── SFOauthReactBridge.mm     # OAuth bridge
│   ├── SFNetReactBridge.mm       # REST client bridge
│   ├── SFSmartStoreReactBridge.mm # SmartStore bridge
│   ├── SFMobileSyncReactBridge.mm # MobileSync bridge
│   ├── SFSDKReactLogger.m        # Logging bridge
│   └── SalesforceReactSDKManager.m # SDK manager
├── android/                      # Android bridge modules (Kotlin)
│   ├── src/main/java/.../bridge/ # Bridge classes (SF*ReactBridge.kt)
│   ├── src/main/java/.../ui/     # SalesforceReactActivity (bridgeless mode)
│   ├── src/main/java/.../app/    # SDK manager
│   └── build.gradle.kts          # Gradle build config
├── iosTests/                     # iOS test application
│   ├── ios/                      # Xcode project with XCTest tests
│   └── prepareios.js             # Test setup script
├── androidTests/                 # Android test application (mirrors iosTests/)
│   └── mobile_sdk/               # Android SDK clone for testing
├── test/                         # JavaScript test suite
│   ├── alltests.js               # Test entry point
│   ├── oauth.test.js             # OAuth tests
│   ├── net.test.js               # REST API tests
│   ├── smartstore.test.js        # SmartStore tests
│   ├── mobilesync.test.js        # MobileSync tests
│   └── harness.test.js           # Test infrastructure
├── dist/                         # Compiled TypeScript output
├── package.json                  # npm package definition (includes codegenConfig)
├── SalesforceReact.podspec       # CocoaPods spec for iOS
└── tsconfig.json                 # TypeScript configuration

Read the full file on GitHub · 391 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 391 lines · 4,155 tokens per session scan A 0231328d95a5

Subscribe to this mod's changes

SalesforceMobileSDK-ReactNative CLAUDE.md is an instructions file published in the GitHub repository forcedotcom/SalesforceMobileSDK-ReactNative (57 stars, last pushed 11d ago), licensed BSD-3-Clause. It adds 4,155 tokens to every session, about $0.0166 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

SalesforceMobileSDK-ReactNative CLAUDE.md compared with instructions from other repositories

SalesforceMobileSDK-ReactNative CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
SalesforceMobileSDK-ReactNative CLAUDE.mdforcedotcom/SalesforceMobileSDK-ReactNativeInstructions file5711d agoBSD-3-ClauseA4,155Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode