Command Palette

Search for a command to run...

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

platform-lightning-type-widget-coordinate

БесплатноБез исполняемых скриптовНе проверен

Orchestrate Apex-backed Lightning Type + HXL widget generation. TRIGGER only when the prompt EXPLICITLY invokes Lightning Types: user says 'Lightning Type'…

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

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

Building a Lightning Type With a Widget

Coordinate Lightning Type, Apex class, and HXL widget generation across the two paths below. This skill never authors content directly — it loads and invokes leaf skills in dependency order, gates progress on user approval, and runs validation gates before reporting completion.

Scope

Apex-backed Lightning Types only — root lightning:type of the form @apexClassType/<namespace>__<ClassName> (outer class). The class itself carries the @AuraEnabled fields that define the payload shape; nested list-element types live as inner classes referenced by List<Inner> fields on the outer class. Object/JSON-based Lightning Types (root lightning__objectType with primitive properties) are out of scope; route those to platform-custom-lightning-type-generate and platform-widget-generate separately.


Phase Graph

Phase Purpose Runs in Output
1 — Path selection Pick the path (existing-lightning-type-with-widget · new-lightning-type-with-widget) from the user prompt. All paths path
2 — Lightning Type discovery Local project first; then sf project retrieve --metadata LightningTypeBundle:<name>; ambiguity resolution; in-scope verification. existing-lightning-type-with-widget only lightningTypeSchema (path + SHA-256 + Apex class FQN)
3 — Build plan Print the plan in full; proceed unless the next reply explicitly pushes back. All paths printed plan
4 — Generation Load and invoke leaf skills per path. All paths files written
5 — Validation Run hard gates (block) and warn gates (advisory). All paths gate report
6 — Summary Files, validations, preview readiness, next steps. All paths summary

Per-phase pattern:

Step What to do
1. Load skill Invoke the named skill. Even if you remember its content, skills evolve — always load fresh.
2. Execute Follow the loaded skill's workflow.
3. Verify Confirm outputs exist and match the spec.
4. Checkpoint Confirm phase completion before moving on.

Phase 1 — Path selection

Determine the path from the user prompt and pick the corresponding leaf-skill load order:

Path Trigger Phase 4 sub-skill load order
existing-lightning-type-with-widget Prompt names a Lightning Type and treats it as existing (no create, generate, or new qualifier on the type). Phase 2 confirms it exists and is in scope. platform-widget-generate (renderer wiring is authored inline per the Phase 4 "Renderer.json wiring step" — no separate skill load)
new-lightning-type-with-widget Prompt asks for a new Lightning Type (verbs: create, generate, build, make a new) or Phase 2 finds nothing in the local project or in the org. platform-apex-generate → platform-custom-lightning-type-generate (schema authoring) → platform-widget-generate (renderer wiring authored inline afterwards per the Phase 4 "Renderer.json wiring step")

If the prompt names no Lightning Type at all (just a widget against prompt-provided fields or sample data), this orchestrator should not have been triggered — route the user to platform-widget-generate directly.

If the prompt is ambiguous between the two paths, ask one clarifying question max and pick. The new-lightning-type-with-widget path's platform-apex-generate step is engaged automatically — do not prompt the user to confirm Apex.


Phase 2 — Lightning Type discovery (existing-lightning-type-with-widget only)

Skipped for new-lightning-type-with-widget (the Lightning Type does not yet exist).

For existing-lightning-type-with-widget, FIRST Read references/lightning-type-discovery.md (REQUIRED — do NOT skip; do not run Phase 2 from this summary alone), then execute its find → verify → ensure-class procedure step by step. The bullets below are a reminder, not a substitute for the reference:

  • Local project first: search force-app/**/lightningTypes/<TypeName>/schema.json.
  • If not found, run sf project retrieve --metadata LightningTypeBundle:<TypeName> against the connected org.
  • If multiple candidates surface, list them with FQNs and paths. Ask the user to pick.
  • After locating the schema, verify it is in scope (root lightning:type starts with @apexClassType/). If the type is object/JSON-based, surface that and stop.
  • Ensure the backing Apex class is in the local project. Parse <ClassName> from the @apexClassType/<ns>__<ClassName> root. If <pkgDir>/classes/<ClassName>.cls is absent, run sf project retrieve --metadata ApexClass:<ClassName>. This runs whether the Lightning Type was found locally or retrieved from the org — a locally-present Lightning Type can still reference an absent class. If the class exists nowhere, surface it and stop (the type is unrenderable). See the reference for the full procedure.
  • If retrieval fails, surface the CLI error and offer: (a) ask
Полный SKILL.md на GitHub

Установить platform-lightning-type-widget-coordinate в Claude Code и Claude Desktop

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

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

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

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

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

Без ограничений — скилл может использовать любой инструмент.

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

examples/existing-lightning-type-with-widget-prompt.mdexamples/new-lightning-type-with-widget-prompt.mdreferences/build-plan-format.mdreferences/lightning-type-discovery.mdreferences/validation-gates.md

FAQ

Что делает скилл platform-lightning-type-widget-coordinate?

Orchestrate Apex-backed Lightning Type + HXL widget generation. TRIGGER only when the prompt EXPLICITLY invokes Lightning Types: user says 'Lightning Type', 'CLT', 'Custom Lightning Type', 'Apex-backed type', references '@apexClassType/...', asks to build a widget or card for a named Lightning Type, asks to create a new Lightning Type and widget together, or grounds a widget in a specific Apex class as its schema. DO NOT TRIGGER when the prompt names only a subject, domain, feature, or entity noun. Also DO NOT TRIGGER when: authoring only a Custom Lightning Type (use platform-custom-lightning-type-generate), only an Apex class (use platform-apex-generate), editing an existing widget without any Lightning Type change, or grounding a widget on an object/JSON-based Lightning Type (lightning__objectType with primitives).

Как установить скилл platform-lightning-type-widget-coordinate?

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

Скилл platform-lightning-type-widget-coordinate запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить platform-lightning-type-widget-coordinate с