شعار Customer Id Architect

Customer Id Architect

المجتمع
ojiudezue
customer-id-architect

استخدم هذه المهارة عندما يصمم المستخدم هوية العملاء أو المصادقة، أو يهاجر من المعرّفات القائمة على البريد الإلكتروني. تُفعّلها عبارات مثل «المفتاح الأساسي»، و«معرّف العميل»، و«معرّف المستخدم»، و«البريد الإلكتروني كمعرّف»، و«GUID»، و«دمج الحسابات»، و«دمج المستخدمين»، و«يريد المستخدمون تغيير بريدهم الإلكتروني»، و«ترحيل SSO». تطبق قاعدة بنية الهوية باستخدام GUID الواردة في الفصل 4 من Building Rocketships.

Add to TypingMind

نظرة عامة

الناشرojiudezue
المستودعproductmind-skills
اسم المهارةcustomer-id-architect
النجوم
81
التفريعات
18
الملفات المرفقة
تعليمات فقط
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها ojiudezue على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Customer Id Architect في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/ojiudezue/productmind-skills/tree/main/skills/customer-id-architect
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ojiudezue/productmind-skills.git /tmp/productmind-skills
mkdir -p .claude/skills
cp -r /tmp/productmind-skills/skills/customer-id-architect .claude/skills/customer-id-architect
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Customer Id Architect في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Customer Id Architect تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Customer Id Architect بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Customer ID Architect

What this does

Runs Ch 4's identity architecture rule. Returns a proposed identity schema using random GUIDs as primary keys, an audit of the user's current system for the email-as-ID anti-pattern, and a migration sequence if a fix is needed. Refuses to recommend email or any other human-readable identifier as a primary key.

When to use

Trigger when the user:

  • Is designing a new product or account system from scratch
  • Has email or username as the primary user identifier and is feeling the pain (users can't change email, can't merge duplicate accounts, can't move identifiers across SSO providers)
  • Is planning to add SSO and discovering email-based IDs break the switch
  • Wants to support B2B "user joins second org" or "user changes employer" flows
  • Has duplicate-account problems and wants to merge

When NOT to use

  • The product has no users yet — the rule still applies, but route to aha-mapper and sharp-problem-test first; identity is a detail at pre-PMF
  • The user is asking about authentication providers, not identity architecture — different question; this skill addresses the primary-key choice, not the auth flow
  • The user is asking about Customer Data Platforms or analytics identifiers — different concern; analytics IDs can mirror the app's GUID but are out of scope here

The rule (from Ch 4)

Use a random GUID as the primary key for every user record. Never email, phone number, username, employee ID, or any other human- readable identifier.

Human-readable identifiers ATTACH to the GUID as attributes the user can change without losing history:

user (
  id GUID PRIMARY KEY,     -- never changes
  email STRING NULLABLE,   -- can be swapped, removed, added
  phone STRING NULLABLE,   -- can be swapped, removed, added
  username STRING NULLABLE,
  external_sso_ids JSON,   -- one or many provider IDs
  ...
)

When a user changes their email, you UPDATE the email column. The GUID — and every record that references it — stays put. No data migration. No history loss. No "we'll fix it next quarter."

Why this matters (the book's argument)

The pain of email-as-ID compounds over time:

  • Year 1: users complain when they can't change email. You ship a manual workaround.
  • Year 2: SSO arrives. Your IDs break because SSO providers return different emails for the same human. You ship a deduplication layer.
  • Year 3: a B2B customer asks to merge two accounts that were created at different employers. You either say no (losing the customer) or write a custom migration (costing weeks).
  • Year 4: a privacy law requires email deletion. Your data model breaks because the email IS the key.

Every one of these is free if the primary key is a GUID.

Decision rule for verdict

  • SOUND — primary key is a random GUID; human-readable identifiers are attached as nullable, mutable columns
  • UNSOUND — primary key is email, username, phone, employee ID, or any other human-readable string
  • NEEDS_MORE_INPUT — the user hasn't said what the current primary key is

Refusal mode (the anti-pattern from CLAUDE.md)

Email as primary customer ID is an outright refuse. If the user proposes it or has it, return UNSOUND with the named migration risks and the recommended fix sequence. Do not soften this — the book's position is unambiguous.

If the user pushes back ("but we don't have an SSO problem yet"), list the future scenarios (above) and quantify when the pain hits. Don't recommend deferring; the migration only gets harder.

The migration sequence (when email-as-ID exists today)

The book's recommended path:

  1. Add a guid column to the user table, generate values for existing rows, make it indexed but not yet the primary key
  2. Switch all foreign-key references to point to guid instead of email. This is the bulk of the work — touch every FK.
  3. Make guid the primary key, demote email to a nullable attribute. Keep the unique constraint on email for now.
  4. Drop the unique constraint on email when you're ready to support email-swap and duplicate-account-merge
  5. Add merge logic — when two GUIDs need to become one, re-parent their child records to the surviving GUID

Steps 1–3 are mechanical and can happen behind a feature flag. Steps 4–5 unlock the actual product features.

Inputs

  • Current primary key type (email, username, GUID, other, unknown)
  • Current scale (number of users, number of FKs into user table)
  • What downstream systems already use the current key (analytics, billing, CRM, support tooling)
  • (Optional) the immediate pain forcing the question (SSO arriving, GDPR, B2B merge request, etc.)
  • (Optional) constraints (cannot have downtime, must preserve historical data, etc.)

Output structure

## Identity verdict: [SOUND | UNSOUND | NEEDS_MORE_INPUT]

### Current state
- Primary key: [type + brief observation]
- Anti-pattern present: [yes/no, name it]
- Downstream coupling: [analytics, billing, etc.]

### Proposed schema
```sql
user (
  id GUID PRIMARY KEY,
  email STRING NULLABLE,
  ...
)

Migration sequence (if UNSOUND)

  1. ...
  2. ...

Risks if no fix

  • [Risk + when it bites]

Recommendation

[Concrete next step]

Analogous case from the book

[A named example]


## Worked example from the book

### Calendly's identity model (Ch 4) → SOUND
- Primary key: random GUID (UUID v4) on the user table
- Human-readable attributes attached: email (mutable), phone
  (optional), connected calendar providers (multiple OAuth IDs)
- Result: a Calendly user can change their email, sign in via Google
  one day and Microsoft the next, or merge two accounts created at
  different jobs — all without losing event types, share links,
  bookings, or historical data
- The schema cost ~1 day at founding. The avoided pain compounds
  every year.

### An email-as-ID startup (Ch 4) → UNSOUND
- Primary key: email
- Year 2 SSO migration: 3 engineer-months
- Year 3 B2B merge feature: shipped 9 months late because the
  migration was tangled with billing and CRM
- The cost of the original choice: ~12 engineer-months over 3 years
  to undo a 1-day savings at founding

## Gotchas

- **GUID v4 (random) over v1 (timestamp-based).** v1 leaks creation
  time and MAC address in some implementations. v4 is purely random.
- **Don't expose GUIDs in URLs that users see.** Use a separate
  human-friendly slug column for display. The GUID stays internal.
- **Mirror the GUID into analytics, CRM, billing, support.** Make
  the GUID the universal customer ID across systems on day one;
  otherwise you rebuild this rule for each downstream tool.
- **One-time encryption / hashing of emails for lookup** still
  doesn't make email a safe primary key. The hash becomes the new
  unchangeable ID with all the same problems.

## Anti-patterns to flag

If the user's design has any of these, surface them:
- Email as primary key — refuse (cite Ch 4)
- Username as primary key — same problem; refuse
- Employee ID / SSO subject as primary key — couples your data model
  to a third party that can rotate it
- "We'll switch to GUIDs later when we hit scale" — the migration
  gets harder with scale, not easier; refuse the defer
- GUID v1 (Mongo ObjectID-style) without justification — recommend
  v4 unless there's a real reason for ordered IDs

## Source

Ch 4: Customer Identity Architecture.

---
## About this skill

This skill is part of the **[ProductMind Skills](https://github.com/ojiudezue/productmind-skills)** catalog — open-source product-judgment skills for AI coding agents.

**Source:** *Building Rocketships* by Oji and Ezinne Udezue — Chapter 4.
This skill applies one named framework from the book. It works standalone in any agent that supports the SKILL.md standard.

**Want the orchestrated version?** The **RocketshipsGPT agent** runs all 13 book skills together, with persistent memory, framework-fidelity evals, voice-checked output, and the book's anti-pattern catches built in. → [rocketshipsgpt.productmind.co](https://rocketshipsgpt.productmind.co?utm_source=pms&utm_medium=skill-footer&utm_campaign=customer-id-architect)

**License:** Skill content licensed under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/). Attribution required; derivative works must share alike. See [ADR 0005](https://github.com/ojiudezue/BuildingRocketships/blob/main/docs/adr/0005-license-split.md) for rationale.

**Skill version:** 1.0.0 · **Published:** 2026-06-05

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Customer Id Architect؟

استخدم هذه المهارة عندما يصمم المستخدم هوية العملاء أو المصادقة، أو يهاجر من المعرّفات القائمة على البريد الإلكتروني. تُفعّلها عبارات مثل «المفتاح الأساسي»، و«معرّف العميل»، و«معرّف المستخدم»، و«البريد الإلكتروني كمعرّف»، و«GUID»، و«دمج الحسابات»، و«دمج المستخدمين»، و«يريد المستخدمون تغيير بريدهم الإلكتروني»، و«ترحيل SSO». تطبق قاعدة بنية الهوية باستخدام GUID الواردة في الفصل 4 من Building Rocketships.

لماذا تستخدم Customer Id Architect على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Customer Id Architect عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Customer Id Architect في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/ojiudezue/productmind-skills/tree/main/skills/customer-id-architect. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Customer Id Architect؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Customer Id Architect؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Customer Id Architect معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Customer Id Architect مجانية؟

نشرها ojiudezue على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇