cirra-ai-sf-apex

Generates and reviews Apex code for Salesforce using Cirra AI MCP Server.

3|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/cirra-ai/skills --skill cirra-ai-sf-apex
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cirra-ai-sf-apex
Source: https://github.com/cirra-ai/skills/tree/main/cirra-ai-sf-apex/skills/cirra-ai-sf-apex
Command: npx skills add https://github.com/cirra-ai/skills --skill cirra-ai-sf-apex

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates Apex code generation and review for Salesforce developers, ensuring production-ready results aligned with Cirra AI MCP Server workflows and 2025 best practices.

Core Features & Use Cases

  • Generate Apex classes, triggers, tests, and related artifacts from requirements
  • Review existing Apex for best practices and provide actionable fixes
  • Validate and score code against multiple categories (bulkification, security, testing, architecture, etc.)
  • Deploy and interact with Salesforce metadata via Cirra AI MCP Server
  • Use cases include creating new components, refactoring, and code reviews within an MCP-enabled org

Quick Start

Initialize Cirra AI MCP with cirra_ai_init, then request an Apex class or trigger to be generated and deployed via the metadata API.

Frequently Asked Questions about cirra-ai-sf-apex

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

FAQPage Schema
How do I generate and deploy Apex code using the Salesforce Metadata API?▼

You can generate and deploy Apex code by initializing the Cirra AI MCP Server with cirra_ai_init, then requesting Apex classes or triggers. The server uses metadata_create and metadata_update operations to deploy the generated code directly to your Salesforce org.

What are the best practices for reviewing Apex code in Salesforce?▼

Apex code review best practices involve validating against multiple categories including bulkification, security, testing, and architecture. This Skill scores code across 8 categories and provides actionable fixes to ensure production-ready results aligned with 2025 standards.

Can I use Salesforce MCP server integration for Apex test class generation?▼

Yes, the Cirra AI MCP server integration supports generating Apex test classes alongside classes and triggers. It ensures end-to-end functionality by creating tests and related artifacts, then deploying them through metadata operations.

Does this Apex code generation tool work with existing Salesforce metadata?▼

Yes, the tool uses metadata_read to interact with existing Salesforce metadata. It can review and refactor existing Apex code, validate quality, and deploy updates through metadata_update operations within your MCP-enabled org.

What is included in an Apex code quality score validation?▼

Apex code quality validation scores code across 8 categories including bulkification, security, testing, and architecture. It reviews existing code for best practices, provides actionable fixes, and ensures secure metadata operations end-to-end.

Do I need to set up Cirra AI MCP before generating Apex classes?▼

Yes, you must initialize the Cirra AI MCP Server using cirra_ai_init before generating or reviewing Apex code. This setup enables the metadata API operations required for deployment and code quality validation.