commerce-b2b-open-code…
Integrate Salesforce B2B Commerce open source components from GitHub into B2B Commerce stores. Use when users mention \"integrate open code components\",…
Salesforce Industries Common Core (OmniStudio/Vlocity) Apex callable generation and review skill with 120-point scoring. Use when creating, reviewing, or migrating Industries callable Apex implementations. TRIGGER when: user creates or reviews System.Callable classes, migrates
$ npx -y skills add forcedotcom/sf-skills --skill omnistudio-callable-apex-generate --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/omnistudio-callable-apex-generateContext preview
The summary Claude sees to decide when to auto-load this skill.
Salesforce Industries Common Core (OmniStudio/Vlocity) Apex callable generation and review skill with 120-point scoring. Use when creating, reviewing, or migrating Industries callable Apex implementations. TRIGGER when: user creates or reviews System.Callable classes, migrates
name: omnistudio-callable-apex-generate
description: "Salesforce Industries Common Core (OmniStudio/Vlocity) Apex callable generation and review skill with 120-point scoring. Use when creating, reviewing, or migrating Industries callable Apex implementations. TRIGGER when: user creates or reviews System.Callable classes, migrates VlocityOpenInterface or VlocityOpenInterface2, or builds Industries callable extensions used by OmniStudio, Integration Procedures, or DataRaptors. DO NOT TRIGGER when: generic Apex classes or triggers (use platform-apex-generate), building Integration Procedures (use omnistudio-integration-procedure-generate), authoring OmniScripts (use omnistudio-omniscript-generate), configuring Data Mappers (use omnistudio-datamapper-generate), or analyzing namespace/dependency issues (use omnistudio-dependencies-analyze)."
metadata:
relatedSkills:
- "external-diagram-mermaid-generate"
- "omnistudio-datamapper-generate"
- "omnistudio-dependencies-analyze"
- "omnistudio-integration-procedure-generate"
- "omnistudio-omniscript-generate"
- "platform-apex-generate"
- "platform-apex-test-run"
- "platform-custom-field-generate"
- "platform-custom-object-generate"
- "platform-data-manage"
- "platform-metadata-deploy"
- "platform-soql-query"
version: "1.0"
domains: ["OmniStudio"]
minApiVersion: "60.0"Specialist for Salesforce Industries Common Core callable Apex implementations. Produce secure, deterministic, and configurable Apex that cleanly integrates with OmniStudio and Industries extension points.
---
1. **Callable Generation**: Build `System.Callable` classes with safe action dispatch 2. **Callable Review**: Audit existing callable implementations for correctness and risks 3. **Validation & Scoring**: Evaluate against the 120-point rubric 4. **Industries Fit**: Ensure compatibility with OmniStudio/Industries extension points
---
Ask for:
Then: 1. Scan for existing callable classes: `Glob: **/*Callable*.cls` 2. Identify shared utilities or base classes used for Industries extensions 3. Create a task list
---
**Define the callable contract**:
**Recommended response envelope**:
{
"success": true|false,
"data": {...},
"errors": [ { "code": "...", "message": "..." } ]
}**Action dispatch rules**:
**VlocityOpenInterface / VlocityOpenInterface2 contract mapping**:
When designing for legacy Open Interface extensions (or dual Callable + Open Interface support), map the signature:
invokeMethod(String methodName, Map<String, Object> inputMap, Map<String, Object> outputMap, Map<String, Object> options)
| Parameter | Role | Callable equivalent | |-----------|------|---------------------| | `methodName` | Action selector (same semantics as `action`) | `action` in `call(action, args)` | | `inputMap` | Primary input data (required keys, types) | `args.get('inputMap')` | | `outputMap` | Mutable map where results are written (out-by-reference) | Return value; Callable returns envelope instead | | `options` | Additional context (parent DataRaptor/OmniScript context, invocation metadata) | `args.get('options')` |
Design rules for Open Interface contracts:
---
**Vanilla System.Callable** (flat args, no Open Interface coupling):
**Read `assets/pattern_callable_vanilla.cls`** before generating — use when callers pass flat args and no VlocityOpenInterface integration is required.
**Callable skeleton** (same inputs as VlocityOpenInterface):
**Read `assets/pattern_callable_openinterface.cls`** before generating — use `inputMap` and `options` keys in `args` when integrating with Open Interface or when callers pass that structure.
**Input format**: Callers pass `args` as `{ 'inputMap' => Map<String, Object>, 'options' => Map<String, Object> }`. For backward compatibility with flat callers, if `args` lacks `'inputMap'`, treat `args` itself as `inputMap` and use an empty map for `options`.
**Implementation rules**: 1. Keep `call()` thin; delegate to private methods or service classes 2. Validate and coerce input types early (null-safe) 3. Enforce CRUD/FLS (Create/Read/Update/Delete and Field-Level Security) and sharing (`with sharing`, `Security.stripInaccessible()`) 4. Bulkify when args i
This repository provides a curated collection of Salesforce agent skills for building applications.
Repo: forcedotcom/sf-skills
Integrate Salesforce B2B Commerce open source components from GitHub into B2B Commerce stores. Use when users mention \"integrate open code components\",…
Replace OOTB (out-of-the-box) B2B Commerce components with open source equivalents in site metadata content.json files, or look up the equivalent open code…
Use this skill to diagnose and resolve what blocks a DevOps Center promotion of a work item's feature branch: Git merge conflicts and deployment failures.…
Use this skill to manage the full lifecycle of a DevOps Center pipeline — list all pipelines, get a single pipeline's details, create a new pipeline linked to…
Analyzes DevOps Center test failures and Code Analyzer violations in plain language — failure category, offending file/class/method/line, rule violated, fix…
Configures DevOps Center pipeline testing infrastructure: enables a test provider so its suites become available, re-syncs a configured provider to pull in new…