platform-flexipage-generate

Generate and validate Salesforce Lightning pages (FlexiPages) via CLI and XML.

Updated Jul 2, 2026
One-click install
npx skills add https://github.com/padjei/SF_Agents --skill platform-flexipage-generate-padjei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: platform-flexipage-generate
Source: https://github.com/padjei/SF_Agents/tree/main/.claude/skills/platform-flexipage-generate
Command: npx skills add https://github.com/padjei/SF_Agents --skill platform-flexipage-generate-padjei

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sf, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation, modification, and validation of Salesforce Lightning pages (FlexiPages), streamlining the process of building and managing custom page layouts.

Core Features & Use Cases

  • FlexiPage Creation: Generate FlexiPages from the command line using predefined templates.
  • Component Addition: Add components to existing FlexiPages and customize them.
  • Deployment Validation: Validate FlexiPage XML files and troubleshoot deployment errors.
  • Use Case: For a Salesforce admin who needs to quickly create a new Lightning page for a custom object, this Skill can generate the FlexiPage with the correct structure and components, saving time and reducing errors.

Quick Start

Generate a new FlexiPage for the 'Account' object with the 'RecordPage' template and add a 'richText' component to the header.

Frequently Asked Questions about platform-flexipage-generate

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

FAQPage Schema
How do I automate Salesforce Lightning page creation using the command line?

You can automate Salesforce Lightning page creation by using Salesforce CLI and XML manipulation to generate FlexiPages from predefined templates, add components, and validate deployments. This streamlines building custom page layouts without manual UI configuration.

Can I add components to an existing FlexiPage without using the Salesforce UI?

Yes, you can add components to existing FlexiPages by directly manipulating the FlexiPage XML files via Salesforce CLI. This allows you to customize page structures and insert components like richText into specific regions programmatically.

Do I need Salesforce CLI to generate and deploy FlexiPage XML files?

Yes, Salesforce CLI is a required dependency to generate and deploy FlexiPage XML files. You also need XML parsing libraries to handle the manipulation of the FlexiPage structure and validate the deployment process.

What is the best way to validate FlexiPage deployment errors before pushing to Salesforce?

The best way to validate FlexiPage deployment errors is to use automated XML validation scripts that check the FlexiPage structure before pushing. This troubleshooting process ensures the Lightning page XML conforms to Salesforce requirements and reduces deployment failures.

How does XML manipulation work for customizing Salesforce Lightning pages?

XML manipulation customizes Salesforce Lightning pages by directly editing the FlexiPage XML markup to define component structure, layout regions, and properties. This method bypasses the standard UI editor, allowing automated batch generation and precise layout control.

Why does my automated FlexiPage generation fail during deployment?

Automated FlexiPage generation fails during deployment when the generated XML structure contains syntax errors or invalid component references. Using built-in validation scripts to check the FlexiPage XML against Salesforce standards helps troubleshoot and resolve these deployment errors.