شعار Pixel Asset Master

Pixel Asset Master

المجتمع
424431185
pixel-asset-master

AI-driven 2D pixel game asset generation system. Converts game design descriptions into pixel art sprites, tilesets, animations, and UI elements through multi-role collaboration. Exports as sprite sheets and individual PNGs. Use when user asks to "create pixel art", "generate game sprites", "make tileset", "生成像素素材", "做游戏瓦片", "制作精灵图", or mentions "pixel-asset-master".

نظرة عامة

الناشر424431185
المستودعpixel-asset-master-skills
اسم المهارةpixel-asset-master
النجوم
102
التفريعات
14
الملفات المرفقة
16
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Pixel Asset Master Skill

AI-driven 2D pixel game asset generation system. Converts game design descriptions into pixel art sprites, tilesets, animations, and UI elements through multi-role collaboration and exports as sprite sheets / individual PNGs.

Core Pipeline: Game Description → Create Project → Style Confirmation → Strategist → [Image_Generator] → Executor → Post-processing → Export

[!CAUTION]

🚨 Global Execution Discipline (MANDATORY)

This workflow is a strict serial pipeline. The following rules have the highest priority — violating any one of them constitutes execution failure:

  1. SERIAL EXECUTION — Steps MUST be executed in order; the output of each step is the input for the next. Non-BLOCKING adjacent steps may proceed continuously once prerequisites are met
  2. BLOCKING = HARD STOP — Steps marked ⛔ BLOCKING require a full stop; the AI MUST wait for an explicit user response before proceeding
  3. NO CROSS-PHASE BUNDLING — Cross-phase bundling is FORBIDDEN
  4. GATE BEFORE ENTRY — Each Step has prerequisites (🚧 GATE) listed at the top; these MUST be verified before starting that Step
  5. NO SPECULATIVE EXECUTION — "Pre-preparing" content for subsequent Steps is FORBIDDEN
  6. NO SUB-AGENT GENERATION — Executor Step 6 pixel art generation is context-dependent and MUST be completed by the current main agent end-to-end
  7. SEQUENTIAL ASSET GENERATION — Assets MUST be generated sequentially in one continuous pass
  8. SPEC_LOCK RE-READ PER ASSET — Before generating each asset, Executor MUST re-read spec_lock.md. All colors / sizes / palettes MUST come from this file

[!IMPORTANT]

🌐 Language & Communication Rule

  • Response language: match the user's input. Explicit user override takes precedence.
  • Template format: design_spec.md MUST follow its original English template structure regardless of conversation language. Content values may be in the user's language.

[!IMPORTANT]

🔌 Compatibility With Generic Coding Skills

  • pixel-asset-master is a repository-specific workflow, not a general application scaffold
  • Do NOT create .worktrees/, tests/, branch workflows, or generic engineering structure by default
  • On conflict with a generic coding skill, follow this skill unless the user explicitly says otherwise

Main Pipeline Scripts

ScriptPurpose
${SKILL_DIR}/scripts/project_manager.pyProject init / validate / manage
${SKILL_DIR}/scripts/palette_analyzer.pyPalette extraction and validation
${SKILL_DIR}/scripts/asset_validator.pyPixel art asset quality check
${SKILL_DIR}/scripts/sprite_sheet.pySprite sheet packing and export
${SKILL_DIR}/scripts/image_gen.pyAI image generation (multi-provider)
${SKILL_DIR}/scripts/finalize_assets.pyAsset post-processing (quantize, clean, index)

For complete tool documentation, see ${SKILL_DIR}/scripts/README.md.

Template Index

IndexPathPurpose
Palette library${SKILL_DIR}/templates/palettes/palettes_index.jsonQuery available pixel art color palettes
Size presets${SKILL_DIR}/templates/sizes/sizes_index.jsonQuery standard pixel art dimensions
Sprite templates${SKILL_DIR}/templates/sprites/sprites_index.jsonQuery sprite layout templates (character, tile, item, UI)

Standalone Workflows

WorkflowPathPurpose
create-paletteworkflows/create-palette.mdStandalone palette creation workflow
batch-animateworkflows/batch-animate.mdBatch animation frame generation

Pipeline Steps

Step 1: Source Content Processing

🚧 GATE: User provides game design description (text/image/reference)

Input TypeProcessing
Text descriptionDirect use as design brief
Reference imagesAnalyze style, palette, size via palette_analyzer.py
Game design docExtract asset requirements list
Existing spritesAnalyze and extend existing style

Output: Structured asset requirements list


Step 2: Project Initialization

🚧 GATE: Step 1 complete

bash
python ${SKILL_DIR}/scripts/project_manager.py init <project_name> --size 32x32 --palette default

Project structure:

projects/<name>_<size>_<date>/
├── design_spec.md          # Human-readable design narrative
├── spec_lock.md            # Machine-readable execution contract
├── images/                 # User-provided reference images
├── assets/                 # Generated pixel art assets (PNG)
│   ├── characters/
│   ├── tiles/
│   ├── items/
│   ├── ui/
│   ├── effects/
│   └── backgrounds/
├── animations/             # Animation frame sequences
├── sheets/                 # Packed sprite sheets
├── notes/                  # Design notes per asset
└── exports/                # Final export directory

If user provides reference images:

bash
python ${SKILL_DIR}/scripts/project_manager.py import-sources <project_path> <files...> --move

Step 3: Style Confirmation

🚧 GATE: Step 2 complete

Select pixel art style direction:

StyleDescriptionTypical SizePalette
NES Classic8-bit console style, hard edges16x16 / 32x324-8 colors per sprite
SNES Retro16-bit console, more detail32x32 / 64x648-16 colors per sprite
Modern PixelClean, contemporary indie32x32 / 64x6416-32 colors per sprite
MinimalistUltra-simple, few pixels8x8 / 16x162-4 colors per sprite
Dense DetailRich detail, large sprites64x64 / 128x12824-48 colors per sprite
High-Res PixelUltra-detailed, illustration-grade256x256 / 512x51264-96 colors per sprite
Cinematic PixelPrint/billboard quality1024x1024 / 2048x2048128-256 colors per sprite

⛔ BLOCKING — Present style options to user, wait for confirmation.


Step 4: Strategist — Six Confirmations

🚧 GATE: Step 3 confirmed

The Strategist formulates Six Confirmations for the pixel art project:

#ConfirmationDescription
1Canvas SizeBase sprite size per frame. Available presets: 8x8 / 16x16 / 24x24 / 32x32 / 48x48 / 64x64 / 128x128 / 256x256 / 512x512 / 1024x1024 / 2048x2048. Custom sizes allowed (max 2048x2048). For character sprite sheets, prefer ≥ 64x64 for sufficient detail.
2Asset CountTotal number of assets to generate
3Target PlatformGame engine / runtime (Unity, Godot, RPG Maker, web, etc.)
4Color PaletteSpecific palette or auto-derived from references
5Art StylePixel art sub-style (outlined / outlineless / dithered / cel-shaded)
6Animation NeedsFor each character asset, confirm the following:

Animation detail breakdown (for character assets):

ItemOptionsNotes
Facing direction4-dir (up/down/left/right) / 8-dir / side-only (left+right) / single (front-facing only)Determines how many directional rows the sprite sheet needs
Action listSelect from common actions below, or specify customEach action = one row in the sprite sheet
Frames per actionTypical 4-8 frames per action; idle can be 2-4, run 6-8, attack 4-6More frames = smoother but larger sheet

Common character actions:

ActionTypical FramesDescription
idle2-4Standing breathing / subtle motion
walk4-6Slow-paced walking cycle
run6-8Fast running cycle
jump4-6Jump ascent + peak
fall2-4Falling / descent
attack4-6Melee / ranged attack
hurt2-3Taking damage reaction
die4-6Death animation
cast4-6Magic / skill casting
interact2-4Opening chest / pushing / pulling
climb4-6Ladder / wall climbing
crouch2-3Crouching / sneaking
roll4-6Dodge roll
swim4-6Swimming cycle

⛔ BLOCKING — Present Six Confirmations to user, wait for explicit confirmation.

After confirmation, generate:

  • design_spec.md — Human-readable design narrative
  • spec_lock.md — Machine-readable execution contract

Step 5: Image Acquisition

🚧 GATE: Step 4 confirmed

ScenarioAction
User provided referencesAlready in images/, skip
Need additional referencesUse image_gen.py or web search
No references neededGenerate from description only

Step 6: Executor — Generate Pixel Art Assets

🚧 GATE: Step 5 complete, spec_lock.md exists

Role-specific rules: see references/executor-pixel.md

Generation phases:

  1. Visual Construction Phase: Generate all pixel art PNG assets sequentially
  2. Quality Check Gate: Run asset_validator.py on all assets
  3. Logic Construction Phase: Generate design notes per asset

Per-asset generation:

  • Re-read spec_lock.md before each asset
  • Generate at declared canvas size
  • Apply declared palette (quantize if needed)
  • Save to appropriate assets/ subdirectory

Asset categories:

CategorySubdirectoryTypical Assets
Charactersassets/characters/Player, NPCs, enemies, bosses
Tilesassets/tiles/Ground, walls, decorations, transitions
Itemsassets/items/Weapons, potions, keys, collectibles
UIassets/ui/Buttons, frames, icons, bars, panels
Effectsassets/effects/Explosions, particles, magic, weather
Backgroundsassets/backgrounds/Parallax layers, sky, terrain

🧱 Tile Generation Standards (MANDATORY)

Tiles are the most common asset type and easiest to make look "fake". The following 9 rules must ALL be satisfied for every tile.

1. Canvas & Format
  • Default size: 64×64 RGB (no transparency for ground tiles)
  • Palette: Strict quantization to declared palette in spec_lock.md
  • Anti-pattern: Anti-aliasing, semi-transparent edges, gradients with > palette colors
2. NO Obvious Geometric Patterns ⛔

The #1 cause of "fake-looking" tiles. Forbidden in repeatable terrain:

❌ Anti-pattern✅ Replace with
Centered cross / star / plusRandom off-center features
4 equal quadrantsVoronoi 8-15 irregular cells
Regular sine wavesLow-frequency value noise
Horizontal stripe layersDiagonal/random color blobs
Symmetric corner motifsSingle asymmetric accent
Straight diagonal cracksRandom walk segments

Decorative tiles (e.g., tile_brick) may use geometric patterns, but only when explicitly designed as architecture, not as terrain.

3. Multi-Tier Color Distribution

Each pixel sampled by probability bucket:

  • 70% main color (palette base)
  • 15% dark accent (-1 palette step)
  • 10% light accent (+1 palette step)
  • 5% emphasis color (rare highlight/feature)
4. Low-Frequency Value Noise (Required)

For natural color variation, use value noise + cosine interpolation:

python
nodes = [[rng.uniform(-1, 1) for _ in range(gw)] for _ in range(gh)]
# CRITICAL: wrap edges for seamless tiling
for row in nodes: row[gw-1] = row[0]
nodes[gh-1] = list(nodes[0])
# Then cosine-lerp at each pixel

Recommended scales:

  • Main blob: 8~16 px per node (large irregular regions)
  • Detail: 3~6 px per node (subtle variation)
  • Combine 2 octaves for richer texture
5. Seamless Tiling (4-Edge Wrap) ⛔

Tile must repeat without visible seams. Two enforcement methods:

  • Modulo coordinates: img.putpixel((x % W, y % H), color)
  • Wrap noise nodes: last row/col equals first
  • Test: Place 2×2 instances side-by-side; no visible borders
6. Sparse Feature Points (≤ 1% of pixels)

Cracks, mineral veins, moss spots, water droplets, etc:

  • Random-walk paths for cracks (short, intermittent, never straight)
  • Scattered points (not clustered, not aligned)
  • Total feature pixels ≤ 1% of canvas area
  • Forbidden: Continuous straight lines crossing the tile
7. Low-Noise Visual Coherence

Terrain tiles must feel calm and continuous when shown full-screen:

  • Noise rule: Avoid salt-and-pepper noise, snow-like white speckles, or evenly scattered bright dots.
  • Highlight rule: White / near-white pixels are forbidden for ground and underground tiles unless explicitly requested; use warm ochre, muted gray, or one-step lighter palette colors instead.
  • Continuity rule: Prefer broad, low-frequency color regions and short soft bands over per-pixel randomness.
  • Pixel style rule: Keep hard pixel edges and readable clusters; do not blur, smear, or use anti-aliased gradients.
  • Ink-gongbi rule: For this project, terrain should stay in restrained ink-and-gongbi tones: muted earth, sand, jade, water, gray ink; no neon colors or high-contrast glitter.
8. Edge Color Continuity

Edges within ±1 palette step of interior. Avoid:

  • ❌ Black border line around the tile (creates grid effect when tiled)
  • ❌ Drastically different color in 1-pixel border
  • ✅ Same color distribution on edges as interior
9. Mandatory Validation

Before declaring done, verify:

  • Place 4 copies in 2×2 grid → no seams visible
  • Compare with adjacent tiles (e.g., grass + dirt) → color transition feels natural
  • No symmetric features (rotate 90° / flip → looks different)
  • Quantized to exact palette (palette_analyzer.py)
  • Feature density ≤ 1%
  • No visible white speckle noise when viewed at game fullscreen scale
Reference Implementation

See e:/神谱拾遗/projects/ShenPuShiYi_Scenes_64x64_20260502/gen_tiles_v2.py for working examples of:

  • Voronoi stone path with wrap-distance metric
  • Two-octave noise jade with cosine interpolation
  • Random-walk cracks for clay/bedrock
  • Probability-bucketed multi-tier color distribution

Step 7: Post-processing & Export

🚧 GATE: Step 6 complete, all assets pass quality check

bash
# 1. Post-process assets (quantize, clean borders, index colors)
python ${SKILL_DIR}/scripts/finalize_assets.py <project_path>

# 2. Pack sprite sheets
python ${SKILL_DIR}/scripts/sprite_sheet.py <project_path>

# 3. Export final package
# Output:
#   exports/<project_name>_<timestamp>.zip
#   ├── sprites/           ← Individual PNGs
#   ├── sheets/            ← Packed sprite sheets
#   ├── palettes/          ← Palette files (GPL/PAL/ACT)
#   └── manifest.json      ← Asset manifest with metadata

Export formats:

FormatDescription
Individual PNGsOne file per asset/animation frame
Sprite sheetsPacked grid with manifest
Palette filesGPL / PAL / ACT format
Asset manifestJSON with size, palette, animation metadata

Role Switching Rules

PhaseActive RoleReference File
Step 1-3CoordinatorThis file
Step 4Strategistreferences/strategist.md
Step 5Image_Generator (optional)references/image-generator.md
Step 6Executorreferences/executor-pixel.md
Step 7Post-processorThis file + references/shared-standards.md

Switching protocol: Announce role switch with [Role Switch: <Role>] before starting the phase.

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

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

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

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

AI-driven 2D pixel game asset generation system. Converts game design descriptions into pixel art sprites, tilesets, animations, and UI elements through multi-role collaboration. Exports as sprite sheets and individual PNGs. Use when user asks to "create pixel art", "generate game sprites", "make tileset", "生成像素素材", "做游戏瓦片", "制作精灵图", or mentions "pixel-asset-master".

لماذا تستخدم Pixel Asset Master على TypingMind؟

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

كيف أثبّت Pixel Asset Master في TypingMind؟

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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