Skip to content
forcedotcom avatar

Platform Custom Lightning Type Generate

Custom Lightning Types definition skill that drafts JSON Schema for Agentforce actions and Lightning renderers.

CCM score
75 of 100
skills.sh installs
5.9K
GitHub stars
1.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers CLT generation for Einstein Agent action inputs and outputs, from schema drafting through editor and renderer configuration
  • Enforces the CLT metaschema rules, including no $schema field, unevaluatedProperties: false, and restricted list and nested-array handling
  • Provides a primitive-type reference and a CLT-reference pattern (c__<CLTName>) for reusable nested objects deployed separately
  • Designed for work involving lightning__objectType schemas, Apex-class CLTs, or custom LWC renderers, while widget bundles route to the coordinator skill

Install

$ npx -y skills add forcedotcom/sf-skills --skill platform-custom-lightning-type-generate -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

When to Use This Skill

Use this skill when you need to:

  • Create Custom Lightning Types (CLTs) for structured inputs/outputs
  • Generate JSON Schema-based type definitions for Lightning Platform
  • Configure CLTs for Einstein Agent actions
  • Set up editor and renderer configurations for custom UI
  • Troubleshoot deployment errors related to Custom Lightning Types

Specification

CustomLightningType Metadata Specification

Overview & Purpose

Custom Lightning Types (CLTs) are JSON Schema-based type definitions used by the Lightning Platform (including Einstein Agent actions) to describe structured inputs/outputs and drive editor/renderer experiences.

Details

Repository
github.com/forcedotcom/sf-skills
Category
AI Agents & LLM Apps
First seen
Jul 14, 2026

Questions

What does the platform-custom-lightning-type-generate skill do?

It creates Custom Lightning Types (CLTs), which are JSON Schema-based type definitions for structured inputs and outputs of Einstein Agent actions. It can also set up editor and renderer configurations for custom UI, and helps troubleshoot CLT deployment errors.

How do I install the platform-custom-lightning-type-generate skill?

Run npx -y skills add forcedotcom/sf-skills --skill platform-custom-lightning-type-generate -y in a project. The skill then lets the agent generate CLT schema files that follow the strict Custom Lightning Type metaschema rules.

Who is this skill for, and when should I use it?

It is for Salesforce developers who build Einstein Agent actions or need JSON schemas for agents. Use it when you mention CLT, Custom Lightning Types, lightning__objectType, or editor and renderer configurations. For widget renditions that combine a CLT with a Widget bundle, the page notes that a separate coordinator skill is the better fit.

More from forcedotcom/sf-skills

All 78

Similar to Platform Custom Lightning Type Generate

More AI Agents & LLM Apps