forcedotcom avatar

Using Ui Bundle Salesforce Data

This walks Claude through Salesforce data access inside UI bundles using the Data SDK and GraphQL. It's heavily opinionated because the Salesforce GraphQL implementation has sharp edges: HTTP 200 doesn't mean success, missing the @optional directive breaks queries when users lack field permissions, and the schema is 265K lines you need to search with a script instead of opening directly. The precondition checks are useful since you can't write queries until schema.graphql exists and custom objects are deployed. If you're building forms or pages that touch Salesforce records in a UI bundle, this keeps you from making the mistakes that cause silent failures. The REST vs GraphQL decision tree and mutation syntax rules are the most immediately practical parts.

skills.sh installs
1.5K
GitHub stars
705
last updated
Jul 14, 2026

Install

$ npx -y skills add forcedotcom/afv-library --skill using-ui-bundle-salesforce-data --agent claude-code

Installs into .claude/skills of the current project.

Files

This walks Claude through Salesforce data access inside UI bundles using the Data SDK and GraphQL. It's heavily opinionated because the Salesforce GraphQL implementation has sharp edges: HTTP 200 doesn't mean success, missing the @optional directive breaks queries when users lack field permissions, and the schema is 265K lines you need to search with a script instead of opening directly. The precondition checks are useful since you can't write queries until schema.graphql exists and custom objects are deployed. If you're building forms or pages that touch Salesforce records in a UI bundle, this keeps you from making the mistakes that cause silent failures. The REST vs GraphQL decision tree and mutation syntax rules are the most immediately practical parts.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/forcedotcom/afv-library
Categories
Frontend Development, Sales & Marketing
First seen
May 16, 2026

More from forcedotcom/afv-library

All 58
1pproenca avatarexpo-react-native-performancepproenca/dot-skillsExpo React Native performance optimization guidelines. This skill should be used when writing, reviewing, or refactoring Expo React Native code to ensure optima1.5Kskills.sh installs
2pulumi avatarpulumi-componentpulumi/agent-skillsGuide for authoring Pulumi ComponentResource classes. Use when creating reusable infrastructure components, designing component interfaces, setting up multi-lan1.5Kskills.sh installs
3openai avatarfrontend-skillopenai/skillsUse when the task asks for a visually strong landing page, website, app, prototype, demo, or game UI. This skill enforces restrained composition, image-led hier1.5Kskills.sh installs
4lobehub avatarzustandlobehub/lobe-chatzustand1.4Kskills.sh installs
5quodsoler avatarue-actor-component-architecturequodsoler/unreal-engine-skillsUse this skill when working with Actor and component design in Unreal Engine. Triggers on: Actor, component, BeginPlay, Tick, SpawnActor, lifecycle, CreateDefau1.4Kskills.sh installs
6hyva-themes avatarhyva-alpine-componenthyva-themes/hyva-ai-toolsWrite CSP-compatible Alpine.js components for Hyvä themes in Magento 2. This skill should be used when the user wants to create Alpine components, add interacti1.3Kskills.sh installs