算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
game-character-gen【设计与创意】Generate professional game character designs via OpenAI Images API. Create diverse characters for RPGs, video games, tabletop games, and interactive media. Use when user needs character concept art, character portraits, game sprites, or character sheets with specific attributes like race, class, profession, equipment, and visual style (e.g., "create …
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generate detailed character concepts for games with precise control over race, class, equipment, and visual style.
OPENAI_API_KEYGenerate a basic character:
python3 ~/Projects/agent-scripts/skills/game-character-gen/scripts/generate.py \
--race "elf" \
--class "ranger"
Generate with specific details:
python3 ~/Projects/agent-scripts/skills/game-character-gen/scripts/generate.py \
--race "dragonborn" \
--class "paladin" \
--gender "female" \
--equipment "plate armor, divine shield" \
--style "epic fantasy painting"
Generate a batch of characters:
python3 ~/Projects/agent-scripts/skills/game-character-gen/scripts/generate.py \
--race "human" "dwarf" "tiefling" \
--class "warrior" "mage" "rogue" \
--style "dark fantasy" "anime" "realistic"
human - Human (various ethnicities)elf - High elf, wood elf, dark elf (drow)dwarf - Mountain dwarf, hill dwarfhalfling - Lightfoot, stout halflinggnome - Rock gnome, forest gnomehalf-elf - Half-elf heritagehalf-orc - Half-orc heritagedragonborn - Dragonborn (various draconic lineages)tiefling - Tiefling (infernal heritage)goliath - Goliath (giant heritage)aasimar - Aasimar (celestial heritage)goblin - Goblinhobgoblin - Hobgoblinbugbear - Bugbearkenku - Kenku (bird-like)tabaxi - Tabaxi (feline)lizardfolk - Lizardfolkfirbolg - Firbolggenasi - Genasi (elemental: air, earth, fire, water)warrior - Fighter, barbarian, knightmage - Wizard, sorcerer, warlockcleric - Cleric, priest, paladinrogue - Rogue, assassin, thiefranger - Ranger, hunter, scoutbard - Bard, entertainermonk - Monk, martial artistdruid - Druid, shamanartificer - Artificer, engineerinquisitor - Inquisitor, investigatorhuman-augmented - Cybernetically enhanced humanandroid - Synthetic androidclone - Clone soldieralien-humanoid - Various alien speciescyborg - Heavily modified cyborgbio-engineered - Genetically modifiedhacker - Netrunner, hackersoldier - Mercenary, corporate soldiertech-specialist - Engineer, technicianmedic - Combat medicscout - Reconnaissance specialistpilot - Starship pilotassassin - Corporate assassindetective - InvestigatorCommon equipment keywords (comma-separated):
leather armor / chainmail / plate armor / cybernetic implantssword and shield / greatsword / daggers / quarterstaffcrossbow / longbow / pistol / plasma rifle / laser pistolspellbook / arcane focus / holy symbol / tech gauntletcloak / hooded cape / tactical vest / exosuitbackpack / tool belt / medical kit / hacking deckArtistic styles for character render:
epic fantasy painting - Rich oil painting, cinematicrealistic portrait - Photorealistic character portraitanime studio - Anime/manga styleconcept art - Game concept art qualityillustration - Detailed illustrationcomic book - Bold comic stylepixel art - Retro pixel characterdark fantasy - Grim dark aestheticlow poly - Low poly 3D model lookcel shaded - Cel shading anime stylewatercolor - Soft watercolor stylevintage fantasy - Classic fantasy artmale, female, non-binary, androgynousyoung, middle-aged, elderlystoic, determined, mysterious, playful, grim, nobleCustom prompt for full control:
python3 ~/Projects/agent-scripts/skills/game-character-gen/scripts/generate.py \
--prompt "A rugged dwarven warrior with braided red beard, wearing ornate mithral plate armor decorated with runic engravings. He wields a massive warhammer with lightning crackling along the head. Battle-hardened expression, scars visible on face. Epic fantasy oil painting style, cinematic lighting, detailed textures."
Include character sheet:
python3 ~/Projects/agent-scripts/skills/game-character-gen/scripts/generate.py \
--race "human" \
--class "mage" \
--style "concept art" \
--sheet
--race - Character race/species (repeatable for batch)--class - Character class/profession (repeatable for batch)--gender - Gender identity--equipment - Equipment and gear description--style - Artistic style (repeatable for batch)--prompt - Full custom prompt (overrides other options)--count - Number of variants per character (default: 1)--sheet - Generate character sheet JSON with stats--out-dir - Output directory (default: ~/Projects/tmp/game-character-gen-*)--size - Image size: 1024x1024, 1792x1024, 1024x1792 (default: 1024x1024)--quality - high/standard (default: high)--model - OpenAI image model (default: gpt-image-1.5)--api-key - OpenAI API key (or use OPENAI_API_KEY env)When using --sheet, generates character_sheet.json with:
{
"name": "Generated Character",
"race": "human",
"class": "mage",
"gender": "male",
"equipment": ["staff", "robes"],
"stats": {
"strength": 8,
"dexterity": 14,
"constitution": 10,
"intelligence": 18,
"wisdom": 12,
"charisma": 10
},
"image_file": "01-mage.png"
}
*.png - Character imagescharacter_sheet.json - Character data (if --sheet)prompts.json - All prompts usedindex.html - Character galleryD&D party:
python3 ~/Projects/agent-scripts/skills/game-character-gen/scripts/generate.py \
--race "human" "elf" "dwarf" "half-orc" \
--class "paladin" "ranger" "cleric" "barbarian" \
--style "epic fantasy painting"
Cyberpunk crew:
python3 ~/Projects/agent-scripts/skills/game-character-gen/scripts/generate.py \
--race "human-augmented" "android" "clone" "cyborg" \
--class "hacker" "soldier" "tech-specialist" "assassin" \
--style "cyberpunk neon" \
--equipment "hacking deck" "plasma rifle" "tool belt" "monowire"
Children's book characters:
python3 ~/Projects/agent-scripts/skills/game-character-gen/scripts/generate.py \
--race "human" "elf" "gnome" "fairy" \
--class "adventurer" "wizard" "explorer" "healer" \
--style "whimsical illustration" "watercolor"