Command Palette

Search for a command to run...

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

personalize

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

Personalizes sections of AEM Edge Delivery Services (DA) pages with Section Metadata. The authored content is the default; Personalization rows pick an EDS…

adobeот adobe★ 342 звезды на GitHub

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

personalize: sections → fragments

A personalized section is an authored section with Personalization rows in its Section Metadata. Its content is the default. A variant is an EDS fragment that replaces that content for the visitors it is chosen for. The browser, the edge and the scripts all run the same grammar and decision code. Its JSON Schemas and pilot scenarios are in assets/contract/.

| Section Metadata               |                                                |
| Personalization                | home-hero                                      |
| Personalization Source         | rules   (default) | split | api | target       |
| Personalization Variants       | /fragments/personalization/home-hero/india     |
|                                | /fragments/personalization/home-hero/na-mobile |
| Personalization Rule India     | geo: IN                                        |
| Personalization Rule NA Mobile | geo: US, CA & device: mobile                   |

The other sources add their own rows:

  • split: Personalization Split | 40, 30.
  • api: optional Personalization Hint and Personalization Description <Variant>, plus Rule rows as the written fallback.
  • target: an optional Personalization Location, and a Personalization Trigger to make a popup.

The grammar is in reference/authoring-model.md.

When to Use

  • Show a different section per country/region, device, new or returning visitor, URL/UTM param, page state, or custom audience.
  • Let a decision engine (any v1 engine, or OF1) choose, with the Rule rows as its fallback.
  • A/B test a section against its authored content (split), or through Target.
  • Let Adobe Target pick a section's offer, inline or as a popup.
  • Decide at the Cloudflare edge for above-the-fold sections.

Do NOT use for:

  • Creating Target activities, audiences or offers, or AJO journeys: decline. The skill only wires sections to activities the Target user creates.
  • Text tokens such as {name}: not this skill.
  • Page-level experiments run with AEM Experimentation: keep them there. A page that runs one gets no personalized sections.

Critical Rules

  • Paths. scripts/ and assets/ are this skill's directories: resolve them against the folder holding this SKILL.md and use absolute paths. Run them from the project root. Every script answers --help.
  • The authored content is the default. Never delete, rewrite or reorder it. Personalization adds Section Metadata rows, variant fragments and, when needed, a section break or a new section.
  • Never touch scripts/aem.js, existing block code or the vendored aem-worker.mjs.
  • Consent. The policy is no consent, no personalization. Never add a withoutConsent exception on your own: exceptions need the site's privacy/legal approval and a policyRef (reference/consent.md).
  • Choices, not gates. Ask only where there is a real choice (Step 2), always with its default. No reply, or a hands-off run (--hands-off, "no approval gates", non-interactive): take the defaults and list them as named assumptions in the summary. The only yes/no questions are the delivery confirmations below.
  • Local by default; delivery asks each time. Pushing the code branch, the DA upload and preview, and publishing are visible outside this machine. Each runs only after the user confirms that step, every time, even when the prompt asked for it. A hands-off run or no reply does none of them: it hands off the commands (Step 8).
  • Off unless chosen: wrangler deploy and wrangler secret put (the site owner runs them), overrides on production, a third-party geo endpoint, and config.mock outside tests.
  • Never:
    • invent marketing copy (variants are TODO: scaffolds unless the user gives the copy);
    • put API keys or tenant ids in browser code;
    • send personal data to an engine or in events;
    • list a variant named default;
    • report a check as passed when it didn't run.

Step 1: Preflight

node scripts/detect-project.mjs <project>
Result Action
projectType: da Continue
xwalk / doc (exit 3) Stop: "personalize supports DA projects only for now."
sectionMetadata.renderedBy pipeline: needs rendering v2 (Step 6 proves it). aem.js: works as is
content.pagesWithExperiments, integrations.experimentation Never personalize those pages or sections
integrations.consentTools, consent.ask Input for the consent choice (Step 2)
integrations.atjs / websdk / launch / target Ask which regions Target already owns (Step 2). Web SDK pages use target.transport: 'websdk'
edge.cloudflare The default mode becomes client + edge
fragmentBlock.exportsLoadFragment: false The installer adds the stock fragment block when it is missing; warn if one exists without loadFragment

Step 2: Choices

Take what the prompt already says. Ask the rest as *

Полный SKILL.md на GitHub

Установить personalize в Claude Code и Claude Desktop

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

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

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

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

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

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

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

CHANGELOG.mdassets/content/fragment.htmlassets/content/section-metadata.htmlassets/contract/README.mdassets/contract/pilot-scenarios.jsonassets/contract/schemas/decision-feedback.schema.jsonassets/contract/schemas/decision-request.schema.jsonassets/contract/schemas/decision-response.schema.jsonassets/contract/schemas/measurement-event.schema.jsonassets/contract/schemas/section.schema.jsonassets/contract/schemas/site-config.schema.jsonassets/contract/schemas/target-offer.schema.jsonassets/edge/cloudflare/LICENSE_APACHEassets/edge/cloudflare/README.mdassets/edge/cloudflare/src/aem-worker.mjsassets/edge/cloudflare/src/index.mjsassets/edge/cloudflare/src/personalization/adapters/of1.jsassets/edge/cloudflare/src/personalization/edge-config.jsassets/edge/cloudflare/src/personalization/html.jsassets/edge/cloudflare/src/personalization/personalize.jsassets/edge/cloudflare/wrangler.toml.tmplassets/runtime/blocks/fragment/fragment.jsassets/runtime/scripts/personalization/config.jsassets/runtime/scripts/personalization/context.jsassets/runtime/scripts/personalization/contract.jsassets/runtime/scripts/personalization/mock-engine.jsassets/runtime/scripts/personalization/mocks.jsassets/runtime/scripts/personalization/outcomes.jsassets/runtime/scripts/personalization/popup.jsassets/runtime/scripts/personalization/provider-api.jsassets/runtime/scripts/personalization/rules.jsassets/runtime/scripts/personalization/section-spec.jsassets/runtime/scripts/personalization/sections.jsassets/runtime/scripts/personalization/sources/api.jsassets/runtime/scripts/personalization/sources/split.jsassets/runtime/scripts/personalization/sources/target-websdk.jsassets/runtime/scripts/personalization/sources/target.jsassets/runtime/scripts/personalization/visitor.jsassets/runtime/styles/target-popup.csspackage.json

FAQ

Что делает скилл personalize?

Personalizes sections of AEM Edge Delivery Services (DA) pages with Section Metadata. The authored content is the default; Personalization rows pick an EDS fragment variant per visitor from rules (geo, device, new/returning, URL/UTM param, page state, custom audiences), a decision engine (v1 API, OF1), a section A/B split, or Adobe Target (inline or popup). Consent-first (no consent, no personalization), with measurement events per decision, a client runtime and an optional Cloudflare edge worker, all checked with a simulator and Playwright. Use for "personalize this section", "different hero for visitors from <country>", "returning visitor banner", "connect our decision engine / OF1", "A/B test this section", "let Target pick this offer", "edge personalization", or `/aem-eds-personalization:personalize`. Not for creating Target activities, AJO journeys or text tokens. DA projects only.

Как установить скилл personalize?

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

Скилл personalize запускает скрипты?

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

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

Сравнить personalize с