Skillpedia
الواجهات (UI/UX)28k · #9849

figma-create-design-system-rules

ما الذي تفعله

تنشئ هذه المهارة ملف قواعد لمشروعك يخبر وكلاء البرمجة كيف يحولون تصاميم Figma إلى كود بأسلوب فريقك. وهي موجهة للفرق التي تريد نتائج متسقة من أعمال Figma.

متى تستخدمها

  • ✓عندما تريد إعداد قواعد للمشروع في عمل تحويل Figma إلى الكود، حتى يتبع الوكلاء أعرافك.
  • ✓عندما يجب أن تُطبّق مكونات فريقك أو تسميتها أو رموز تصميمه بالطريقة نفسها في كل مرة.
  • ✓عندما تريد كتابة القواعد داخل CLAUDE.md أو AGENTS.md أو ملف قواعد Cursor.

رابط المهارة

https://github.com/openai/skills/blob/main/skills/.curated/figma-create-design-system-rules/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/openai/skills/blob/main/skills/.curated/figma-create-design-system-rules/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“من فضلك اكتب قواعد نظام التصميم لمشروعنا حتى يتبع الذكاء الاصطناعي أنماط مكوناتنا عندما يبني من Figma.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يدرس الوكيل الكود والأعراف ثم يكتب القواعد في الملف الذي يقرؤه وكيل البرمجة. ويحتاج إلى اتصال بخادم Figma MCP ليفعل ذلك.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Create Design System Rules

Overview

This skill helps you generate custom design system rules tailored to your project's specific needs. These rules guide AI coding agents to produce consistent, high-quality code when implementing Figma designs, ensuring that your team's conventions, component patterns, and architectural decisions are followed automatically.

Supported Rule Files

Agent Rule File
Claude Code CLAUDE.md
Codex CLI AGENTS.md
Cursor .cursor/rules/figma-design-system.mdc

What Are Design System Rules?

Design system rules are project-level instructions that encode the "unwritten knowledge" of your codebase - the kind of expertise that experienced developers know and would pass on to new team members:

  • Which layout primitives and components to use
  • Where component files should be located
  • How components should be named and structured
  • What should never be hardcoded
  • How to handle design tokens and styling
  • Project-specific architectural patterns

Once defined, these rules dramatically reduce repetitive prompting and ensure consistent output across all Figma implementation tasks.

Prerequisites

  • Figma MCP server must be connected and accessible
  • Access to the project codebase for analysis
  • Understanding of your team's component conventions (or willingness to establish them)

When to Use This Skill

Use this skill when:

  • Starting a new project that will use Figma designs
  • Onboarding an AI coding agent to an existing project with established patterns
  • Standardizing Figma-to-code workflows across your team
  • Updating or refining existing design system conventions
  • Users explicitly request: "create design system rules", "set up Figma guidelines", "customize rules for my project"

Required Workflow

Follow these steps in order. Do not skip steps.

Step 1: Run the Create Design System Rules Tool

Call the Figma MCP server's create_design_system_rules tool to get the foundational prompt and template.

Parameters:

  • clientLanguages: Comma-separated list of languages used in the project (e.g., "typescript,javascript", "python", "javascript")
  • clientFrameworks: Framework being used (e.g., "react", "vue", "svelte", "angular", "unknown")

This tool returns guidance and a template for creating design system rules.

Structure your design system rules following the template format provided in the tool's response.

Step 2: Analyze the Codebase

Before finalizing rules, analyze the project to understand existing patterns:

Component Organization:

  • Where are UI components located? (e.g., src/components/, app/ui/, lib/components/)
  • Is there a dedicated design system directory?
  • How are components organized? (by feature, by type, flat structure)

Styling Approach:

  • What CSS framework or approach is used? (Tailwind, CSS Modules, styled-components, etc.)
  • Where are design tokens defined? (CSS variables, theme files, config files)
  • Are there existing color, typography, or spacing tokens?

Component Patterns:

  • What naming conventions are used? (PascalCase, kebab-case, prefixes)
  • How are component props typically structured?
  • Are there common composition patterns?

Architecture Decisions:

  • How is state management handled?
  • What routing system is used?
  • Are there specific import patterns or path aliases?

Step 3: Generate Project-Specific Rules

Based on your codebase analysis, create a comprehensive set of rules. Include:

General Component Rules

- IMPORTANT: Always use components from `[YOUR_PATH]` when possible
- Place new UI components in `[COMPONENT_DIRECTORY]`
- Follow `[NAMING_CONVENTION]` for component names
- Components must export as `[EXPORT_PATTERN]`

Styling Rules

- Use `[CSS_FRAMEWORK/APPROACH]` for styling
- Design tokens are defined in `[TOKEN_LOCATION]`
- IMPORTANT: Never hardcode colors - always use tokens from `[TOKEN_FILE]`
- Spacing values must use the `[SPACING_SYSTEM]` scale
- Typography follows the scale defined in `[TYPOGRAPHY_LOCATION]`

Figma MCP Integration Rules

## Figma MCP Integration Rules

These rules define how to translate Figma inputs into code for this project and must be followed for every Figma-driven change.

### Required Flow (do not skip)

1. Run get_design_context first to fetch the structured representation for the exact node(s)
2. If the response is too large or truncated, ru
الأسئلة الشائعة

ماذا تحتاج المهارة قبل أن تبدأ؟

تحتاج إلى اتصال بخادم Figma MCP وإلى الوصول إلى قاعدة كود المشروع لدراستها.

ما الملفات التي تنشئها؟

تكتب القواعد في CLAUDE.md لـ Claude Code أو AGENTS.md لـ Codex CLI أو ملف قواعد Cursor، حسب الوكيل.

ما أنواع القواعد التي تلتقطها؟

قواعد عن المكونات التي يجب استخدامها، وأماكن الملفات، وطريقة تسمية المكونات، وما يجب ألا يُكتب ثابتًا في الكود.

التفاصيل

الوصف الأصلي من المؤلف

Generates custom design system rules for the user's codebase. Use when user says "create design system rules", "generate rules for my project", "set up design rules", "customize design system guidelines", or wants to establish project-specific conventions for Figma-to-code workflows. Requires Figma MCP server connection.

repo: openai/skills

الشعبية

نجوم GitHub
28k
الترتيب
#9849
الترخيص
—
آخر تحديث
28‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة