omnistudio-epc-catalog-generate

forcedotcom/sf-skills

Моделирование продуктов CME EPC на основе Product2 для каталога Industries.

Звёзды1 169
Форки400
Авторforcedotcom
Обновлённоя 13 2026

Установка

SKILL.md

omnistudio-epc-catalog-generate: CME EPC Product and Offer Modeling

Expert Salesforce Industries CME EPC modeler for creating Product2-based catalog entries, assigning configurable attributes, and building offer bundles through Product Child Item relationships.

This skill is optimized for DataPack-style metadata authoring. Use the canonical template set in assets/:

  • assets/product2-offer-template.json
  • assets/attribute-assignment-template.json
  • assets/product-child-item-template.json
  • assets/pricebook-entries-template.json
  • assets/price-list-entries-template.json
  • assets/object-field-attributes-template.json
  • assets/orchestration-scenarios-template.json
  • assets/decomposition-relationships-template.json
  • assets/compiled-attribute-overrides-template.json
  • assets/override-definitions-template.json
  • assets/parent-keys-template.json

Additional packaged examples are available under assets/examples/, organized by offer type:

  • assets/examples/samsung-galaxy-s22-bundle/ — bundle offer example
  • assets/examples/business-internet-premium-fttc-simple-offer/ — simple offer example
  • assets/examples/business-internet-pro-vpl-simple-offer/ — simple offer example
  • assets/examples/static-ip-simple-offer/ — simple offer example

The examples/business-internet-plus-bundle/ folder contains a generated bundle example with a step-by-step transcript.

The root assets/ folder contains the canonical baseline template set for bundle authoring.


Scope

  • In scope: Creating and reviewing EPC Product2 records, Product Child Items, attribute metadata, offer bundles, pricing entries, decomposition and orchestration artifacts, and DataPack JSON payloads
  • Out of scope: OmniScript/FlexCard/Integration Procedure design (use omnistudio-omniscript-generate, omnistudio-flexcard-generate, or omnistudio-integration-procedure-generate), Apex business logic implementation (use platform-apex-generate), deployment pipeline troubleshooting (use platform-metadata-deploy)

Quick Reference

  • Primary object: Product2 (EPC product and offer records)
  • Attribute data: %vlocity_namespace%__AttributeMetadata__c, %vlocity_namespace%__AttributeDefaultValues__c, and %vlocity_namespace%__AttributeAssignment__c
  • Offer bundle composition: %vlocity_namespace%__ProductChildItem__c
  • Offer marker: %vlocity_namespace%__SpecificationType__c = "Offer" and %vlocity_namespace%__SpecificationSubType__c = "Bundle"
  • Companion bundle artifacts: pricebook entries, price list entries, object field attributes, orchestration scenarios, decomposition relationships, compiled attribute overrides, override definitions, and parent keys

Scoring: 120 points across 6 categories.
Thresholds: >= 95 Deploy-ready | 70-94 Needs review | < 70 Block and fix.

Glossary: EPC = Enterprise Product Catalog | CME = Communications, Media & Energy | DataPack = Vlocity JSON deployment artifact | PCI = ProductChildItem


Asset Template Set

Use the root assets/ templates when creating a bundle payload:

  • product2-offer-template.json
  • attribute-assignment-template.json
  • product-child-item-template.json
  • pricebook-entries-template.json
  • price-list-entries-template.json
  • object-field-attributes-template.json
  • orchestration-scenarios-template.json
  • decomposition-relationships-template.json
  • compiled-attribute-overrides-template.json
  • override-definitions-template.json
  • parent-keys-template.json

For additional real-world variants, use the per-example folders under assets/examples/.


Core Responsibilities

  1. Product Creation: Create EPC Product2 records with consistent naming, lifecycle dates, status, and classification fields.
  2. Attribute Modeling: Define category-based attributes, defaults, valid value sets, display sequences, and required flags.
  3. Offer Bundle Modeling: Compose offers with child products using %vlocity_namespace%__ProductChildItem__c records and clear quantity rules.
  4. Companion Metadata Generation: Generate and align all related bundle files (pricing, object field attributes, orchestration/decomposition, overrides, parent keys) from the same offer baseline.
  5. DataPack Consistency: Keep record source keys, global keys, lookup objects, and namespace fields internally consistent for deployment.

Invocation Rules (Mandatory)

Route to this skill whenever the prompt intent matches either of these:

  1. Create a product bundle:

    • User asks to create/build/generate/model an EPC offer bundle.
    • User asks for Product2 offer setup with Product Child Items.
    • User asks to generate bundle DataPack JSON artifacts from templates/examples.
  2. Score or review an existing product bundle:

    • User asks to score/assess/validate/audit an existing EPC bundle.
    • User asks to apply the 120-point rubric to existing Product2/ProductChildItem (PCI)/attribute payloads.
    • User asks for risk findings, quality gaps, or fix recommendations on bundle metadata.

Instruction priority: treat these two intents as direct triggers for omnistudio-epc-catalog-generate, even if the prompt is brief and does not mention EPC by name.


Workflow (Create/Review)

Phase 0: Prerequisites

Before proceeding, verify:

  1. Salesforce Industries org with EPC enabled
  2. Authenticated org alias in sf CLI — run sf org display --target-org <alias> to confirm
  3. Namespace model identified: %vlocity_namespace%, vlocity_cmt, or Core

If any prerequisite is unmet, ask the user to supply the org alias or namespace before continuing.


Phase 1: Identify Catalog Intent

Ask for:

  • Product type: spec product or offer bundle
  • Domain taxonomy: Family, Type/SubType, category path, and channel
  • Attribute requirements: required/optional, picklist values, default values
  • Bundle composition: child products, quantity constraints, optional vs required
  • Target org namespace model: %vlocity_namespace%, vlocity_cmt, or Core

Idempotency check: If a ProductCode is provided, verify no matching Product2 already exists before generating artifacts:

sf data query --query "SELECT Id, Name, ProductCode FROM Product2 WHERE ProductCode = '<code>'" --target-org <alias>

If a match is found, ask the user whether this is a net-new record or an update to the existing one before continuing.

Phase 1A: Clarifying Questions for Complete Bundle (Mandatory)

Before generating a new offer bundle payload, ask clarifying questions until all required inputs are known.

Required clarification checklist:

  1. Offer identity
    • What is the offer name and ProductCode?
    • Is this net-new or an update to an existing Product2 offer?
  2. Catalog classification
    • What are Family, Type/SubType, and channel/sales context values?
    • Should SpecificationType=Offer and SpecificationSubType=Bundle be set now?
  3. Lifecycle and availability
    • What are EffectiveDate and SellingStartDate?
    • Should IsActive and %vlocity_namespace%__IsOrderable__c be true at creation time?
  4. Child product composition
    • Which child products are included (name/code for each)?
    • For each child, what are required/optional semantics and sequence order?
  5. Quantity behavior per child
    • What are MinQuantity, MaxQuantity, and default Quantity?
    • Should %vlocity_namespace%__MinMaxDefaultQty__c be enforced for each line?
  6. Attribute model
    • Which attributes are required vs optional?
    • What are valid values, defaults, display types, and display sequences?
  7. Pricing and companion artifacts
    • Should pricebook and price list entries be generated now?
    • Should orchestration/decomposition/override/parent-key files be included in the same request?
  8. Namespace and keying
    • Which namespace convention should be used (%vlocity_namespace%, vlocity_cmt, or Core)?
    • Are there existing global keys/source keys to preserve?

If any required checklist item is unanswered, do not generate final bundle files yet; ask focused follow-up questions first.

Phase 2: Build Product2 Backbone

For every new EPC record, define:

  • Name
  • ProductCode (unique, stable, environment-agnostic)
  • %vlocity_namespace%__GlobalKey__c (stable UUID-style key)
  • %vlocity_namespace%__SpecificationType__c and %vlocity_namespace%__SpecificationSubType__c
  • %vlocity_namespace%__Status__c and date fields (EffectiveDate, SellingStartDate)
  • IsActive and %vlocity_namespace%__IsOrderable__c

Use assets/product2-offer-template.json as baseline structure.

Phase 3: Add Attributes

When attributes are required:

  1. Populate %vlocity_namespace%__AttributeMetadata__c category and productAttributes records.
  2. Populate %vlocity_namespace%__AttributeDefaultValues__c with attribute code to default value mapping.
  3. Create %vlocity_namespace%__AttributeAssignment__c records with:<!-- -->
    • category linkage
    • attribute linkage
    • UI display type (dropdown, etc.)
    • valid values and default marker

Use assets/attribute-assignment-template.json as the assignment baseline.

Phase 4: Build Offer Bundles

For offers:

  1. Keep parent Product2 record as offer (SpecificationType=Offer, SpecificationSubType=Bundle).
  2. Create root %vlocity_namespace%__ProductChildItem__c row (IsRootProductChildItem=true).
  3. Add child rows per component with:<!-- -->
    • parent and child references
    • sequence and line number
    • min/max/default quantity behavior (MinMaxDefaultQty, MinQuantity, MaxQuantity, Quantity)
  4. Use override rows only when behavior differs from inherited/default behavior.

Use assets/product-child-item-template.json for child relationship structure.

For complete bundle payloads, also align and include:

  • assets/pricebook-entries-template.json
  • assets/price-list-entries-template.json
  • assets/object-field-attributes-template.json
  • assets/orchestration-scenarios-template.json
  • assets/decomposition-relationships-template.json
  • assets/compiled-attribute-overrides-template.json
  • assets/override-definitions-template.json
  • assets/parent-keys-template.json

Phase 4B: Generate Companion Metadata Files

When the user asks to generate a bundle, generate/update all companion files together as one coherent set:

  1. pricebook-entries-template.json and price-list-entries-template.json
    • Keep Product2 GlobalKey/ProductCode references aligned with the parent offer.
  2. object-field-attributes-template.json
    • Keep object class references and field mappings aligned with the same offer model.
  3. orchestration-scenarios-template.json and decomposition-relationships-template.json
    • Keep decomposition and orchestration artifacts consistent with bundle child items.
  4. compiled-attribute-overrides-template.json and override-definitions-template.json
    • Keep override keys and references aligned with attribute metadata and assignments.
  5. parent-keys-template.json
    • Keep parent linkage values synchronized with generated artifact keys.

Mandatory rule: do not generate only a partial subset when a full bundle payload is requested unless the user explicitly asks for a limited file scope.

Phase 5: Validate and Handoff

Read assets/completion-block-template.txt and fill in each field to produce the handoff summary block.


Output Expectations

For a full offer bundle request, the following files are produced:

File patternContent
*_DataPack.jsonProduct2 offer record
*_AttributeAssignments.jsonAttribute category and assignment payloads
*_ProductChildItems.jsonRoot and child ProductChildItem (PCI) rows
*_PricebookEntries.jsonStandard and custom pricebook entries
*_PriceListEntries.jsonPrice list entries
*_ObjectFieldAttributes.jsonObject field mapping
*_OrchestrationScenarios.jsonOrchestration metadata
*_DecompositionRelationships.jsonDecomposition metadata
*_CompiledAttributeOverrides.jsonCompiled attribute override payload
*_OverrideDefinitions.jsonOverride definition payload
*_ParentKeys.jsonParent key linkage

For spec product (non-bundle) requests, only the DataPack, AttributeAssignments, PricebookEntries, and PriceListEntries files are required.

If generation of any file fails, stop immediately. List every file successfully generated so far and instruct the user to delete the partial set before retrying the full bundle — partial bundles cause GlobalKey mismatches on DataPack import. Do not generate the remaining files until the user confirms the partial set has been removed and a fresh attempt can begin.


Gotchas

IssueResolution
Attribute default not in valid values listEnsure the default value exists inside the values[] array — cart will reject invalid defaults at runtime
Root ProductChildItem row missingOffer bundle traversal breaks without IsRootProductChildItem=true — always create the root row first
Mixed namespace convention in one payloadPick one namespace style (%vlocity_namespace% vs vlocity_cmt) and apply it consistently across all files in the bundle
Duplicate display sequences in same attribute categoryUI ordering conflict — use spaced values (10, 20, 30) to allow future inserts without collisions
ProductCode contains environment suffixBreaks cross-org references — remove _DEV, _UAT, _PROD suffixes
Companion files generated with different offer namesKey mismatches break DataPack import — generate all companion files from the same baseline offer name and GlobalKey
DataPack import fails with Key not found errorA lookup object reference points to a GlobalKey absent in the target org — verify GlobalKey alignment across all companion files before import
DataPack import rolls back silentlyAdd --verbose during deployment and inspect the log for the specific record and field that triggered the rollback
Namespace mismatch between files in same bundleMixed %vlocity_namespace% and vlocity_cmt styles in one payload cause field resolution failures — enforce a single namespace style throughout

Generation Guardrails (Mandatory)

If any anti-pattern appears, stop and ask for confirmation before proceeding.

Anti-patternWhy it failsRequired correction
Missing ProductCode or unstable code valuesBreaks quote/cart references and package diffsUse deterministic code convention
Hardcoded org-specific IDs in relationshipsFails across orgs/environmentsUse lookup objects with matching keys/global keys
Offer bundle without root PCI rowRuntime bundle traversal issuesAdd root %vlocity_namespace%__ProductChildItem__c
Attribute defaults not present in valid valuesInvalid cart configuration defaultsEnsure default exists in allowed value set
Duplicate display sequences in same attribute categoryUI ordering conflictEnforce unique and spaced sequence values
Offer marked active with incomplete child referencesBroken bundle at runtimeComplete and validate child link set before activation
Mixed naming styles (snake_case, ad hoc abbreviations)Reduces maintainability and discoverabilityEnforce naming convention from references doc

Scoring Model (120 Points)

Read references/scoring-model.md for the full 6-category rubric and per-category criteria.

CategoryPoints
Catalog Identity and Naming20
EPC Product Structure20
Attribute Modeling25
Offer Bundle Composition25
DataPack Integrity15
Documentation and Handoff15
Total120

CLI and Validation Commands

Read scripts/cli-validation-commands.sh for sf CLI queries to inspect and validate EPC artifacts in your org. Replace <org> with your authenticated org alias before running.


Sample Skill Invocation Commands

Read scripts/sample-invocations.sh for example invocations covering common EPC modeling tasks. Replace cursor-agent with your local agent command wrapper if different.


Reference File Index

FileWhen to read
assets/product2-offer-template.jsonPhase 2 — baseline structure for every new Product2 offer record
assets/attribute-assignment-template.jsonPhase 3 — attribute assignment structure
assets/product-child-item-template.jsonPhase 4 — root and child PCI row structure
assets/pricebook-entries-template.jsonPhase 4B — pricebook entry companion file
assets/price-list-entries-template.jsonPhase 4B — price list entry companion file
assets/object-field-attributes-template.jsonPhase 4B — сопроводительный файл сопоставления полей объекта
assets/orchestration-scenarios-template.jsonPhase 4B — сопроводительный файл сценариев оркестрации
assets/decomposition-relationships-template.jsonPhase 4B — сопроводительный файл связей декомпозиции
assets/compiled-attribute-overrides-template.jsonPhase 4B — сопроводительный файл переопределений скомпилированных атрибутов
assets/override-definitions-template.jsonPhase 4B — сопроводительный файл определений переопределений
assets/parent-keys-template.jsonPhase 4B — сопроводительный файл родительских ключей
assets/completion-block-template.txtPhase 5 — шаблон блока сводки передачи
assets/examples/samsung-galaxy-s22-bundle/Phase 4 — пример bundle-предложения; загрузить *_DataPack.json и *_ProductChildItems.json сначала, затем при необходимости сопроводительные файлы
assets/examples/business-internet-premium-fttc-simple-offer/Phase 4 — пример простого предложения (FTTC); загрузить *_DataPack.json и *_AttributeAssignments.json сначала
assets/examples/business-internet-premium-fttc-simple-offer/Business-Internet-Premium-FTTC_RuleAssignments.jsonPhase 4 — пример назначения правила предложения FTTC; загружать при моделировании ограничений атрибутов на основе правил
assets/examples/business-internet-pro-vpl-simple-offer/Phase 4 — пример простого предложения (Pro VPL); загрузить *_DataPack.json и *_AttributeAssignments.json сначала
assets/examples/static-ip-simple-offer/Phase 4 — пример простого предложения (Static IP); загрузить *_DataPack.json и *_AttributeAssignments.json сначала
examples/business-internet-plus-bundle/Phase 4 — пример сгенерированного bundle с пошаговой расшифровкой; загрузить TRANSCRIPT.md сначала, затем конкретные JSON-файлы, на которые он ссылается
references/epc-field-guide.mdPhase 2 & 3 — руководство по полям EPC и типичные подводные камни
references/naming-conventions.mdPhase 2 & 3 — соглашения об именовании и ключах
references/scoring-model.mdPhase 5 — полная рубрика оценки из 6 категорий с критериями по каждой категории
scripts/cli-validation-commands.shPhase 5 — запросы sf CLI для проверки артефактов EPC в org
scripts/sample-invocations.shOn Start — справочные примеры вызовов для типичных задач EPC

Cross-Skill Integration

From SkillTo omnistudio-epc-catalog-generateWhen
omnistudio-dependencies-analyze-> omnistudio-epc-catalog-generateСначала нужен актуальный инвентарь зависимостей и пространств имён
platform-custom-object-generate / platform-custom-field-generate-> omnistudio-epc-catalog-generateНужна готовность объекта или поля перед моделированием EPC
platform-soql-query-> omnistudio-epc-catalog-generateНужен анализ запросов к существующему каталогу
From omnistudio-epc-catalog-generateTo SkillWhen
omnistudio-epc-catalog-generate-> omnistudio-omniscript-generateНастроить UX управляемых продаж с использованием смоделированного каталога
omnistudio-epc-catalog-generate-> omnistudio-integration-procedure-generateПостроить серверную оркестрацию поверх полезных нагрузок продуктов и ценообразования
omnistudio-epc-catalog-generate-> platform-metadata-deployРазвернуть проверенные метаданные каталога

External References

Local references:

  • references/epc-field-guide.md — руководство по полям EPC и минимально необходимые поля
  • references/naming-conventions.md — соглашения об именовании и ключах для продуктов, атрибутов и bundle

Notes

  • Этот навык намеренно ориентирован в первую очередь на DataPack и оптимизирован для vlocity/Product2/... создания артефактов.
  • Сохраняйте %vlocity_namespace% плейсхолдеры в шаблонах нетронутыми для сохранения переносимости.
  • Предпочитайте сначала создавать переиспользуемые spec-продукты, а затем собирать предложения через дочерние связи.

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: omnistudio-epc-catalog-generate](https://darkplay.ru/ai/skills/forcedotcom-sf-skills-omnistudio-epc-catalog-generate)

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

Chief Of Staffaffaan-m · Личный руководитель коммуникаций, который сортирует почту, Slack, LINE и Messenger…
225 587 ★
Doc Updateraffaan-m · Специалист по документации и кодмапам: обновляет кодмапы, README и руководства.
225 587 ★
Evolveaffaan-m · Анализирует инстинкты и предлагает или генерирует эволюционировавшие структуры.
225 587 ★
Opensource Forkeraffaan-m · Форкает проект для open-source: чистит секреты, ссылки и историю git.
225 587 ★
Opensource Packageraffaan-m · Готовит open-source упаковку: CLAUDE.md, README, LICENSE, CONTRIBUTING и шаблоны.
225 587 ★
Opensource Sanitizeraffaan-m · Проверяет open-source форк на утечки секретов, PII и опасные файлы перед релизом.
225 587 ★
Skill Createaffaan-m · Анализирует локальную историю Git, извлекает паттерны кодирования и генерирует файлы…
225 587 ★
frontend-designanthropics · Создание выразительных фронтенд-интерфейсов продакшен-уровня с высоким качеством дизайна…
34 комп.
career-opssantifer · Конвейер поиска работы на основе ИИ — оценка предложений, генерация резюме, сканирование…
83 404 ★
ruflo-migrationsruvnet · Управление миграциями схемы: генерация, проверка, пробный запуск и откат миграций базы…
240 комп.

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8