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"
相关推荐
ShadowYD28 分钟前
Agent Loop:一个让 AI 编程 Agent 从"会写代码"进化到"闭环交付"的开源 Skill(适配国内外主流 Code Agent)
后端
考虑考虑2 小时前
nohup启动java程序
后端·自动化运维
aramae3 小时前
模拟实现strcmp()(C语言)
c语言·开发语言·后端
根目录下的猫5 小时前
RK3588适配的轻量级AI模型推荐
人工智能·后端·python·目标检测
星栈6 小时前
用 Rust 写 Agent 服务 -- adk-rust 上手记
后端·agent
杨运交6 小时前
[071][验证码模块]基于Spring拦截器的验证码认证设计思想
java·后端·spring
LucianaiB7 小时前
我用豆包工作 Seed-2.1-pro,复刻了 QQ 时代爆红的魔术图片
后端
码事漫谈7 小时前
智谱 ZCode 静默上传 Git 历史:48 小时信任危机复盘
后端
掘金码甲哥7 小时前
当对话模型遇上向量模型,vllm production stack 又该如何应对?
后端