شعار Ai To Figma

Ai To Figma

المجتمع
Niall-Young
ai-to-figma

Plan web or iOS mobile interfaces from screenshots, Figma frame references, or a product brief; generate and explicitly approve full-screen visual previews for adaptation and independent design; rebuild approved directions as capture-safe static HTML with official assets; and push editable layers into Figma Design with Figma MCP code-to-canvas. Use when a user asks to design, recreate, reference, or independently plan a screen and deliver it directly to Figma.

نظرة عامة

الناشرNiall-Young
المستودعAItoFigma
اسم المهارةai-to-figma
النجوم
52
التفريعات
6
الملفات المرفقة
34
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

  • الملفات المرفقة: 34

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Niall-Young/AItoFigma.git /tmp/AItoFigma
mkdir -p .claude/skills
cp -r /tmp/AItoFigma/skills/ai-to-figma .claude/skills/ai-to-figma
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

يُحمّل النموذج مهارة Ai To Figma تلقائيًا بمجرد ورود طلب ذي صلة بها.

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

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

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

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

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

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

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

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

AI to Figma

Turn a design brief or visual reference into an approved visual direction, rebuild it as validated static HTML, then capture that HTML into an editable Figma Design file.

Core contract

  1. Resolve the brief, reference role, delivery target, fidelity mode, and device before creating the task workspace. Open the delivery-target chooser only for missing target fields. In Codex, insert it with the native ::codex-inline-vis directive; do not substitute a visualize content reference or modal form.
  2. Scaffold design.md with the resolved mode and without creating index.html. For adaptation and independent planning, establish the visual direction, generate a full-screen preview, iterate without a fixed limit, and stop until the user explicitly approves one version.
  3. After explicit approval, persist the selected file under previews/ and run scripts/record-preview-approval.mjs. Reconstruction skips only this full-screen preview gate, not generation of separate final assets.
  4. Resolve the local-font Typography Plan, inventory every non-text final visual in the Visual Asset Plan, classify its complexity as structural, flat, or rich, and show both complete decision tables to the user. Never abbreviate away composition, identity, complexity, method, or status. The approved full-screen preview is a reference, not a final asset.
  5. Resolve every typography and visual-asset row to ready, validate all required gates, then create index.html with scripts/init-html.mjs. Stop on any blocked item.
  6. Rebuild the approved direction with static HTML, inline CSS, separate final assets, and only small amounts of native JavaScript. Mark each planned visual with its data-visual-id; never embed the full-screen preview or introduce React or a remote runtime.
  7. Validate the rendered page and its visual-plan mappings locally before requesting a Figma capture.
  8. Use Figma MCP generate_figma_design as the delivery path and open only the root-scoped captureUrl emitted by scripts/serve-preview.mjs. Do not silently fall back to use_figma, clipboard HTML, SVG import, or a flat screenshot.
  9. Treat every capture ID as single-use. Permit one diagnosed retry with a new capture ID, then stop and report the failure.

Input roles

  • Brief: required product/content intent unless the user explicitly requests a literal reconstruction.
  • Reference: optional screenshot, local image, or node-specific Figma URL used for reconstruction or visual-language extraction.
  • Target: optional prompt input, but required before work begins. Use an explicitly designated Figma Design URL, or resolve the current Figma identity and plan for a new Design file through the delivery-target gate.
  • Device: web or mobile. Infer it only when the prompt or reference makes the class unambiguous.

If one Figma URL could be either a reference or a target, ask which role it has. Never guess.

Interpret “recreate”, “restore”, “1:1”, or equivalent language as reconstruction. Interpret “inspired by”, “reference”, or equivalent language as visual-language adaptation. Otherwise plan the interface from the brief.

Required references

Hard prohibitions

  • Do not crop a UI reference screenshot into final asset files.
  • Do not generate, invent, or approximately redraw an existing brand or product logo.
  • Do not regenerate an identity-critical product, person, package, or mascot and present it as the original.
  • Do not use an unvalidated transparent asset.
  • Do not generate a keyed background or run local background removal for a GPT Image 2 asset; request native transparency and validate the final alpha output.
  • Do not reduce a compositionally dominant hero illustration to generic CSS merely because its silhouette is abstract or geometrically reproducible.
  • Do not implement a rich visual with HTML/CSS, inline SVG, MingCute, or device-native structure. Use a file-backed original or image generation.
  • Do not substitute SVG or CSS when an image-generation row cannot be resolved. Invoke the runtime image-generation capability or mark the row blocked.
  • Do not create index.html before the Visual Asset Plan passes or continue while any visual is planned, resolving, or blocked.
  • Do not create index.html before the Typography Plan passes, use a remote or downloaded font, or leave a requested display font unresolved.
  • Do not create index.html for adaptation or independent planning before an explicitly approved preview is recorded and its hash validates.
  • Do not use the approved full-screen preview in HTML, the Visual Asset Plan, or Figma output; rebuild it as editable structure and separate assets.
  • Do not generate or distort an identity-critical logo, person, product, package, mascot, or character in a direction preview. Leave a neutral placeholder or use an authorized original without alteration.
  • Do not bake required shadows, backgrounds, UI text, or controls into generated subject images.
  • Do not mix MingCute with another generic icon family, use an icon font, retain an icon placeholder, or load icons at page runtime.
  • Do not send unreviewed HTML to Figma.
  • Do not capture body, html, or the browser viewport; capture only [data-figma-capture-root] through the URL emitted by scripts/serve-preview.mjs.
  • Do not claim delivery until the captured node or page has been reread and visually verified.
  • Do not create .ai-to-figma/<slug>/ while the delivery target is unresolved or an account switch is pending.

Bundled helpers

Resolve the directory containing this SKILL.md as AI_TO_FIGMA_SKILL_DIR. Use the bundled scripts from that directory instead of recreating their mechanics; keep generated task files in the user's current project:

bash
AI_TO_FIGMA_SKILL_DIR="/absolute/path/to/ai-to-figma"
npm install --omit=dev --prefix "$AI_TO_FIGMA_SKILL_DIR"
node "$AI_TO_FIGMA_SKILL_DIR/scripts/render-target-chooser.mjs" --input /thread-visuals/target-state.json --output /thread-visuals/figma-target-chooser.html
node "$AI_TO_FIGMA_SKILL_DIR/scripts/scaffold.mjs" --device web --mode adaptation --slug landing-page
node "$AI_TO_FIGMA_SKILL_DIR/scripts/record-preview-approval.mjs" --dir .ai-to-figma/landing-page --file previews/approved-v3.png
node "$AI_TO_FIGMA_SKILL_DIR/scripts/list-local-fonts.mjs" --query "PingFang"
node "$AI_TO_FIGMA_SKILL_DIR/scripts/validate-design.mjs" --file .ai-to-figma/landing-page/design.md
node "$AI_TO_FIGMA_SKILL_DIR/scripts/init-html.mjs" --dir .ai-to-figma/landing-page
node "$AI_TO_FIGMA_SKILL_DIR/scripts/inline-mingcute-icon.mjs" --file .ai-to-figma/landing-page/index.html --name home-1 --style regular --visual-id home-icon
node "$AI_TO_FIGMA_SKILL_DIR/scripts/validate-html.mjs" --file .ai-to-figma/landing-page/index.html --device web --design .ai-to-figma/landing-page/design.md
node "$AI_TO_FIGMA_SKILL_DIR/scripts/serve-preview.mjs" --dir .ai-to-figma/landing-page --port 4173
node "$AI_TO_FIGMA_SKILL_DIR/scripts/serve-preview.mjs" --dir .ai-to-figma/landing-page --port 4173 --inject-file /task-temp/capture-snippet.html --capture-id <capture-id> --capture-endpoint <capture-endpoint> --capture-delay 1000
python3 "$AI_TO_FIGMA_SKILL_DIR/scripts/validate-alpha.py" --input subject-transparent.png --preview-dir alpha-previews
# Legacy compatibility for a user-provided or first-party flat-background asset only:
python3 "$AI_TO_FIGMA_SKILL_DIR/scripts/remove-solid-background.py" --input legacy-source.png --out subject-transparent.png --key black --mode light-on-black
python3 "$AI_TO_FIGMA_SKILL_DIR/scripts/validate-alpha.py" --input subject-transparent.png --preview-dir alpha-previews --source-key black

The generated task directory, approved preview and approval record when required, Figma URL, verification result, asset provenance, and remaining limitations are required final outputs.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

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

ماذا تفعل مهارة الذكاء الاصطناعي Ai To Figma؟

Plan web or iOS mobile interfaces from screenshots, Figma frame references, or a product brief; generate and explicitly approve full-screen visual previews for adaptation and independent design; rebuild approved directions as capture-safe static HTML with official assets; and push editable layers into Figma Design with Figma MCP code-to-canvas. Use when a user asks to design, recreate, reference, or independently plan a screen and deliver it directly to Figma.

لماذا تستخدم Ai To Figma على TypingMind؟

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

كيف أثبّت Ai To Figma في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/Niall-Young/AItoFigma/tree/main/skills/ai-to-figma. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Ai To Figma؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Ai To Figma؟

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

هل مهارة الذكاء الاصطناعي Ai To Figma مجانية؟

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

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

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

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

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

عرض الكل

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

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