generating-flexipage

Create and modify Salesforce Lightning FlexiPages using Salesforce CLI commands.

Updated May 19, 2026
One-click install
npx skills add https://github.com/dmckeeSF/mcpdctn0507 --skill generating-flexipage-dmckeesf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generating-flexipage
Source: https://github.com/dmckeeSF/mcpdctn0507/tree/main/.agents/skills/generating-flexipage
Command: npx skills add https://github.com/dmckeeSF/mcpdctn0507 --skill generating-flexipage-dmckeesf

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies the creation, modification, and validation of Salesforce Lightning pages (FlexiPages), helping users streamline the process and reduce common deployment errors.

Core Features & Use Cases

  • FlexiPage Creation: Bootstrap FlexiPages using the Salesforce CLI to generate valid XML structure, regions, and components.
  • Component Addition: Add and configure components like tabs, accordions, and field sections to FlexiPages.
  • Deployment Guidance: Troubleshoot deployment errors and understand the structure and configuration of FlexiPages.
  • Use Case: When you need to quickly create a custom Lightning page for a specific object or to enhance a Salesforce page layout.

Quick Start

Run the Salesforce CLI command to generate a FlexiPage template: sf template generate flexipage --name <PageName> --template <RecordPage|AppPage|HomePage> --output-dir force-app/main/default/flexipages

Frequently Asked Questions about generating-flexipage

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

FAQPage Schema
How do I create a custom Salesforce Lightning page using XML?

To create a custom Salesforce Lightning page, you can use the Salesforce CLI to generate a FlexiPage template with valid XML structure, regions, and components. Run the command `sf template generate flexipage` and specify the page name and template type (RecordPage, AppPage, or HomePage).

Can I add components like tabs and accordions to an existing FlexiPage?

Yes, you can add and configure components such as tabs, accordions, and field sections to an existing FlexiPage. This Skill streamlines the process of modifying Lightning page XML files to insert and arrange these UI elements within defined regions.

Do I need to know Salesforce CLI to generate FlexiPages?

Yes, you need familiarity with the Salesforce CLI and XML file manipulation to use this Skill effectively. It leverages CLI commands for component discovery and configuration, assuming you have a functional Salesforce development environment set up.

What is the best way to troubleshoot FlexiPage deployment errors?

The best way to troubleshoot FlexiPage deployment errors is to validate the XML structure and component configurations. This Skill provides guidance on identifying common configuration issues and understanding the underlying FlexiPage structure to resolve deployment failures.

What types of Salesforce Lightning pages can I build with this approach?

You can build three types of Salesforce Lightning pages: custom record pages, app pages, and home pages. The FlexiPage generation process supports specifying the template type to match your specific use case and object requirements.