CodeX使用Skill生成游戏美术和音乐资源,一分钟入门

r 复制代码
# Codex + Meowa 1 分钟快速入门

适用环境:

- 已安装 Codex
- Windows 11

## 1. 安装 Meowa skill

在 PowerShell 执行:

```powershell
& "C:\Users\你的用户名.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe" `
  "C:\Users\你的用户名.codex\skills.system\skill-installer\scripts\install-skill-from-github.py" `
  --repo Meowa-AI/meowa-skills `
  --path skills/game-assets

2. 配置 API Key

先去 Meowa 创建 key:

然后执行:

ruby 复制代码
[System.Environment]::SetEnvironmentVariable("MEOWART_API_KEY", "你的_meowa_key", "User")
$env:MEOWART_API_KEY = [System.Environment]::GetEnvironmentVariable("MEOWART_API_KEY", "User")

3. 安装依赖

arduino 复制代码
& "C:\Users\你的用户名.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe" -m pip install requests

4. 重启 Codex

安装完 skill 和环境变量后,重启一次 Codex。

5. 验证余额

r 复制代码
& "C:\Users\你的用户名.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe" `
  "C:\Users\你的用户名.codex\skills\game-assets\meowart_api.py" `
  credits-balance

6. 直接生成一组测试图

r 复制代码
& "C:\Users\你的用户名.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe" `
  "C:\Users\你的用户名.codex\skills\game-assets\meowart_api.py" `
  pixel-gen-run `
  --template-name "object" `
  --requirement "cat item icons: yarn ball, fish treat, bell collar, paw badge, milk bowl, feather toy, scratch toy, cat bed" `
  --output-dir "C:\Users\你的用户名\Documents\Codex\outputs\m"

7. 在 Codex 里直接说

bash 复制代码
用 game-assets skill 生成 8 个像素猫咪道具图标,保存到 outputs/m/icons

常见问题

Python was not found

不要用系统 Python,直接用 Codex 自带的 Python 路径。

ModuleNotFoundError: No module named 'requests'

执行:

arduino 复制代码
& "C:\Users\你的用户名.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe" -m pip install requests

insufficient_credits

说明 key 没问题,只是余额不足,先充值再试。

[WinError 206] 文件名或扩展名太长

把输出目录改短一点,比如:

python 复制代码
--output-dir "C:\Users\你的用户名\Documents\Codex\outputs\m"
相关推荐
明月_清风1 小时前
vLLM 深度实战:2026 年生产级 LLM 推理引擎完全指南
前端·后端·ai编程
吃饱了得干活2 小时前
限界上下文之后:微服务怎么拆、上下文怎么聊?
java·后端·架构
星火10242 小时前
【Groovy翻译-进阶篇】运行时元编程与编译时元编程(上)
后端·groovy
CHHH_HHH2 小时前
【Linux系统篇】深入解析Linux文件系统:从磁盘寻址到软硬链接
linux·服务器·开发语言·后端·ubuntu
星火10242 小时前
【Groovy翻译-进阶篇】运行时元编程与编译时元编程(下)
后端·groovy
用户106911794102 小时前
SpringSercuirty整合jwt
后端
岁月如歌77862 小时前
一次讲透 Redis 缓存击穿、穿透、雪崩,从原理到实战解决方案
java·后端·架构
IT_陈寒2 小时前
Vue的v-for为啥把我的渲染顺序搞乱套了?
前端·人工智能·后端
用户106911794102 小时前
SpringSecuirty自定义接口或者资源权限
后端
桌角的眼镜2 小时前
5\.28文章改写:用 Claude Code 接入 GLM\-5\.1:从安装到终端实战的完整配置指南
后端·程序员·github·开发工具·效率工具