forcedotcom avatar

Generating Custom Lightning Type

This handles the surprisingly complex world of Custom Lightning Types for Einstein Agent actions and structured data schemas. If you're wiring up agent inputs/outputs or building custom UI components on Lightning Platform, you'll need JSON Schema with Lightning-specific extensions, and the validation rules are strict and often counterintuitive. Arrays are especially tricky since the metaschema rejects most standard JSON Schema patterns. The skill knows when to use CLT references versus Apex class types versus primitives, and crucially, it understands the editor/renderer configuration format including the root override pattern with attribute mapping. Save yourself the deployment errors and reference this before you write schema.json by hand.

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

Install

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

Installs into .claude/skills of the current project.

Files

This handles the surprisingly complex world of Custom Lightning Types for Einstein Agent actions and structured data schemas. If you're wiring up agent inputs/outputs or building custom UI components on Lightning Platform, you'll need JSON Schema with Lightning-specific extensions, and the validation rules are strict and often counterintuitive. Arrays are especially tricky since the metaschema rejects most standard JSON Schema patterns. The skill knows when to use CLT references versus Apex class types versus primitives, and crucially, it understands the editor/renderer configuration format including the root override pattern with attribute mapping. Save yourself the deployment errors and reference this before you write schema.json by hand.

Browse the repository on GitHub

Sponsors

Details

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

More from forcedotcom/sf-skills

All 158
1inngest avatarinngest-setupinngest/inngest-skillsUse when adding durable execution to a TypeScript project — building retry-safe webhook handlers, background jobs that survive crashes, scheduled tasks, or long3.9Kskills.sh installs
2dotnet avatarmaui-collectionviewdotnet/skillsGuidance for implementing CollectionView in .NET MAUI apps — data display, layouts (list & grid), selection, grouping, scrolling, empty views, templates, increm3.9Kskills.sh installs
3benjaminsehl avatarshopify-liquid-themesbenjaminsehl/liquid-skillsGenerate Shopify Liquid theme code (sections, blocks, snippets) with correct schema JSON, LiquidDoc headers, translation keys, and CSS/JS patterns. Use when cre3.9Kskills.sh installs
4freshtechbro avatarblender-web-pipelinefreshtechbro/claudedesignskillsBlender to web export workflows for 3D models and animations. Use this skill when exporting Blender models to glTF for web, optimizing 3D assets for Three.js or3.9Kskills.sh installs
5majidmanzarpour avatarthreejs-gameplay-systemsmajidmanzarpour/threejs-game-skillsBuild and iterate playable Three.js game systems. Combines starter scaffold creation, architecture, game design, level design, gameplay implementation, combat/e3.8Kskills.sh installs
6mantinedev avatarmantine-comboboxmantinedev/skillsBuild custom dropdown/select/autocomplete/multiselect components using Mantine's Combobox primitives. Use this skill when: (1) creating a new custom select-like3.8Kskills.sh installs