Back to Skills

omnistudio-callable-apex-generate

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-g

753stars278forksUpdated 7/25/2026

Security Assessment

Safe(95/100)
Security Score95/100

About omnistudio-callable-apex-generate

This skill generates and reviews Salesforce Industries Common Core (OmniStudio/Vlocity) callable Apex — classes implementing `System.Callable` that serve as extension points for OmniScripts, Integration Procedures, and DataRaptors. It addresses the problem of producing secure, deterministic, and configurable Apex that integrates cleanly with Industries components, and of migrating legacy `VlocityOpenInterface` and `VlocityOpenInterface2` implementations to the modern `System.Callable` pattern.

The skill follows a four-phase workflow: requirements gathering (entry point, action names, input/output contract, data access needs, side effects), design and contract definition (explicit versioned action strings, a consistent response envelope of success/data/errors, `switch on action` dispatch with a typed default exception, and a mapping table translating the legacy `invokeMethod` signature to the callable contract), an implementation phase with vanilla and Open-Interface-compatible patterns, and a testing phase. Generated code follows security guardrails — `with sharing`, CRUD/FLS checks, `stripInaccessible`, null-safe type coercion, and no dynamic method invocation or reflection. Every implementation is graded against a 120-point rubric spanning contract and dispatch, input validation, security, error handling, bulkification and limits, testing, and documentation, with thresholds of 90+ (ready), 70-89 (review), and below 70 (block). Bundled examples include a read-only SOQL callable and full VlocityOpenInterface / VlocityOpenInterface2 conversion transcripts.

Target users are Salesforce Industries and OmniStudio developers building or auditing callable Apex extensions, and teams migrating off deprecated Vlocity Open Interface classes. It defers generic Apex, Integration Procedure authoring, OmniScript authoring, Data Mapper configuration, and deployment to sibling skills.

FAQ

What does the 120-point scoring rubric measure?

It scores callable Apex across seven categories: contract and dispatch (20), input validation (20), security (20), error handling (15), bulkification and limits (20), testing (15), and documentation (10), with 90+ meaning ready to ship.

Can it migrate legacy VlocityOpenInterface code?

Yes. It provides Phase 2 contract mapping and Phase 3 implementation patterns to move VlocityOpenInterface and VlocityOpenInterface2 classes to System.Callable, preserving action names and returning a response envelope instead of mutating an output map. Bundled examples show both conversions.

What security practices does the generated Apex follow?

It enforces with sharing, CRUD/FLS checks, stripInaccessible, null-safe type coercion, explicit switch-on-action dispatch with a typed default exception, and avoids dynamic method invocation or reflection.

When should I not use this skill?

Not for generic Apex classes or triggers (use platform-apex-generate), building Integration Procedures, authoring OmniScripts, configuring Data Mappers, or deploying classes — those have dedicated sibling skills.

What response format does it standardize on?

A consistent JSON-style envelope with success (boolean), data, and an errors array of objects containing code and message.

All Files

21 files
examples/Test_VlocityOpenInterfaceConversion/IndustriesCallableException.cls0.3 KB
View
examples/Test_VlocityOpenInterfaceConversion/MyCustomCallableTest.cls4.8 KB
View
examples/Test_VlocityOpenInterfaceConversion/TRANSCRIPT.md3.4 KB
View
README.md3.6 KB
View
SKILL.md15.3 KB
View
assets/pattern_openinterface.cls1.9 KB
View
examples/Test_QuoteByProductCallable/IndustriesCallableException.cls0.3 KB
View
assets/pattern_callable_openinterface.cls1.7 KB
View
assets/pattern_test_class.cls2.4 KB
View
examples/Test_QuoteByProductCallable/TRANSCRIPT.md4.4 KB
View
examples/Test_VlocityOpenInterface2Conversion/MyCustomRemoteClass.cls0.6 KB
View
examples/Test_QuoteByProductCallable/Industries_QuoteByProductCallable.cls4.4 KB
View
examples/Test_VlocityOpenInterface2Conversion/IndustriesCallableException.cls0.3 KB
View
assets/pattern_callable_vanilla.cls1.4 KB
View
assets/pattern_migration.cls2.6 KB
View
examples/Test_QuoteByProductCallable/Industries_QuoteByProductCallableTest.cls6.7 KB
View
examples/Test_VlocityOpenInterface2Conversion/MyCustomCallable.cls3.1 KB
View
examples/Test_VlocityOpenInterface2Conversion/TRANSCRIPT.md4.8 KB
View
examples/Test_VlocityOpenInterfaceConversion/MyCustomClass.cls0.8 KB
View
examples/Test_VlocityOpenInterface2Conversion/MyCustomCallableTest.cls5.5 KB
View
examples/Test_VlocityOpenInterfaceConversion/MyCustomCallable.cls3.0 KB
View

Install omnistudio-callable-apex-generate

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill