salesforce-local-dev-loop

v2026.09.24

Build a repeatable Salesforce DX development loop using source format, synthetic tests, and an authorized scratch org or sandbox. Use when changing metadata or integration code. Trigger with "build a Salesforce dev loop".

GitHub
安装命令
npx skhub add jeremylongshore/salesforce-local-dev-loop
Markdown
SKILL.md

Salesforce DX Local Development Loop

Overview

Create a source-driven loop that separates static and synthetic checks from explicitly authorized org validation and leaves no unmanaged test data.

Prerequisites

  • A Salesforce DX project or an approved migration plan to source format
  • An authorized Dev Hub and scratch-org definition, or a dedicated development sandbox
  • Synthetic fixtures, test owner, cleanup policy, and current Salesforce CLI contract

Tool Discipline

Use Read, Glob, and Grep to inspect approved repository and evidence files, WebFetch to re-check current first-party Salesforce documentation, and Write or Edit only for secretless plans, fixtures, configuration, and redacted receipts.

Current Contract

Salesforce DX supports source-driven development and scratch orgs configured through project definitions; org availability, features, limits, duration, namespaces, and sandbox alternatives depend on the customer environment.

Authentication

Use a named CLI alias backed by the approved OAuth path. Never commit authorization files, access tokens, private keys, usernames, org IDs, or generated user passwords.

Instructions

  1. Inspect project configuration, package directories, metadata ownership, API versions, hooks, and current CLI pin.
  2. Choose a scratch org or development sandbox based on feature fidelity, data need, namespace, and lifecycle constraints.
  3. Create synthetic fixtures and local contract tests that require no live org or secret.
  4. Run formatting, static analysis, unit tests, schema checks, and metadata dependency checks locally.
  5. With approval, create or authenticate the development org and deploy only the bounded source set.
  6. Run Apex, Flow, Lightning, and integration tests applicable to the change; capture aggregate results and IDs only.
  7. Delete synthetic data, close or expire temporary orgs, revoke temporary access, and record reproducible commands.

Approval Boundaries

Do not create orgs, enable features, deploy metadata, load data, or change remote configuration without Dev Hub, admin, and component-owner approval.

Output

Return the environment decision, pinned toolchain, source and fixture map, local and org test results, cleanup receipt, and remaining fidelity gaps.

Error Handling

ConditionResponse
Scratch-org feature does not match productionUse an approved sandbox or revise the definition; do not weaken production metadata.
Deployment reports missing dependenciesAdd the dependency explicitly or reduce the source set before retrying.
Test data cannot be proven syntheticStop and replace it before local export or CI use.

Example

A redacted completion receipt might look like this:

project=sfdx; target=scratch-org; fixtures=synthetic; static=pass; deploy=validated; apex=pass; cleanup=complete

Resources

Next Steps

Run the workflow first in the lowest-risk authorized org and preserve its redacted receipt. Schedule a review against the next Salesforce seasonal release and the customer change calendar.

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

MIT

源路径

skills/.curated/salesforce-local-dev-loop

默认分支

main

最新提交

e5a6c3b

Tree SHA

c2dc8e8