Skip to content
Skills Library
Marketing & content · Tool integration

uniform-cdp-personalization

/uniform-cdp-personalization

Integrates Customer Data Platform (CDP) profiles into Uniform personalization as quirks. Use when connecting Uniform to a CDP (Segment, mParticle), mapping audiences to quirks, building mock APIs or demo persona switchers for an editor.

Licence
MIT
Last repository change
08.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
6
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 08.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Integrates Customer Data Platform (CDP) profiles into Uniform personalization as quirks. Use when connecting Uniform to a CDP (Segment, mParticle), mapping audiences to quirks, building mock APIs or demo persona switchers for an editor.

Original author description

Integrates Customer Data Platform (CDP) profiles into Uniform personalization as quirks. Use when connecting Uniform to a CDP (Segment, mParticle), mapping audiences to quirks, building mock APIs or demo persona switchers for an editor.

How it works

  1. Workflow
  2. What does not exist
  3. Resources
Original SKILL.md headings · 56 lines, 420 words
SKILL.md preview
---
name: uniform-cdp-personalization
description: Integrates Customer Data Platform (CDP) profiles into Uniform personalization as quirks. Use when connecting Uniform to a CDP (Segment, mParticle), mapping audiences to quirks, building mock APIs or demo persona switchers for an editor.
license: MIT
metadata:
  author: uniformdev
  version: "1.0.0"
---

# CDP personalization with Uniform quirks

Brings what a customer data platform (CDP) knows about a visitor into Uniform personalization,
where it arrives as quirks: string values stored on the visitor. Audit how the project gets CDP
data into quirks today, then build what is missing: a server-side profile lookup, the mapping from
traits to quirk values, the quirk definitions authors target, and a mock profile API for
development and demos.

The SDK calls used here (`handleUniformRoute`, `context.update`, the Page Router context factory)
are covered by the `uniform-nextjs-app-router` and `uniform-nextjs-page-router` skills, if
installed.

## Workflow

1. **Audit**, read-only: the SDK, how quirks are set today, the Uniform project and the CDP →
   [audit.md](references/audit.md#scope).
2. **Ask** the choices that have more than one valid answer, in one call →
   [audit.md](references/audit.md#questions).
3. **Report** what works, what is broken and what is missing, ending with the mapping plan →
   [audit.md](references/audit.md#the-report).
4. **Map** traits to string quirk values in one function that the lookup and the mock share →
   [mapping.md](references/mapping.md).
5. **Wire** the lookup where the SDK evaluates personalization, cached per visitor; on the App
   Router that is the middleware and the browser context, and static Page Router pages hydrate with
   an empty context first → [wiring.md](references/wiring.md).
6. **Mock** the profile API and profile switching, when chosen →
   [mock-profile-api.md](references/mock-profile-api.md).
7. **Define** one quirk per mapped trait, then create the definitions or hand the user the
   commands → [mapping.md](references/mapping.md#definitions).
8. **Verify and close**: typecheck; with the mock on, switch through every fixture profile and
   check the quirks applied; on static pages, reload with a profile that picks a non-default variant
   and confirm the console is clear of hydration errors
   ([wiring.md](references/wiring.md#static-pages)); write the
   [closing report](references/audit.md#the-closing-report).

## What does not exist

- No public Uniform package connects Segment or any other CDP; there is no
  `@uniformdev/context-segment`.
- No Segment integration to install in Uniform: a quirk matches a trait only because code writes
  it ([segment.md](references/segment.md#identity)).
- No `quirks` option on `new Context()`; quirks enter through `update()` or the server state.

## Resources

- [Audit and questions](references/audit.md) — what the audit looks for, the questions, when to
  skip them, the report and the closing report
- [Mapping](references/mapping.md) — what criteria compare, trait types, the mapping function,
  quirk IDs, stale values, definitions and how they reach Uniform
- [Wiring](references/wiring.md) — where each SDK evaluates personalization, identity, caching,
  failures, consent
- [Mock profile API](references/mock-profile-api.md) — contract, fixtures, the opt-in flag,
  profile switching, demos against the real CDP, demo UI variants
- [Segment](references/segment.md) — endpoint and auth, requesting traits, identity, audiences
Files in this package (6)
  • SKILL.md 3 KB
  • references/audit.md 7 KB
  • references/mapping.md 5 KB
  • references/mock-profile-api.md 4 KB
  • references/segment.md 3 KB
  • references/wiring.md 7 KB

Versions

The database has no other skills named uniform-cdp-personalization.

Database snapshot: 13.11.2026 · package version 1f4d7fae1dc7 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 85segment-cdp
    Expert patterns for Segment Customer Data Platform including Analytics.js, server-side tracking, tracking plans with Protocols, identity resolution, destinations configuration, and data governance best practices. Use when: segment, analytics.js, customer data platform, cdp, tracking plan.
  • 100uniform-nextjs-app-router
    Guides integration of Uniform CMS with Next.js App Router using the @uniformdev/next-app-router v2 SDK and React Server Components. Covers project setup, environment variables, required edge middleware and advanced routing, the uniform/[code] composition route, component mapping…
  • 100segment
    Segment is a customer data platform (CDP) that collects events from your website, apps and servers once and routes them to analytics, marketing and warehouse destinations. Use when someone asks to "track user events across tools", "set up Segment", "send events to Mixpanel,…
  • 100uniform-nextjs-page-router
    Guides integration of Uniform CMS with Next.js Page Router. Covers project setup, component registration with registerUniformComponent, fetching compositions with withUniformGetServerSideProps, rendering slots and parameters, contextual editing preview, personalization and A/B…
  • 100sitecoreai-personalization
    Sets up SitecoreAI embedded personalization: page variants, audiences from condition templates, copy, swap or hide a component, publish, verify, undo; Marketer MCP first. Use to personalize a page for an audience. Not head-app wiring.
  • 90customer-segments
    Creates customer and user segment documents. Use when the user wants to 'segment customers,' 'customer segments,' 'user segments,' 'lifecycle segments,' or 'audience segmentation.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.