No slash command · from Salesforce — Industries
Patches an existing deployed Salesforce Data Capture Flow by retrieving live Flow Metadata JSON via the Tooling API, applying requested changes, and PATCHing it back. Use for adding/removing/renaming fields, visibility fixes, or swapping placeholders.
Ships in Salesforce — Industries. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill patches a flow that already exists in a connected org. The source of truth is the deployed flow's Metadata JSON, retrieved live from the Tooling Flow sObject — there is no spec file, no .flow-meta.xml, no zip, no SFDX project. The skill retrieves the JSON, edits it in memory, and PATCHes it back.
Runtime contract: every org interaction in this skill is a REST call dispatched through the Codey runtime (
dispatchlocally / the hosted Headless 360 MCP in shared surfaces). This skill has no dependency on the execution environment — nosfCLI, no local Python, no temp files, no scratch SFDX project. Auth probes, the flow retrieve, and the redeploy are single REST calls; the JSON patch is authored by the agent inline. Do not shell out.
Inventory_Transfer, Asset_Inspection, etc.) and asks for a change.If the user is starting from scratch (prose, PDF, image), route to a design-* skill instead.
Confirm the connected org is reachable with a cheap auth probe — dispatch SELECT Id FROM Organization LIMIT 1 (GET /services/data/vXX.0/query):
totalSize=1 → the session token is live; continue.The Tooling Flow sObject exposes the flow definition as a JSON Metadata field — the same shape the deployer assembles and POSTs. Retrieving is a two-call round-trip, no CLI and no file:
Resolve the latest version id from the API name. Dispatch GET /services/data/vXX.0/tooling/query with:
SELECT Id, ActiveVersionId, LatestVersionId FROM FlowDefinition WHERE DeveloperName = '<FlowApiName>'
Edit the latest version (LatestVersionId) so the patch builds on the newest draft, not a stale active version. If LatestVersionId is null, fall back to ActiveVersionId.
Read the Metadata blob. Dispatch GET /services/data/vXX.0/tooling/sobjects/Flow/<versionId> and take the Metadata object from the response. This JSON is the flow — screens, choices, decisions, variables, and the post-screen chain. See ../fs-data-capture-form-deployer/reference/flow-metadata-json.md for the shape.
If the FlowDefinition query returns zero rows, the API name is wrong or the user is pointed at the wrong org. Confirm with the user before retrying. List the candidate flows in the org if useful — dispatch GET /services/data/vXX.0/tooling/query with SELECT DeveloperName FROM FlowDefinition ORDER BY DeveloperName.
Before patching, read the retrieved Metadata JSON to understand the current structure, then read fs-data-capture-reference/SKILL.md for the platform's hard constraints. The constraints are identical whether the flow is expressed as XML or JSON — a repeated XML element is a JSON array, so "grouping" becomes "the array" (see the JSON↔XML mapping rule in ../fs-data-capture-form-deployer/reference/flow-metadata-json.md). Pay particular attention to:
screens, choices, decisions, recordLookups, recordCreates, recordUpdates, loops, assignments, variables are each a single JSON array. Add a new element by appending to the right array — never introduce a duplicate top-level key..AllItems vs .AddedItems Repeater accessor — use what the deployed flow uses, don't change it.visibilityRule.conditions entry, leftValueReference is the choice api-name, not the parent field's name.fs-data-capture-reference SKILL.md).isLlmTargetable: carried as a { "stringValue": "true" }-style wrapper, not a raw JSON boolean — match whatever the retrieved flow uses.The prohibited-patterns table at the bottom of fs-data-capture-reference/SKILL.md is the fastest reference for "what would break this patch".
Before editing, tell the user:
path:line references), and what the result will look like.<recordLookups> element when none exist requires placing it in the right group. Call this out.Use AskUserQuestion to gate the edit. Options:
Do not proceed to step 5 without explicit approval.
Edit the in-memory Metadata JSON object retrieved in step 2. Some specific guidelines:
screens array; a choice, to choices; a variable, to variables. Never create a second top-level key of the same name."isRequired": true, "locationX": 0 — not strings. Typed value wrappers keep their key ({ "stringValue": "X" }, { "booleanValue": true }, { "elementReference": "Foo" }).locationX / locationY for existing elements. For new elements set both to 0 — Flow Builder re-layouts on open..AllItems / .AddedItems accessor in any loops — switching accessors will break runtime behavior.inputsOnNextNavToAssocScrn, storeOutputAutomatically, styleProperties, isRequired). Don't compose from memory — the rules at fs-data-capture-reference/SKILL.md show what's required per component, but the deployed flow already has working examples.choices entry, dedupe — check whether a choice with the same value already exists in the choices array.required inputParameter on a screen component — some dc* components (dcName, dcSignature) reject it. Carry requiredness via the field's isRequired key only.Push the edited flow back as a new draft version with a single Tooling API call — dispatch PATCH /services/data/vXX.0/tooling/sobjects/Flow/<versionId> with body:
{ "Metadata": { "...the full edited Metadata object..." } }
Metadata object, not a partial patch — Tooling replaces the whole blob.message carries the Flow validation error — diagnose against step 7's table.Metadata.status: "Active" — default is to leave it Draft.)On success:
Notes ShortText field to Header_Information screen").GET /services/data/vXX.0/tooling/query with SELECT Id, ActiveVersionId FROM FlowDefinition WHERE DeveloperName = '<FlowApiName>' → <instanceUrl>/builder_platform_interaction/flowBuilder.app?flowId=<id>On failure (the PATCH returned a 400 — read the error from the response body's message):
Element X doesn't exist (typo'd reference), extension not found (wrong component name), 'Range' is not a valid value (slider not supported), We can't find this input attribute: 'required' (drop the required inputParameter — use isRequired).GET /tooling/sobjects/Flow/<ActiveVersionId>).fs-data-capture-form-designer + fs-data-capture-form-deployer.processType=DataCaptureFlow — this skill assumes the FSL Mobile runtime.fs-data-capture-reference (library) — read this before every edit. Source of truth for valid flow patterns, prohibited patterns + exact deploy errors, visual polish HTML, supporting CustomObject/PermissionSet/CustomTab deploy.fs-data-capture-form-deployer — creates flows via the same Tooling Flow JSON round-trip this skill uses to patch them. Its reference/flow-metadata-json.md is the authoritative Metadata shape for both skills.This skill has no executable scripts. The auth probe, the flow retrieve (GET /tooling/sobjects/Flow/{id}), and the redeploy (PATCH /tooling/sobjects/Flow/{id}) are all single REST calls dispatched through the Codey runtime. The JSON patch is authored by the agent inline against ../fs-data-capture-form-deployer/reference/flow-metadata-json.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub reej-consulting/reej-sf-skills --plugin sf-industries33 skills in this plugin
/consumer-goods-accruals-datakit-deployUse this skill to deploy the TPM Liability Accruals data kit end to end to a Salesforce org. Invoke when a customer or teammate wants to install the accrual engine, verify the Data Cloud connection, deploy the Data Kit components, and schedule the export and accrual calculation chain. Trigger phrases include: 'deploy the accrual data kit', 'set up liability accruals', 'install TPM accruals', 'headless accruals setup', 'configure the Data Cloud export connector', 'schedule the accrual chain'. Do NOT use for creating a Data Space alone (use platform-dataspace-access-configure), for generic Salesforce metadata deployment (use platform-metadata-deploy), for querying org data only (use platform-soql-query), or when setting up the data kit for the Trade Promotion Effectiveness (TPE) feature (use consumer-goods-tpe-datakit-deploy instead)./consumer-goods-promotion-bo-api-deployUse to enable the Consumer Goods Cloud TPM Promotion Business Object (BO) API framework in a Salesforce org, interview the user for the custom Workflow Step they want to add, generate and deploy that Apex class, wire it into the create/update/copy workflows, and prove it end-to-end via headless REST ingest. Ships a worked reference example (SetCommentValue) but the customization is user-supplied per org. Triggers on "deploy the promotion BO API", "set up promotion BO API", "headless promotion create", "add a BO API workflow step"./consumer-goods-rtr-datacloud-export-configureConfigure a Trade Promotion Management (TPM) org's RTR (Real Time Reporting) export pipeline to push promotion measures into Data Cloud (Data 360) for Trade Promotion Effectiveness (TPE) dashboards. Use when a customer or admin wants to set up the RTR export for Data Cloud measures, configure the RTR report for TPE, or as a delegated step from consumer-goods-tpe-dashboard-configure./consumer-goods-sync-management-configureUse this skill to set up Salesforce Consumer Goods (CG) Cloud Mobile Sync end-to-end for the Sync Management App managed package — it runs all three acts in order (Act 1 Setup Sync, Act 2 Assign Users, Act 3 Plan & Verify), not just installing the baseline, so a sales rep can see the day's planned visits offline. Use it when asked to "set up CG Cloud mobile sync", "configure Consumer Goods mobile sync", "set up sync for Retail Execution", "install the sync baseline", "assign a user to the sync configuration", "verify the sync setup", or "why can't my rep see their planned visits offline" when sync setup or the baseline install is suspected. DO NOT TRIGGER for general CG Cloud mobile-app troubleshooting unrelated to sync setup, for authoring new or custom sync baselines (this installs only shipped baselines discovered at runtime), or for building or customizing the mobile app UI itself — those are out of scope./consumer-goods-tpe-dashboard-configureEnd-to-end headless setup of Trade Promotion Effectiveness (TPE) dashboards for a Trade Promotion Management (TPM) Cloud org, covering tenant pairing checks, permission sets, SSOT and Tableau Next enablement, C360 SDM verification, the TPM Accruals data kit install, business-period export, RTR Data Cloud export configuration, the TPM_PROMOTION_MEASURE Data Transform, TPE Analytics app install, and optional KPI dashboard customization. Use when a customer or admin wants to set up TPE dashboards, enable Trade Promotion Effectiveness, install the TPE analytics app, or set up and customize TPE dashboards with their own KPIs./consumer-goods-tpe-dashboard-custom-kpi-configureCustomize the Trade Promotion Effectiveness (TPE) Analytics dashboards' generic KPI slots (Promotion Measure 1-3, Tactic Measure 1-2) with customer-chosen KPI measure codes and display names, without touching the shipped base model. Use when a customer/admin wants to "customize TPE dashboards", "change the KPIs on the Promotion/Tactic Analysis dashboard", or "swap in our own measure codes on the TPE dashboard".3 plugins ship this exact skill · first indexed Sep 11, 2026
Other plugins' skills for the same job