forcedotcom avatar

Platform Custom Lightning Type Generate

If you're building Einstein Agent actions or custom UI for Lightning Platform and need to work with Custom Lightning Types, this handles the entire workflow. It knows the counterintuitive rules that will break deployment: no $schema field allowed, arrays can't use items, nested objects need the referenced CLT pattern instead of inline definitions. The metaschema is strict and the error messages are cryptic, so having the primitive type constraints, editor component patterns, and Apex class reference syntax in one place saves hours of trial and error. It also covers widget renditions if you need custom LWC editors or renderers with the correct attribute binding syntax.

skills.sh installs
5.8K
GitHub stars
1.2K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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.

Sponsors

Details

Repository
github.com/forcedotcom/sf-skills
Categories
Frontend Development, AI & Agent Building, Automation & Workflows
First seen
Jul 14, 2026

More from forcedotcom/sf-skills

All 158
1affaan-m avatarsecurity-scanaffaan-m/eccScan your Claude Code configuration (.claude/ directory) for security vulnerabilities, misconfigurations, and injection risks using AgentShield. Checks CLAUDE.m5.8Kskills.sh installs
2composiohq avatarwebapp-testingcomposiohq/awesome-claude-skillsToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing br4.9Kskills.sh installs
3raphaelsalaja avataruserinterface-wikiraphaelsalaja/userinterface-wikiUI/UX best practices for web interfaces. Use when reviewing animations, CSS, audio, typography, UX patterns, prefetching, or icon implementations. Covers 11 cat4.7Kskills.sh installs
4anthropics avatarcompetitive-intelligenceanthropics/knowledge-work-pluginsResearch your competitors and build an interactive battlecard. Outputs an HTML artifact with clickable competitor cards and a comparison matrix. Trigger with "c4.7Kskills.sh installs
5assistant-ui avatarmarkdownassistant-ui/skillsRender and customize assistant message text as markdown in assistant-ui. Use when displaying model output as formatted markdown with MarkdownTextPrimitive from 4.5Kskills.sh installs
6lobehub avatarproject-overviewlobehub/lobehubLobeHub open-source monorepo architecture map. Use when locating code layers, understanding apps/packages/src layout, business stubs, project structure, or onbo4.4Kskills.sh installs