شعار Video2dsprite

Video2dsprite

المجتمعشائع
0x0funky
video2dsprite

لـ Grok Build فقط. حوّل صورة ثابتة لشخصية ثنائية الأبعاد إلى رسوم متحركة سلسة عبر image_gen/image_edit base → image_to_video (6s/10s جري في المكان) → إطارات ffmpeg → إزالة الخلفية الأرجوانية بمفتاح اللون → رسوم متحركة كثيفة العينات (شريط/شبكة/GIF). استخدمها عندما يريد المستخدم تحويل الفيديو إلى رسوم متحركة، أو التقاط الحركة من فيديو مُولّد، أو إنشاء دورات جري/مشي أكثر سلاسة انطلاقًا من إطارات كثيفة، أو يشغّل /video2dsprite. لا تستخدمها مع Codex/Claude — فـ Grok Build وحده يوفّر image_to_video. فضّل generate2dsprite لإنشاء أوراق بكسل واضحة من دون فيديو.

Add to TypingMind

نظرة عامة

الناشر0x0funky
المستودعagent-sprite-forge
اسم المهارةvideo2dsprite
النجوم
4.1K
التفريعات
400
الملفات المرفقة
4
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/0x0funky/agent-sprite-forge.git /tmp/agent-sprite-forge
mkdir -p .claude/skills
cp -r /tmp/agent-sprite-forge/skills/video2dsprite .claude/skills/video2dsprite
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Video2dsprite (Grok Build only)

Convert a base 2D character image into dense animation sprites using Grok Build's native video tools.

text
base still → image_to_video (in-place motion) → extract frames → chroma key → sample/normalize → strip / grid / GIF

Platform gate (read first)

RuntimeSupported?
Grok Build (xAI)Yes — requires image_gen / image_edit + image_to_video (or reference_to_video)
Codex / Claude / other agentsNo — they lack Grok video tools. Tell the user this skill is Grok Build only and offer $generate2dsprite instead

If image_to_video is missing from the tool list, stop and explain. Do not fake motion with code-drawn frames.

This skill is an optional denser-motion path. It does not replace $generate2dsprite:

Use $generate2dsprite when…Use $video2dsprite when…
Crisp pixel sheets, fixed grids, identity-critical heroesUser wants denser intermediate poses / smoother feeling loops
Attack/cast body sheets, prop packs, engine atlasesExperimenting with video-sourced run/walk/idle motion
Production default for most game spritesUser explicitly asks for video → frames → sprites

Video softens pixels, drifts identity, and leaves chroma fringes. Always QC; for production heroes, prefer $generate2dsprite unless the user wants the video look.

Parameters

Infer from the user request:

  • subject: character / creature description, or path to existing still
  • action: run | walk | idle | attack | custom motion phrase
  • view: usually side (side-scroller). topdown is harder — warn and keep camera locked
  • duration: 6 (default) or 10 seconds
  • frame_counts: which denser sets to export, default 8,16,24,48
  • cell_size: output sprite cell, default 128
  • anchor: feet (default for side locomotion) | center
  • bg: solid #FF00FF (required for chroma)
  • name: output slug
  • out_dir: working folder (default ./sprites/video2dsprite/<name>/ or project-relative)

Agent rules

  1. Grok-only. Refuse on non-Grok runtimes with a short explanation + $generate2dsprite alternative.
  2. Still → video, never text-to-video alone. Stage frame 1 as a clean still (image_gen or image_edit from a reference). Then call image_to_video.
  3. In-place motion. Prompt for run/walk in place facing a fixed direction. No camera pan, no background scroll, no scene change. Subject stays roughly centered.
  4. Solid magenta background on the base and preserved in the video prompt (#FF00FF / pure magenta). Required for flood-fill chroma.
  5. Do not invent art with PIL/Canvas. Base art comes from image_gen / image_edit or a user/local still. Scripts only postprocess.
  6. Do not put experimental outputs into the game unless the user asks to integrate.
  7. Prefer one locomotion cycle for game use. Dense sample across a full 6s multi-cycle clip is fine for previews; for engine sheets, optionally re-sample a single cycle (12–16 frames) after visual QC.
  8. Report absolute paths of video, cleaned frames, strips, and preview GIFs when done.

Workflow

1. Plan

Pick the smallest useful run:

  • Side-view run/walk loop → this skill
  • Multi-action hero kit → still use $generate2dsprite per action; only use video for locomotion if requested
  • FX / projectile / prop packs → $generate2dsprite, not video

Create:

text
<out_dir>/
  base/
  video/
  frames-raw/
  frames-clean/
  sprite/          # default 8-frame set + denser x16/x24/x48
  prompt-used.txt
  pipeline-meta.json
  README.txt

2. Build the base still

Options:

  • A. Existing sprite: open with image tools / read image, composite onto solid #FF00FF if needed
  • B. New character: image_gen with solid magenta background, full body, side view, centered
  • C. Match reference: image_edit from user reference onto magenta, preserve identity

Base requirements:

  • Full body visible, generous magenta margin
  • Side view for run/walk (profile or 3/4 side), feet near bottom third
  • Same art style as the rest of the project when a reference exists
  • No text, UI, watermark, or second character

Save as <out_dir>/base/<name>-base.png.

Write the exact image prompt into prompt-used.txt.

3. Animate with image_to_video

Call Grok image_to_video:

  • image: path to the base still
  • duration: 6 (default) or 10
  • resolution_name: 480p unless user asks 720p
  • prompt: one short present-tense shot (see references/prompt-rules.md)

Mandatory motion constraints in the prompt:

  • Subject runs/walks in place (treadmill style)
  • Camera locked — no pan, zoom, or orbit
  • Background stays flat solid magenta
  • Identity, costume, palette stable for the whole shot
  • Single continuous action only

Copy the returned video to <out_dir>/video/<name>-<duration>s.mp4.

If video tools are unavailable, stop (platform gate).

4. Extract + chroma + sample (local script)

Run the processor (ffmpeg + Pillow + numpy):

bash
python skills/video2dsprite/scripts/video2dsprite.py process \
  --video <out_dir>/video/<name>-6s.mp4 \
  --out-dir <out_dir> \
  --name <name> \
  --frame-counts 8,16,24,48 \
  --cell-size 128 \
  --body-height 100 \
  --foot-y 118 \
  --fps 0

Notes:

  • --fps 0 = extract every decoded frame (use source fps)
  • Magenta flood-fill from corners + despill
  • Even sampling for each count in --frame-counts
  • Feet-normalized cells, horizontal strip, grid, loop GIF per count

Optional: only re-sample denser sets from existing cleaned frames:

bash
python skills/video2dsprite/scripts/video2dsprite.py sample \
  --clean-dir <out_dir>/frames-clean \
  --out-dir <out_dir> \
  --frame-counts 16,24,48 \
  --cell-size 128

5. QC

Visually check:

  • Preview GIF loops without huge pops
  • Magenta gone (no solid pink blocks); fringe acceptable or re-key
  • Feet stay on a stable baseline (no hop from bad crop)
  • Identity roughly stable (face/clothes not morphing every frame)
  • Action is in-place (not sliding out of frame)
  • For game use: pick one count (often 16 or 24) or cut one true cycle

If identity drifts hard or pixels are too soft, fall back to $generate2dsprite for production sheets and keep the video set as motion reference only.

6. Deliver

Report paths only (unless user asked to wire into a game):

  • Video: video/*.mp4
  • Dense sprites: sprite/x16|x24|x48/
  • Strips / grids / GIFs: sprite/run-strip-N.png, run-grid-N.png, run-preview-N.gif
  • Meta: pipeline-meta.json

Do not modify game code unless requested.

Defaults

  • Duration: 6s
  • Action: side run in place, facing right
  • Export counts: 8, 16, 24, 48
  • Cell: 128², body height ~100, feet at y≈118
  • Background: #FF00FF
  • Prefer image_to_video over reference_to_video (compose multi-ref with image_edit first if needed)

Tradeoffs (tell the user once)

Pros: denser intermediates → often feels smoother than 4–8 discrete gen poses.
Cons: softer pixels, identity drift, chroma fringe, multi-cycle 6s clips are not a single perfect loop, heavier assets.
Rule of thumb: 8→16→24 usually gains smoothness; 48 is often diminishing returns; 145 raw frames are for sampling, not all for runtime.

Resources

Relationship to other skills

  • $generate2dsprite — primary sheet pipeline (Codex + Grok when image gen exists)
  • $generate2dmap — maps; not used here
  • $video2dsprite — Grok Build exclusive motion densification path

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

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

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

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

لـ Grok Build فقط. حوّل صورة ثابتة لشخصية ثنائية الأبعاد إلى رسوم متحركة سلسة عبر image_gen/image_edit base → image_to_video (6s/10s جري في المكان) → إطارات ffmpeg → إزالة الخلفية الأرجوانية بمفتاح اللون → رسوم متحركة كثيفة العينات (شريط/شبكة/GIF). استخدمها عندما يريد المستخدم تحويل الفيديو إلى رسوم متحركة، أو التقاط الحركة من فيديو مُولّد، أو إنشاء دورات جري/مشي أكثر سلاسة انطلاقًا من إطارات كثيفة، أو يشغّل /video2dsprite. لا تستخدمها مع Codex/Claude — فـ Grok Build وحده يوفّر image_to_video. فضّل generate2dsprite لإنشاء أوراق بكسل واضحة من دون فيديو.

لماذا تستخدم Video2dsprite على TypingMind؟

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

كيف أثبّت Video2dsprite في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/0x0funky/agent-sprite-forge/tree/main/skills/video2dsprite. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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