dx-project-create
БесплатноБез исполняемых скриптовНе проверенScaffold a Salesforce DX project from any template (standard, agent, analytics, React/Angular/Vue app), move the session in, connect an org, enable source…
от forcedotcom★ 1 200 звёзд на GitHubОб этом скилле
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 plugin's MCP servers come from the installed plugin, not the project, so they stay available after 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 UI-bundle web apps (React, Angular, Vue), so creating a project never requires installing another plugin. Once the project exists, the experience-ui-bundle-* skills own building it out (pages, components, deploy).
Read the template set live from the CLI, never from a baked-in list, because Salesforce adds templates over time:
sf template generate project --help
Parse the -t, --template=<option> line's <options: a|b|c|…> list; those names are the authoritative set. Fallback, only if the live list cannot be read: standard, empty, analytics, agent, reactinternalapp, reactexternalapp, angularinternalapp, angularexternalapp. Vue (vueinternalapp) is left out of the fallback because stable CLI builds reject it; newer builds list it in the live parse. If the parse failed and the user wants Vue, say the template list could not be read and ask them to update the Salesforce CLI. UI-bundle templates are named <framework><audience>app; internal = employee-facing, already authenticated; external = customer/partner-facing with login, registration, and profile.
Intent shortcut first. Take it only when the request resolves to exactly one template in the live list. Otherwise use the picker; never guess. Resolve {template} directly when:
- The request names a non-UI template: "empty/minimal project" →
empty; "analytics project" →analytics; "agent project" →agent; "standard project" →standard. - The request is a UI-bundle app where the live list leaves one match for the framework and audience given: "internal React app" →
reactinternalapp; "customer-facing Angular portal" →angularexternalapp; "Vue app" →vueinternalapp(the only Vue template, so no audience to ask).
A description of the app is NOT a template name. "A personal todo app", "an inventory tracker", "a CRM for my team" say what to build, not which template, so they do not qualify for the shortcut. Do not infer standard (or any template) from the app's purpose; standard being the picker's default does not license skipping the picker.
Everything else goes to the picker, including:
- a bare "new project" with no template named (the picker defaults to Standard),
- a described app with no template or framework named, and
- a partially specified UI app, such as "create a React app" with no audience. Never assume an audience; skip the top-level picker and ask only the missing piece in the follow-up below.
Otherwise ask one AskUserQuestion — "What kind of project?" (single-select, four options). AskUserQuestion caps at four choices, so the picker shows the four most-requested kinds; empty is deliberately omitted and reached only via the shortcut.
- Standard →
standard(default): general-purposeforce-appmetadata project (Apex, LWC, objects, flows). - Agentforce agent →
agent: ships a sample Local Info Agent. - CRM Analytics →
analytics: adds thewaveTemplatesdirectory. - UI web app (React / Angular / Vue) → a UI-bundle starter. Ask a follow-up
AskUserQuestion("Which UI framework?") with one option per framework in the live list. Then, only if the chosen framework has bothinternalandexternaltemplates, ask "Who is the audience?" (internal or external). A framework with a single template needs no audience question.
The resolved template is {template}, which feeds Step 3. When the live CLI adds a template, it surfaces through the live parse; only add a keyword to the intent shortcut if it is a rarely-picked non-UI template.
Step 2: Choose a Project Name
Prompt the user for a project name. It becomes the new directory name and is interpolated into the shell commands below, so it MUST be strictly validated before any command uses it — never pass a raw name through.
Validate, then reject-and-re-prompt. Run this check on the candidate before it is used anywhere. Pass the candidate inside single quotes, exactly as typed. The regexes live in the command, so the check is deterministic:
node -e 'const [kind, value] = process.argv.slice(1); const re = {name: /^[A-Za-z0-9][A-Za-z0-9_-]*$/, namespace: /^(?=.{1,15}$)[A-Za-z][A-Za-z0-9]*(_[A-Za-z0-9]+)*$/, package: /^[A-Za-z0-9_][A-Za-z0-9_-]*(\/[A-Za-z0-9_][A-Za-z0-9_-]*)*$/, apiversion: /^[0-9]+\.0$/}[kind]; process.exit(re.test(value) ? 0 : 1)' name '{candidate}' && echo valid ||
Установить dx-project-create в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadFAQ
Что делает скилл dx-project-create?
Scaffold a Salesforce DX project from any template (standard, agent, analytics, React/Angular/Vue app), move the session in, connect an org, enable source tracking. Use to create a Salesforce/SFDX project. DO NOT TRIGGER for: existing UI-bundle apps (experience-ui-bundle-frontend-generate); UI-bundle scaffold in a larger build (experience-ui-bundle-project-generate, experience-ui-bundle-app-coordinate); tool checks (platform-environment-validate); org login (login); scratch orgs (dx-org-manage).
Как установить скилл dx-project-create?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dx-project-create запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic