SalesforceMobileSDK-Templates: Instructions file for Claude Code

CLAUDE.md

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

A project guide for Salesforce Mobile SDK Templates, a repository of starter app templates for building Salesforce apps on iOS, Android, Cordova, and React Native.

In plain words
What is it for?
Use it when changing templates, editing the template registry, updating installation scripts, or checking that new apps created from the templates still work.
Why use it?
It explains the repository structure and the files that control which templates and setup scripts are available to Salesforce app-building tools.

Instructions file for Claude Code

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

This is forcedotcom/SalesforceMobileSDK-Templates's own configuration. It tells Claude Code how to work on SalesforceMobileSDK-Templates 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-Templates configures →

Reuse

Borrowing it

Nothing to install: this file belongs to forcedotcom/SalesforceMobileSDK-Templates. 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-Templates/dev/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/forcedotcom/SalesforceMobileSDK-Templates

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-Templates CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/forcedotcom/salesforcemobilesdk-templates/claude-md.svg)](https://agentmods.dev/instructions/forcedotcom/salesforcemobilesdk-templates/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/forcedotcom/salesforcemobilesdk-templates/claude-md"><img src="https://agentmods.dev/badge/instructions/forcedotcom/salesforcemobilesdk-templates/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 5,739 This file is loaded in full into every session.
When invoked 5,739 The same file — it is already loaded in full.
Security scan A 1 finding. 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.05739 $0.05739
Opus 5 $0.02870 $0.02870
Sonnet 5 $0.01148 $0.01148
Haiku 4.5 $0.00574 $0.00574

Measured 8d ago against content hash f76af5465e3c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

SalesforceMobileSDK-Templates CLAUDE.md scanned grade A with 1 finding 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 8d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

var execSync = require('child_process').execSync;
CLAUDE.md · 659 lines

How it starts

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

CLAUDE.md — Salesforce Mobile SDK Templates


About This Project

The Salesforce Mobile SDK Templates repository is the template library for creating Salesforce mobile applications. It contains ready-to-use app templates that serve as starting points for iOS, Android, hybrid (Cordova), and React Native mobile applications.

Key constraint: These templates are consumed by CLI tools (forceios, forcedroid, forcehybrid, forcereact) and the SFDX plugin. Changes here affect every new app created with the Mobile SDK.

Repository Purpose

This repository provides:

  1. Template Library - Collection of app templates for all supported platforms and app types
  2. Template Metadata - templates.json defining all available templates
  3. Template Scripts - install.js and template.js for dependency management and customization
  4. Testing Infrastructure - test_template.sh for validating template structure and buildability

Repository Structure

SalesforceMobileSDK-Templates/
├── templates.json                         # Template registry (defines all templates)
├── test_template.sh                       # Template testing script
├── TESTING.md                             # Testing documentation
├── setversion.sh                          # Version update script
├── .claude/
│   └── skills/                            # Claude Code agent skills (see below)
│       └── README.md                      # Skills documentation
│
├── iOSNativeSwiftTemplate/                # Swift iOS template (most common)
│   ├── package.json                       # SDK dependencies
│   ├── install.js                         # Downloads SDK dependencies
│   ├── template.js                        # Customizes template for user
│   ├── Podfile                            # CocoaPods dependencies
│   └── <template-files>                   # Xcode project and source code
│
├── iOSNativeSwiftPackageManagerTemplate/  # Swift with SPM
├── iOSNativeSwiftEncryptedNotificationTemplate/  # Swift with notifications
├── iOSNativeLoginTemplate/                # Swift native login example
├── iOSIDPTemplate/                        # Swift Identity Provider
├── MobileSyncExplorerSwift/               # Swift MobileSync sample app
│
├── AndroidNativeKotlinTemplate/           # Kotlin Android template (most common)
│   ├── package.json                       # SDK dependencies
│   ├── install.js                         # Downloads SDK dependencies
│   ├── template.js                        # Customizes template for user
│   └── <template-files>                   # Gradle project and source code
│
├── AndroidNativeLoginTemplate/            # Kotlin native login example
├── AndroidIDPTemplate/                    # Kotlin Identity Provider
├── MobileSyncExplorerKotlinTemplate/      # Kotlin MobileSync sample app
│
├── ReactNativeTemplate/                   # React Native JavaScript template
│   ├── package.json                       # SDK and npm dependencies
│   ├── installios.js                      # iOS SDK setup
│   ├── installandroid.js                  # Android SDK setup
│   ├── template.js                        # Customizes for both platforms
│   ├── ios/                               # iOS project structure
│   └── android/                           # Android project structure
│
├── ReactNativeTypeScriptTemplate/         # React Native TypeScript template
├── ReactNativeDeferredTemplate/           # React Native deferred login
├── MobileSyncExplorerReactNative/         # React Native MobileSync sample app
│
├── HybridLocalTemplate/                   # Cordova local hybrid template
│   └── <hybrid-app-files>                 # HTML/JS/CSS app
│
└── HybridRemoteTemplate/                  # Cordova remote hybrid template
    └── <hybrid-app-files>                 # Visualforce/Communities app

Read the full file on GitHub · 659 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. 8d ago First seen · 659 lines · 5,739 tokens per session scan A f76af5465e3c

Subscribe to this mod's changes

SalesforceMobileSDK-Templates CLAUDE.md is an instructions file published in the GitHub repository forcedotcom/SalesforceMobileSDK-Templates (58 stars, last pushed 5d ago), licensed BSD-3-Clause. It adds 5,739 tokens to every session, about $0.0287 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens