sf-apex

Generate and review Salesforce Apex code against 2025 best practices.

6|Updated Dec 20, 2023
One-click install
npx skills add https://github.com/ronitnuguru/Package-Visualizer --skill sf-apex-ronitnuguru
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sf-apex
Source: https://github.com/ronitnuguru/Package-Visualizer/tree/main/.cursor/skills/sf-apex
Command: npx skills add https://github.com/ronitnuguru/Package-Visualizer --skill sf-apex-ronitnuguru

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps developers generate and review Salesforce Apex code to enforce 2025 best practices.

Core Features & Use Cases

  • Code Generation: Create Apex classes, triggers (TAF), tests, and batch jobs from requirements with documented patterns.
  • Code Review & Scoring: Analyze existing Apex for best-practices violations and produce actionable fixes, scored across 8 categories (bulkification, security, testing, architecture, etc.).
  • Deployment & Documentation Guidance: Provide guidance for deploying code and using related reference materials and templates.

Quick Start

Use the sf-apex skill to generate a new service class for Account management or review an existing class for bulkification issues.

Frequently Asked Questions about sf-apex

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Apex code for Salesforce that follows 2025 best practices?

To generate Apex code aligned with 2025 best practices, provide your requirements to create classes, triggers, tests, and batch jobs using documented patterns and automated scoring across bulkification, security, testing, and architecture.

What is the best way to review existing Apex code for bulkification and security violations?

The best way to review existing Apex code is to analyze it for best-practice violations, producing actionable fixes and a scored report across eight categories including bulkification, security, testing, and architecture.

Does this Apex code generation approach support Trigger Action Framework and Flow patterns?

Yes, this Apex code generation approach supports Trigger Action Framework and Flow patterns, integrating deployment guidance and reference templates to ensure production-ready results for Salesforce environments.

Can I use this tool to generate service classes and batch jobs for Account management?

Yes, you can use this tool to generate service classes and batch jobs for Account management by providing the specific requirements to create Apex code with documented patterns.

What categories are scored during an Apex code review?

An Apex code review scores code across eight categories, specifically evaluating bulkification, security, testing, and architecture to identify best-practice violations and suggest actionable fixes.