شعار Generating Dot Assets

Generating Dot Assets

المجتمع
abagames
generating-dot-assets

Generates transparent pixel-art object assets from a subject and target pixel size using a host-provided image-generation tool, chroma-key removal, pixelization, exact canvas fitting, and PNG validation. Use for game objects, sprites, props, item icons, and diorama layers. Requires Codex's built-in `image_gen` (or an equivalent image-generation entry point) and ImageMagick `convert` on PATH.

نظرة عامة

الناشرabagames
المستودعagentic-gamedev-skills
اسم المهارةgenerating-dot-assets
النجوم
39
التفريعات
6
الملفات المرفقة
8
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/abagames/agentic-gamedev-skills/tree/main/.agents/skills/generating-dot-assets
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/abagames/agentic-gamedev-skills.git /tmp/agentic-gamedev-skills
mkdir -p .claude/skills
cp -r /tmp/agentic-gamedev-skills/.agents/skills/generating-dot-assets .claude/skills/generating-dot-assets
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

يُحمّل النموذج Generating Dot Assets تلقائيًا بمجرد ورود طلب ذي صلة بها.

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

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

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

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

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

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

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

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

Dot Asset Generator

Create transparent pixel-art object assets from a natural-language subject and an exact target size such as 32x32, 64x64, or 96x48.

Use this skill when the user asks for a game object, sprite-like prop, item icon, diorama object, or transparent pixel-art asset generated from image generation.

Environment requirements

  • An image-generation tool callable from the agent. The bundled workflow assumes Codex's built-in image_gen and reads its output from $CODEX_HOME/generated_images/.... On other hosts (Claude Code, plain CLI), substitute an equivalent generator and copy the chosen image into <PROJECT_DIR>/assets/source/<stem>.raw.png.
  • In Codex CLI, built-in image_gen output may not appear under $CODEX_HOME/generated_images even when generation succeeds. If no current output file is visible, recover the PNG from the Codex session JSONL before retrying generation; see references/imagegen-cli-recovery.md.
  • ImageMagick convert on PATH. The bundled scripts/*.mjs shell out to it; if it is missing, stop and report the dependency rather than fabricating output.

Inputs

Require:

  • subject, e.g. old wooden school desk
  • final size, e.g. 64x64
  • output path or output directory

Optional:

  • style notes
  • palette JSON with a colors array
  • raw output directory
  • color count
  • chroma-key color
  • fit mode: contain or stretch

Default project layout:

  • Use <PROJECT_DIR>/assets/source/ for prompt records, copied raw images, cutouts, pixelized intermediates, and optional palette JSON files.
  • Use <PROJECT_DIR>/assets/sprites/ for final validated transparent PNGs.
  • Use <stem>.prompt.md, <stem>.raw.png, <stem>.cutout.png, <stem>.pixel.png, and <stem>.palette.json for generated working files.
  • If the final filename already exists and overwrite was not explicitly requested, use <stem>_v2.png, then _v3, etc. Apply the same suffix to prompt, raw, cutout, pixel, and palette files for that run.
  • For role-based game assets, read <PROJECT_DIR>/VISUAL_DESIGN.md or the README visual direction first. Explicit user or scenario constraints may be used when those files are unavailable; report the missing design docs and record the constraints in the prompt file. If neither design docs nor explicit constraints define role colors, define a minimal Player / Danger / Reward palette (or run a visual-direction pass first) before generating.
  • Use --colors <N> for exploratory or one-off assets when exact project colors are not required. Create and pass a palette JSON when assets must share a project palette, match role colors, or stay consistent across a set.

Workflow

  1. Read references/prompt-patterns.md, then prompt built-in image_gen for an oversized source image of exactly one object on the selected chroma-key background.
  2. Copy the selected generated image from $CODEX_HOME/generated_images/... into the project raw directory.
  3. Run scripts/cutout.mjs to remove the chroma-key background.
  4. Run scripts/pixelize.mjs to reduce detail and apply a palette or color limit.
  5. Run scripts/fit-canvas.mjs to enforce the exact requested WxH transparent canvas.
  6. Run scripts/validate-pixel-asset.mjs, then apply the automated and visual acceptance checks in references/validation.md.
  7. Save a prompt record in the source directory using <stem>.prompt.md unless the project has a stronger convention.

Prefer project-local equivalent tools if they already exist and satisfy the same contract. Otherwise use this skill's bundled scripts.

Commands

Set SKILL_DIR to the absolute directory containing this loaded SKILL.md; plugin installations need not share the source repository layout.

bash
: "${SKILL_DIR:?Set SKILL_DIR to this skill directory}"
node "$SKILL_DIR/scripts/cutout.mjs" raw.png tmp/cutout.png --trim --fuzz 8%
node "$SKILL_DIR/scripts/pixelize.mjs" tmp/cutout.png tmp/pixel.png --width 96 --colors 24 --dither off
node "$SKILL_DIR/scripts/fit-canvas.mjs" tmp/pixel.png final.png --size 64x64 --fit contain --gravity center
node "$SKILL_DIR/scripts/validate-pixel-asset.mjs" final.png --size 64x64 --max-colors 24 --transparent-corners

With a palette:

bash
: "${SKILL_DIR:?Set SKILL_DIR to this skill directory}"
node "$SKILL_DIR/scripts/pixelize.mjs" tmp/cutout.png tmp/pixel.png --width 96 --palette palette.json --dither off

Palette files must contain a colors array of hex colors:

json
{
  "colors": ["#1b1f3a", "#f04438", "#f97316", "#facc15", "#38bdf8", "#f8fafc"]
}

Rules

  • Do not rely on image generation to produce exact pixel dimensions.
  • Do not leave final sizing to pixelize; always enforce the requested dimensions with fit-canvas.
  • Use contain for most object assets so the subject is not cropped.
  • Generate one object per image. Batches should use one built-in image_gen call per object.
  • Keep raw generated images and final transparent PNGs separate.
  • Do not overwrite existing assets unless explicitly asked; create a versioned filename instead.
  • Do not require an explicit palette for every asset. Use one when the project already defines colors, when role colors matter, or when multiple assets must look like they belong to the same set.
  • Default pixelize resize: use an intermediate long edge about 2x the final long edge. For square or landscape assets, set --width to final_width * 2; for portrait assets, set --height to final_height * 2. Use both --width and --height only when intentional pre-fit stretching is acceptable.

Failure Handling

  • If chroma-key removal leaves a colored fringe, retry cutout with a higher --fuzz or regenerate with more padding and stricter flat-background wording.
  • If built-in image_gen appears to succeed but no output file is available under $CODEX_HOME/generated_images, do not assume generation failed. Recover the PNG from the Codex session JSONL using references/imagegen-cli-recovery.md, then continue from the raw-image copy step.
  • If the subject is cropped, regenerate with stronger padding instructions or use a larger intermediate size.
  • If the object becomes unreadable at final size, regenerate with simpler shapes or pixelize from a less detailed source.
  • If ImageMagick convert is unavailable, report that the bundled scripts require ImageMagick and stop.

References

  • references/prompt-patterns.md — canonical image-generation prompts and key-color selection.
  • references/validation.md — canonical automated and visual acceptance checks.
  • references/imagegen-cli-recovery.md — recover successful Codex CLI image output when no generated file is visible.

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

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

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

ماذا تفعل مهارة الذكاء الاصطناعي Generating Dot Assets؟

Generates transparent pixel-art object assets from a subject and target pixel size using a host-provided image-generation tool, chroma-key removal, pixelization, exact canvas fitting, and PNG validation. Use for game objects, sprites, props, item icons, and diorama layers. Requires Codex's built-in `image_gen` (or an equivalent image-generation entry point) and ImageMagick `convert` on PATH.

لماذا تستخدم Generating Dot Assets على TypingMind؟

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

كيف أثبّت Generating Dot Assets في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/abagames/agentic-gamedev-skills/tree/main/.agents/skills/generating-dot-assets. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Generating Dot Assets؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Generating Dot Assets؟

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

هل مهارة الذكاء الاصطناعي Generating Dot Assets مجانية؟

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

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

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

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

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

عرض الكل

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

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