
Generating Custom Lightning Type
If you're building Einstein Agent actions or working with structured inputs/outputs on Lightning Platform, this handles the gnarly JSON Schema stuff for Custom Lightning Types. The metaschema is surprisingly strict: unevaluatedProperties must be false, arrays can't use items, nested objects need CLT references instead of inline definitions, and adding the wrong keyword will break deployment. It walks you through the referenced CLT pattern, Apex class types, and primitive Lightning types like lightning__richTextType and lightning__dateTimeType. The spec is thorough on what works and what silently fails validation. Honestly, CLTs are complex enough that having guardrails around editor.json overrides and the root vs nested object rules saves real debugging time.
- skills.sh installs
- 1.5K
- GitHub stars
- 705
- last updated
- Jul 14, 2026
Install
$ npx -y skills add forcedotcom/afv-library --skill generating-custom-lightning-type --agent claude-codeInstalls into .claude/skills of the current project.
Files
If you're building Einstein Agent actions or working with structured inputs/outputs on Lightning Platform, this handles the gnarly JSON Schema stuff for Custom Lightning Types. The metaschema is surprisingly strict: unevaluatedProperties must be false, arrays can't use items, nested objects need CLT references instead of inline definitions, and adding the wrong keyword will break deployment. It walks you through the referenced CLT pattern, Apex class types, and primitive Lightning types like lightning__richTextType and lightning__dateTimeType. The spec is thorough on what works and what silently fails validation. Honestly, CLTs are complex enough that having guardrails around editor.json overrides and the root vs nested object rules saves real debugging time.
Browse the repository on GitHubSponsors
Details
- Repository
- github.com/forcedotcom/afv-library
- First seen
- May 16, 2026
More from forcedotcom/afv-library
All 58- Generating Custom Tab1.5K
- Generating Flexipage1.5K
- Generating Lightning App1.5K
- Generating List View1.5K
- Generating Ui Bundle Features1.5K
- Generating Ui Bundle Metadata1.5K
- Generating Ui Bundle Site1.5K
- Generating Validation Rule1.5K
- Implementing Ui Bundle Agentforce Conversation Client1.5K
- Implementing Ui Bundle File Upload1.5K
- Observing Agentforce1.5K
- Searching Media1.5K
- Switching Org1.5K
- Testing Agentforce1.5K
- Uplifting Components To Slds21.5K
- Using Ui Bundle Salesforce Data1.5K
- Creating B2b Commerce Store1.4K
- Generating Lwc Components541
- Querying Soql540
- Developing Datacloud Code Extension539
- Fetching Salesforce Docs537
- Getting Datacloud Schema536
- Deploying Metadata534
- Debugging Apex Logs532