sf-apex-enterprise-patterns

Community

Implement scalable Apex enterprise architecture.

Authorjiten-singh-shahi
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Centralizes SOQL, separates business logic, and enforces atomic DML boundaries to reduce duplicated trigger logic, improve testability, and make growing Apex codebases maintainable as teams and class counts increase.

Core Features & Use Cases

  • Selector Layer: Centralize queries for each object to remove ad-hoc SOQL from business logic.
  • Domain Layer: Encapsulate record-level business rules and trigger behavior for easier testing and reuse.
  • Service & Unit of Work: Orchestrate cross-object processes, own transaction boundaries, and commit DML atomically using a Unit of Work pattern; supports either FFLIB or lightweight implementations.
  • Use Case: Migrate complex trigger logic into Domain classes and implement Services that coordinate Create/Update operations across Account and Opportunity records with a single atomic commit.

Quick Start

Use the sf-apex-enterprise-patterns guidance to review your Salesforce codebase and recommend Selector, Domain, Service, and Unit of Work structure for Accounts and Opportunities.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: sf-apex-enterprise-patterns
Download link: https://github.com/jiten-singh-shahi/salesforce-claude-code/archive/main.zip#sf-apex-enterprise-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.