Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

dx-scratch-def-configure

БесплатноЗапускает вложенные скриптыНе проверен

Drafts or refines a schema-valid Salesforce DX scratch-def from natural language. Preview first (confirm card or refine diff); apply via this skill's helper…

forcedotcomот forcedotcom★ 1 200 звёзд на GitHub

Об этом скилле

Configure Scratch Org Definition File

This skill writes config/<purpose>-scratch-def.json (default config/project-scratch-def.json) from a product ask, or refines an existing file in place. It does not create the org. Never mkdir config.

Every turn writes report.md on disk. Chat is not a substitute. Then exactly one of these happens:

Mode When What the user gets
Stop Trial, shape-only, shape/snapshot + features with no id, missing project, unclear ask (generate or refine), batch, other-user path, invalid existing JSON, multi-def without a pick The next step, named. No scratch-def file write.
Preview First generate (including just-write / skip-preview), a revision, or a refine patch, and the project already has config/ A draft (generate) or diff card (refine) + Write file?. Nothing is written yet.
Write They accept this draft unchanged (this preview, as drafted). This turn may restate it; no prior chat required. The file. Name dx-org-manage.

CRITICAL first gate (before any helper)

First matching row wins. Copy that recipe into report.md.

Never Skill() another skill. Never run sf. Name the next skill in report.md only.

STOP: write report.md on disk. Chat is not a substitute. Skip the helper and skip scratch-def JSON.

Consent is accepting this draft, unchanged — not a closed list of yes-words. Accepting this draft (this preview, as drafted) and asking to write is consent: apply immediately; reconstruct if they restate the same draft; do not ask Write file? again; do not run preview. No prior chat required. Phrases like "Looks good, write it", "write it", "yes write", "apply it", "as we drafted", or "as we previewed" with the same edition/features/settings are Write — even when this turn restates the draft or names the refine delta that was already previewed. That is not a first generate and not another refine preview. A first generate is Preview only when they ask to create/skip-preview without accepting a prior draft (no "looks good" / "as we drafted|previewed" consent). A different edition, product, or setting (a real change) is another preview. Refine is a patch on the existing file, not “this turn’s wording replaces the whole draft” (that generate-revision path still exists for in-chat drafts).

If the ask is… Then
Shape or snapshot lifecycle alone (no features to layer), including "use my org shape only" or "refine my shape" STOP. Name dx-org-shape-manage or dx-org-snapshot-manage.
Trial / trialforce / "trial org definition" / "refine my trial config" STOP. Name platform-trial-org-create. Do not skip this skill.
Underspecified generate ("I need a scratch def") — no edition and no products/clouds/features STOP. Ask the two questions below. If config/ is also missing, include the Missing-project question. Do not invent an edition.
Underspecified refine ("Update my def" / "refine my scratch def") — no features, edition, or settings delta STOP. Ask: features, edition, or settings? (Not agents — out of scope.)
Another user's laptop / no readable workspace path STOP. Cannot read another user's machine. Ask for a readable workspace path.
Batch generation or batch refine (multiple def files in one turn) STOP. Batch is not supported yet — offer to make or refine the first one.
WRITE-eligible (imperative generate with edition and/or products/features, refine with a clear delta, or shape/snapshot + features) but cwd has no config/ STOP. Ask the Missing-project question (folder that already contains config/). Do not create config/.
Refine target resolves to more than one config/*scratch-def.json (ignore *.bak) and the user did not name which STOP. List the paths and ask which file to patch. Do not pick silently.
Refine target exists but is invalid JSON STOP. Report the parse error. Do not patch garbage.
Shape/snapshot + features, root resolved, user omitted sourceOrg or snapshot id/name STOP. Write report.md on disk. Ask for the id. Name dx-org-shape-manage / dx-org-snapshot-manage to list. Resume this skill with the id.
User consents that this preview is the draft/delta they want written, unchanged (this preview, as drafted) — including "Looks good, write it" / "as we drafted previewed" restating the same generate draft or the already-previewed refine delta — and root resolved
User revises the draft — this turn names a different edition, products, settings, or other edits, inc
Полный SKILL.md на GitHub

Установить dx-scratch-def-configure в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Bash(python3)
Bash(python)

Вложенные файлы

examples/confirm-card.mdexamples/report-recipes.mdreferences/features.jsonreferences/project-scratch-def.schema.jsonreferences/settings-map.jsonscripts/lib_scratch_def.pyscripts/requirements.txtscripts/scrape_config_values.py

FAQ

Что делает скилл dx-scratch-def-configure?

Drafts or refines a schema-valid Salesforce DX scratch-def from natural language. Preview first (confirm card or refine diff); apply via this skill's helper only after consent that the draft/delta is unchanged — author scratch-def JSON only through the helper. Writes config/<purpose>-scratch-def.json (default project) under an existing SF DX project that already has config/ (requires existing config/). Refine sends a structured delta only (helper copy-through patches the base; catalog on new features only; whole-file diff; apply requires --out equal to --base; optional baseSha256 guards against the file changing between preview and write). Put product names (like Revenue Cloud) in features as-is. Also use for trial, shape/snapshot-only, underspecified, missing config/, multi-def ask-which, invalid JSON, or batch asks: invoke this skill, STOP, and write report.md on disk. Org creation and Dev Hub enablement belong to dx-org-manage / dx-org-devhub-configure. Not for those skills or SKU work.

Как установить скилл dx-scratch-def-configure?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл dx-scratch-def-configure запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить dx-scratch-def-configure с