You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Use this skill to build and orchestrate complete Salesforce Lightning Applications (LEX Apps), custom projects, or end-to-end business solutions from a natural language scenario. Triggers when a user requests a "custom app", a "business solution", or describes any scenario requiring multiple interconnected Salesforce components to be built together into a complete Lightning Experience (LEX) Application. Orchestrates the sequenced creation of Custom Objects, Relationships, Fields, Lightning Record Pages, Custom Tabs, Custom Applications, Permission Sets, and OPTIONALLY Flows and Validation Rules.
3
+
description: Build complete Salesforce Lightning Experience applications from natural language descriptions. Use this skill when a user requests a "complete app", "Lightning app", "business solution", "management system", or describes a scenario requiring multiple interconnected Salesforce components (objects, fields, pages, tabs, security). Orchestrates all required metadata types in proper dependency order to produce a deployable application.
Build completeLightning Experience applications from natural language by orchestrating multiple metadata types in proper dependency order. This skill acts as a "conductor" that invokes specialized metadata skills when available, or generates metadata directly when no skill exists.
14
+
Build a complete, deployable Salesforce Lightning Experience application from a natural language description by orchestrating multiple metadata types in correct dependency order. Invoke specialized metadata skills when available; generate metadata directly when no skill exists.
14
15
15
16
## When to Use This Skill
16
17
**Use when:**
@@ -34,7 +35,6 @@ Build complete Lightning Experience applications from natural language by orches
34
35
- Troubleshooting or debugging existing metadata
35
36
- Building Salesforce Classic apps (not Lightning Experience)
36
37
- User asks for just one object, or just one page, or just one permission set (without others)
37
-
---
38
38
39
39
## Metadata Type Registry
40
40
@@ -50,7 +50,7 @@ This table shows which metadata types are commonly needed for LEX apps and their
50
50
|**List View**| ✅ YES |`salesforce-list-view`| MUST use skill |
51
51
|**Validation Rule**| ✅ YES |`salesforce-validation-rule`| MUST use skill (if requested) |
52
52
|**Flow**| ✅ YES |`salesforce-flow`| MUST use skill (if requested) |
53
-
|**Permission Set**|❌ NO|-|Generate directly using Metadata API knowledge|
53
+
|**Permission Set**|✅ YES|`generate-permission-set`|MUST use skill|
54
54
55
55
### Skill Usage Rules
56
56
@@ -115,8 +115,8 @@ Custom Application (depends on: Tabs exist)
115
115
Permission Sets (depends on: Objects, Fields, Tabs, App exist)
116
116
```
117
117
118
-
**Fallback generation (no skill available):**
119
-
1.Generate Permission Set XML directly with access to:
118
+
**Skills to invoke:**
119
+
1.`generate-permission-set` for each permission set with access to:
120
120
- Objects (Read, Create, Edit, Delete)
121
121
- Fields (Read, Edit)
122
122
- Tabs (Visible)
@@ -170,7 +170,7 @@ METADATA SKILLS TO INVOKE:
170
170
- salesforce-custom-tab (x N)
171
171
- salesforce-flexipage (x N)
172
172
- salesforce-custom-application (x 1)
173
-
- [fallback] Permission Set XML generation (x N)
173
+
- generate-permission-set (x N)
174
174
175
175
DEPENDENCY ORDER:
176
176
1. Phase 1: Data Model (Objects → Fields)
@@ -198,7 +198,99 @@ Execute in strict dependency order. For each metadata component:
198
198
- For Custom Tab → Invoke `salesforce-custom-tab`
199
199
- For FlexiPage → Invoke `salesforce-flexipage`
200
200
- For Custom Application → Invoke `salesforce-custom-application`
201
-
- For Permission Sets (no skill) → Generate XML directly
201
+
- For Permission Set → Invoke `generate-permission-set`
202
+
203
+
### STEP 3: Final Artifact Assembly
204
+
205
+
After all phases complete, consolidate outputs into deployment-ready structure.
206
+
207
+
---
208
+
209
+
## Output
210
+
211
+
The completed build produces:
212
+
213
+
1.**Salesforce DX Project Directory** containing all generated metadata
214
+
- Organized by standard SFDX structure: `force-app/main/default/`
215
+
216
+
2.**Metadata Files** - One file per component, organized by type:
Before presenting the completed build to the user, verify cross-component integrity:
279
+
280
+
-[ ]**Object-Tab Coverage**: Every Custom Object has at least one Custom Tab
281
+
-[ ]**Relationship Integrity**: Every Custom Object referenced in a relationship (parent or child) exists in the build
282
+
-[ ]**Field References in Pages**: Every field referenced in a FlexiPage exists on the corresponding object
283
+
-[ ]**Tab References in App**: Every tab referenced in the Custom Application was successfully created
284
+
-[ ]**Permission Set Completeness**: Permission Sets grant access to all generated objects, fields, tabs, and the application
285
+
-[ ]**No Orphaned Components**: No tabs without objects, no pages without corresponding tabs, no app without tabs
286
+
-[ ]**Deployment Manifest Completeness**: `package.xml` includes all generated components in proper dependency order
287
+
288
+
**Validation Failure Handling:**
289
+
- If validation fails, include failed checks in the Build Summary Report under a `⚠️ VALIDATION WARNINGS` section
290
+
- Do NOT block delivery of the build, but clearly communicate what needs manual review or correction
291
+
- Provide specific remediation steps for each failed validation check
292
+
293
+
**Note**: Individual component validations (reserved words, name lengths, field types, etc.) are handled by specialized metadata skills and do not need to be re-validated here.
202
294
203
295
---
204
296
@@ -246,7 +338,7 @@ When user doesn't specify details:
246
338
- Enable Search and Reports for user-facing objects
0 commit comments