From 0b2b71662571a4d2b52d0e99a4189be1db4af852 Mon Sep 17 00:00:00 2001 From: k-j-kim Date: Wed, 1 Apr 2026 16:13:09 -0700 Subject: [PATCH] fix: standardize uiBundles/*/src/ directory trigger across all ui-bundle skills --- skills/building-ui-bundle-app/SKILL.md | 2 +- skills/deploying-ui-bundle/SKILL.md | 2 +- skills/generating-ui-bundle-features/SKILL.md | 2 +- skills/generating-ui-bundle-metadata/SKILL.md | 2 +- skills/generating-ui-bundle-site/SKILL.md | 2 +- skills/implementing-ui-bundle-file-upload/SKILL.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/skills/building-ui-bundle-app/SKILL.md b/skills/building-ui-bundle-app/SKILL.md index 3a6184f..d081803 100644 --- a/skills/building-ui-bundle-app/SKILL.md +++ b/skills/building-ui-bundle-app/SKILL.md @@ -1,6 +1,6 @@ --- name: building-ui-bundle-app -description: "MUST activate when the prompt says create, build, construct, or generate a new app, site, or page from scratch — even if the prompt also describes visual styling. MUST also activate when the task spans more than one ui-bundle skill. This is the orchestrator that coordinates scaffolding, features, data access, frontend UI, integrations, and deployment in the correct dependency order. Without it, phases execute out of order and the app breaks. Do NOT use for Lightning Experience apps with custom objects (use generating-lightning-app). Do NOT use for single-concern edits to an existing page (use building-ui-bundle-frontend)." +description: "MUST activate when the project contains a uiBundles/*/src/ directory or sfdx-project.json and the prompt says create, build, construct, or generate a new app, site, or page from scratch — even if the prompt also describes visual styling. MUST also activate when the task spans more than one ui-bundle skill. This is the orchestrator that coordinates scaffolding, features, data access, frontend UI, integrations, and deployment in the correct dependency order. Without it, phases execute out of order and the app breaks. Do NOT use for Lightning Experience apps with custom objects (use generating-lightning-app). Do NOT use for single-concern edits to an existing page (use building-ui-bundle-frontend)." metadata: version: "1.0" related-skills: generating-ui-bundle-metadata, generating-ui-bundle-features, using-ui-bundle-salesforce-data, building-ui-bundle-frontend, implementing-ui-bundle-agentforce-conversation-client, implementing-ui-bundle-file-upload, deploying-ui-bundle, generating-experience-react-site diff --git a/skills/deploying-ui-bundle/SKILL.md b/skills/deploying-ui-bundle/SKILL.md index 97f7ebb..f9cd684 100644 --- a/skills/deploying-ui-bundle/SKILL.md +++ b/skills/deploying-ui-bundle/SKILL.md @@ -1,6 +1,6 @@ --- name: deploying-ui-bundle -description: "MUST activate when the project contains a uiBundles/ directory or sfdx-project.json and the task involves deploying, pushing to an org, or post-deploy setup. Covers the full deployment sequence: org authentication, pre-deploy build, metadata deployment, permission set assignment, data import, GraphQL schema fetch, and codegen. Activate when files like *.uibundle-meta.xml or sfdx-project.json exist and the user mentions deploying, pushing, org setup, or post-deploy tasks." +description: "MUST activate when the project contains a uiBundles/*/src/ directory or sfdx-project.json and the task involves deploying, pushing to an org, or post-deploy setup. Covers the full deployment sequence: org authentication, pre-deploy build, metadata deployment, permission set assignment, data import, GraphQL schema fetch, and codegen. Activate when files like *.uibundle-meta.xml or sfdx-project.json exist and the user mentions deploying, pushing, org setup, or post-deploy tasks." --- # Deploying a UI Bundle diff --git a/skills/generating-ui-bundle-features/SKILL.md b/skills/generating-ui-bundle-features/SKILL.md index d0f4f0b..cb5a7ca 100644 --- a/skills/generating-ui-bundle-features/SKILL.md +++ b/skills/generating-ui-bundle-features/SKILL.md @@ -1,6 +1,6 @@ --- name: generating-ui-bundle-features -description: "MUST activate when the project contains a uiBundles/ directory and the user wants to add authentication or search to their React app. Only covers two features: authentication (login, logout, protected routes, session management) and search (global search across pages and content). Always use this skill for these two features instead of building from scratch." +description: "MUST activate when the project contains a uiBundles/*/src/ directory and the user wants to add authentication or search to their React app. Only covers two features: authentication (login, logout, protected routes, session management) and search (global search across pages and content). Always use this skill for these two features instead of building from scratch." --- # UI Bundle Features diff --git a/skills/generating-ui-bundle-metadata/SKILL.md b/skills/generating-ui-bundle-metadata/SKILL.md index 93d6d26..9293517 100644 --- a/skills/generating-ui-bundle-metadata/SKILL.md +++ b/skills/generating-ui-bundle-metadata/SKILL.md @@ -1,6 +1,6 @@ --- name: generating-ui-bundle-metadata -description: "MUST activate when scaffolding a new UI bundle or React app, or when editing ui-bundle.json, .uibundle-meta.xml, or CSP trusted site files. Scaffold with sf template generate ui-bundle --template reactbasic and configure ui-bundle.json (routing, headers, outputDir) and CSP Trusted Sites. Activate when the task involves files matching *.uibundle-meta.xml, ui-bundle.json, or cspTrustedSites/*.cspTrustedSite-meta.xml." +description: "MUST activate when the project contains a uiBundles/*/src/ directory and scaffolding a new UI bundle or React app, or when editing ui-bundle.json, .uibundle-meta.xml, or CSP trusted site files. Scaffold with sf template generate ui-bundle --template reactbasic and configure ui-bundle.json (routing, headers, outputDir) and CSP Trusted Sites. Activate when the task involves files matching *.uibundle-meta.xml, ui-bundle.json, or cspTrustedSites/*.cspTrustedSite-meta.xml." --- # UI Bundle Metadata diff --git a/skills/generating-ui-bundle-site/SKILL.md b/skills/generating-ui-bundle-site/SKILL.md index c51f4c2..4691e2a 100644 --- a/skills/generating-ui-bundle-site/SKILL.md +++ b/skills/generating-ui-bundle-site/SKILL.md @@ -1,6 +1,6 @@ --- name: generating-ui-bundle-site -description: "MUST activate when the project contains a uiBundles/ directory and the task involves creating or configuring site infrastructure. Create or configure a Salesforce Digital Experience Site for hosting a React UI bundle. Activate when files matching digitalExperiences/, networks/, customSite/, or DigitalExperienceBundle exist and need modification, or when the user wants to publish, host, or configure guest access for their React app." +description: "MUST activate when the project contains a uiBundles/*/src/ directory and the task involves creating or configuring site infrastructure. Create or configure a Salesforce Digital Experience Site for hosting a React UI bundle. Activate when files matching digitalExperiences/, networks/, customSite/, or DigitalExperienceBundle exist and need modification, or when the user wants to publish, host, or configure guest access for their React app." --- # Digital Experience Site for React UI Bundles diff --git a/skills/implementing-ui-bundle-file-upload/SKILL.md b/skills/implementing-ui-bundle-file-upload/SKILL.md index 80ad520..7e911f6 100644 --- a/skills/implementing-ui-bundle-file-upload/SKILL.md +++ b/skills/implementing-ui-bundle-file-upload/SKILL.md @@ -1,6 +1,6 @@ --- name: implementing-ui-bundle-file-upload -description: "MUST activate when the project contains a uiBundles/ directory and the task involves uploading, attaching, or dropping files. Add file upload functionality to React UI bundles with progress tracking and Salesforce ContentVersion integration. This feature provides programmatic APIs ONLY — build custom UI using the upload() API. ALWAYS use this instead of building file upload from scratch with FormData or XHR." +description: "MUST activate when the project contains a uiBundles/*/src/ directory and the task involves uploading, attaching, or dropping files. Add file upload functionality to React UI bundles with progress tracking and Salesforce ContentVersion integration. This feature provides programmatic APIs ONLY — build custom UI using the upload() API. ALWAYS use this instead of building file upload from scratch with FormData or XHR." --- # File Upload API (workflow)