شعار Source Ux Design From Code

Source Ux Design From Code

المجتمع
etr
source-ux-design-from-code

Synchronize design system document with codebase changes. Usage /groundwork:source-ux-design-from-code

نظرة عامة

الناشرetr
المستودعgroundwork
اسم المهارةsource-ux-design-from-code
النجوم
45
التفريعات
4
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/etr/groundwork/tree/main/skills/source-ux-design-from-code
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/etr/groundwork.git /tmp/groundwork
mkdir -p .claude/skills
cp -r /tmp/groundwork/skills/source-ux-design-from-code .claude/skills/source-ux-design-from-code
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

يُحمّل النموذج Source Ux Design From Code تلقائيًا بمجرد ورود طلب ذي صلة بها.

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

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

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

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

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

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

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

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

Sync Design System Skill

Keeps {{specs_dir}}/design_system.md synchronized with design implementation decisions made during sessions.

Pre-flight: Model Recommendation

Your current effort level is {{effort_level}}.

Skip this step silently if effort is high, xhigh, or max (the scale is low < medium < high < xhigh < max, so xhigh and max are already above high) AND you are Sonnet or Opus. If effort is low or medium (i.e. below high), you MUST show the recommendation prompt — regardless of model. If you are not Sonnet or Opus, you MUST show the recommendation prompt - regardless of effort level.

Otherwise → use AskUserQuestion:

json
{
  "questions": [{
    "question": "Do you want to switch? Design token and pattern change categorization benefits from consistent reasoning.\n\nTo switch: cancel, run `/effort high` (and `/model sonnet` if on Haiku), then re-invoke this skill.",
    "header": "Recommended: Sonnet or Opus at high effort",
    "options": [
      { "label": "Continue" },
      { "label": "Cancel — I'll switch first" }
    ],
    "multiSelect": false
  }]
}

If the user selects "Cancel — I'll switch first": output the switching commands above and stop. Do not proceed with the skill.

Step 0: Resolve Project Context

Before loading specs, ensure project context is resolved:

  1. Monorepo check: Does .groundwork.yml exist at the repo root?
    • If yes → Is {{project_name}} non-empty?
      • If empty → Invoke Skill(skill="groundwork:select-project") to select a project, then restart this skill.
      • If set → Project is {{project_name}}, specs at {{specs_dir}}/.
    • If no → Continue (single-project repo).
  2. CWD mismatch check (monorepo only):
    • Skip if not in monorepo mode or if the project was just selected in item 1 above.
    • If CWD is the repo root → fine, proceed.
    • Check which project's path CWD falls inside (compare against all projects in .groundwork.yml).
    • If CWD is inside the selected project's path → fine, proceed.
    • If CWD is inside a different project's path → warn via AskUserQuestion:

      "You're working from <cwd> (inside [cwd-project]), but the selected Groundwork project is [selected-project] ([selected-project-path]/). What would you like to do?"

      • "Switch to [cwd-project]"
      • "Stay with [selected-project]" If the user switches, invoke Skill(skill="groundwork:select-project").
    • If CWD doesn't match any project → proceed without warning (shared directory).
  3. Proceed with the resolved project context. All {{specs_dir}}/ paths will resolve to the correct location.

File Locations

  • Target: Design system document (may be single file or directory)
    • Single file: {{specs_dir}}/design_system.md
    • Directory: {{specs_dir}}/design_system/ (content split across files)
  • Context: Current session history, codebase changes

Detection: Check for single file first (takes precedence), then directory.

When to Trigger

This skill should activate when:

  • User explicitly invokes /groundwork:source-ux-design-from-code
  • Session involved design token changes (colors, spacing, typography)
  • Component styling decisions were made
  • UX patterns were implemented or modified
  • Brand identity elements were added or changed

Workflow Overview

  1. Analyze Session - Review design-relevant changes this session
  2. Detect Changes - Identify design system implications
  3. Propose Updates - Draft decisions with appropriate IDs
  4. Apply Changes - Update document with user approval

Step 1: Analyze Session

Review the current session for:

Token Changes:

  • New CSS custom properties or design tokens added
  • Color values defined or modified
  • Spacing/sizing values established
  • Typography settings changed
  • TUI: theme/color-slot or text-style constants added (Textual .tcss/themes, Lip Gloss styles, ratatui Style, Ink styles); border/glyph/key-hint vocabulary changed
  • Mobile: theme edits (SwiftUI Color extensions/asset catalogs, Compose MaterialTheme, RN style tokens); text-style or safe-area usage changed

Component Styling:

  • New component variants created
  • Styling patterns established
  • Hover/focus/active states defined
  • Responsive breakpoint adjustments

UX Pattern Implementations:

  • Loading state patterns implemented
  • Error handling UI added
  • Empty state designs created
  • Navigation patterns established
  • Form validation approaches implemented
  • Animation/motion added
  • TUI: keybinding maps, pane layouts, degradation-ladder or line-oriented-mode changes
  • Mobile: navigation architecture, gesture handling, haptics, permission flows

Brand Identity:

  • Logo usage implemented
  • Color palette applied
  • Font selections made
  • Voice/tone established in UI copy

Step 2: Detect Change Categories

CategorySignalDesign System Section
Design principleExplicit "we should always..." statement§1.2 Design Principles
AccessibilityARIA labels, contrast fixes, focus states§1.1 Accessibility Requirements
Spacing tokenNew spacing value, padding/margin pattern§1.3 Token Categories (Spacing)
Elevation tokenShadow values, z-index decisions§1.3 Token Categories (Elevation)
Border radiusCorner radius decisions§1.3 Token Categories (Border Radius)
Color tokenNew color value, palette adjustment§2.1 Color System
TypographyFont family, size, weight decisions§2.2 Typography
Brand voiceUI copy patterns, tone decisions§2.4 Brand Voice
Visual atmosphereSurface treatments, textures, spatial character, tonal direction§2.5 Visual Atmosphere
NavigationNav structure, menu patterns§3.1 Navigation
Loading statesSkeleton, spinner, progress patterns§3.2 Loading States
Error handlingError display, validation feedback§3.3 Error Handling
Empty statesNo-data, first-run experiences§3.4 Empty States
Form patternsInput validation, form layout§3.5 Form Patterns
ResponsiveBreakpoint decisions, mobile adaptations§3.6 Responsive Behavior
MotionAnimation timing, transitions, entrance patterns, hover signatures§3.7 Motion & Interaction Character
ComponentNew component styling guidelines§4 Component Guidelines

Step 3: Propose Updates

For each detected change, propose a specific update:

markdown
## Proposed Design System Updates

### 1. New Design Principle

**Trigger:** You established that all interactive elements should have visible focus states.

**Proposed addition to §1.2 Design Principles:**

### DP-00X: Accessible Focus States

**Status:** Accepted
**Date:** [today]
**Context:** Implementing keyboard navigation revealed need for consistent focus indicators.

**Decision:** All interactive elements must have visible focus states with 3:1 contrast ratio.

**Rationale:** Supports keyboard-only users and WCAG 2.1 AA compliance.

---

### 2. New Color Token

**Trigger:** You added a new warning color for form validation.

**Proposed addition to §2.1 Color System:**

| Token | Value | Usage |
|-------|-------|-------|
| `--color-warning-light` | #FEF3C7 | Warning background |

**Proposed addition to §5 Decision Log (Brand Decisions):**

### BRD-00X: Warning Color Variant

**Status:** Accepted
**Date:** [today]
**Context:** Form validation needed softer warning background.

**Decision:** Added `--color-warning-light` (#FEF3C7) for warning backgrounds.

**Rationale:** Maintains warning semantic while providing softer background option.

---

### 3. UX Pattern Implementation

**Trigger:** You implemented skeleton loading screens for data tables.

**Proposed addition to §3.2 Loading States:**

**Data Tables:** Use skeleton rows matching table structure. Show 5 skeleton rows by default. Animate with subtle pulse.

**Proposed addition to §5 Decision Log (UX Decisions):**

### UXD-00X: Table Loading Pattern

**Status:** Accepted
**Date:** [today]
**Context:** Data tables needed loading feedback during API calls.

**Decision:** Use skeleton rows (5 default) with pulse animation for table loading states.

**Rationale:** Maintains layout stability and sets user expectations for content shape.

---

Approve these updates? (yes/no/modify)

Step 4: Apply Changes

On approval:

  1. Detect spec format - Check if design system is single file or directory
  2. Read current content:
    • Single file: Read {{specs_dir}}/design_system.md
    • Directory: Aggregate all .md files from {{specs_dir}}/design_system/
  3. Route updates to appropriate files:
    • Single file mode: Edit {{specs_dir}}/design_system.md directly
    • Directory mode: Route each update:
      • Design principles (DP-NNN) → {{specs_dir}}/design_system/01-foundations.md
      • Accessibility → {{specs_dir}}/design_system/01-foundations.md
      • Token changes → {{specs_dir}}/design_system/01-foundations.md
      • Color system (BRD-NNN) → {{specs_dir}}/design_system/02-brand-identity.md
      • Typography → {{specs_dir}}/design_system/02-brand-identity.md
      • Brand voice → {{specs_dir}}/design_system/02-brand-identity.md
      • UX patterns (UXD-NNN) → {{specs_dir}}/design_system/03-ux-patterns.md
      • Component guidelines → {{specs_dir}}/design_system/04-components.md
      • Decision log entries → {{specs_dir}}/design_system/05-decisions.md
  4. Maintain decision ID sequences (find highest DP/BRD/UXD-NNN, increment)
  5. Update "Last updated" timestamp
  6. If {{specs_dir}}/ux-preview.html exists, regenerate it to reflect the updated design system decisions
  7. Update "Status" if appropriate

Important:

  • New decisions get the next available ID in their prefix sequence
  • Never reuse deleted decision IDs (maintain traceability)
  • Preserve existing content - add to sections, don't replace unless correcting errors

Change Detection Heuristics

Strong signals (likely design system change):

  • New CSS custom properties or variables defined
  • TUI: theme/color-constant modules or style enums changed; keybinding/help vocabulary changed
  • Mobile: MaterialTheme/SwiftUI theme edits; Dynamic Type or dark-mode variant changes
  • Explicit design decisions ("let's use X for all buttons")
  • Accessibility fixes (contrast, ARIA, focus states)
  • New component variants with distinct styling
  • Animation/transition values established
  • Breakpoint or responsive behavior decisions

Weak signals (maybe design system change):

  • One-off styling for specific component
  • Temporary styling during development
  • Framework default overrides
  • Bug fixes to existing styles

Focus on strong signals. For weak signals, ask: "Is this a pattern we want to establish, or a one-time implementation detail?"

Session Summary Format

At session end, provide summary:

markdown
## Design System Sync Summary

**Session Date:** [date]

### Changes Detected:
1. [Change 1] → New principle DP-00X
2. [Change 2] → New color token BRD-00X
3. [Change 3] → UX pattern UXD-00X
4. [Change 4] → No design system impact (implementation detail)

### Design System Document:
- [X] Updated with approved changes
- [ ] No changes needed
- [ ] Changes pending user review

### Decision IDs Added/Modified:
- DP-00X (new)
- BRD-00X (new)
- UXD-00X (new)

### Open Items:
- [Any unresolved design questions from session]

Interaction with Other Skills

This skill works in concert with:

  • /groundwork:ux-design - For deliberate, interactive design system creation
  • /groundwork:source-product-specs-from-code - PRD changes may affect design requirements
  • /groundwork:source-architecture-from-code - Architecture changes may affect UX patterns

When multiple sync commands run:

  1. Run /groundwork:source-product-specs-from-code first (product drives design)
  2. Run /groundwork:source-ux-design-from-code second (design supports product)
  3. Run /groundwork:source-architecture-from-code last (architecture implements both)

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

ماذا تفعل مهارة الذكاء الاصطناعي Source Ux Design From Code؟

Synchronize design system document with codebase changes. Usage /groundwork:source-ux-design-from-code

لماذا تستخدم Source Ux Design From Code على TypingMind؟

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

كيف أثبّت Source Ux Design From Code في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/etr/groundwork/tree/main/skills/source-ux-design-from-code. يقرأ TypingMind ملف SKILL.md الخاص بها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Source Ux Design From Code؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Source Ux Design From Code؟

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

هل مهارة الذكاء الاصطناعي Source Ux Design From Code مجانية؟

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

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

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

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

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

عرض الكل

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

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