--- name: dx-project-create description: "Scaffold a new Salesforce DX project of any template — standard, empty, analytics, agent, or a React/Angular UI-bundle app — and set it up end-to-end: relocate the session, connect an org, set the default, enable source tracking. Use when the user asks to create or scaffold a new Salesforce/SFDX project, start a new React/Angular Salesforce app, or run 'sf template generate project'. DO NOT TRIGGER for: building/editing/styling an EXISTING UI-bundle app (experience-ui-bundle-frontend-generate); scaffolding only a UI bundle as a step of building one out (experience-ui-bundle-project-generate, experience-ui-bundle-app-coordinate); tool validation (platform-environment-validate); org auth (login); project stats; scratch orgs (dx-org-manage)." metadata: domains: ["Developer Experience"] relatedSkills: - "experience-ui-bundle-project-generate" - "experience-ui-bundle-frontend-generate" - "experience-ui-bundle-deploy" - "platform-environment-validate" - "dx-org-manage" cliTools: - tool: ["npm"] semver: ">=8.0.0" - tool: ["sf"] semver: ">=2.0.0" allowed-tools: - Bash - Read --- # Creating a New Salesforce Project Walk the user through a wizard that scaffolds a new Salesforce DX project, relocates this session into the new project, connects it to an org, and configures it for development. Run each step in order, confirming with the user before any environment-changing action. The `salesforce-development` plugin's MCP servers (`salesforce-api-context`, `salesforce-metadata-experts`, `salesforce-lsp`) are provided by the **installed plugin**, not by the project — so they stay available in the new project automatically once the session relocates. There is no per-project `.mcp.json` to copy. ## Step 1: Choose a Project Template This skill scaffolds **every** template the CLI offers, including React/Angular UI-bundle apps — creating a project is a core capability and shouldn't require installing a separate plugin just to pick a template. (Once the project exists, the `experience-ui-bundle-*` skills own *building it out* — pages, components, styling, deploy — but the initial scaffold happens right here, whether or not that plugin is installed.) Read the template set **live from the CLI** — never hardcode it, because Salesforce adds templates over time and a baked-in list goes stale: ```bash sf template generate project --help ``` Parse the `-t, --template=