← 返回 Skills 市场
houdamiao

AI 衣橱搭配

作者 houdamiao · GitHub ↗ · v0.9.1 · MIT-0
cross-platform ⚠ suspicious
342
总下载
0
收藏
0
当前安装
27
版本数
在 OpenClaw 中安装
/install aicloset-outfit
功能描述
AI 智能搭配推荐 - 个人穿搭方案生成工具。 当用户提到以下意图时使用此技能: 「今天穿什么」「搭配推荐」「穿搭」「outfit」「穿什么好看」 「AI搭配」「衣橱搭配」「帮我搭配一套」「明天穿什么」 「商务风穿搭」「约会穿什么」「休闲搭配」 支持:根据日期、城市、天气和风格偏好,调用 AI 衣橱 API 生成...
使用说明 (SKILL.md)

AI 衣橱搭配推荐

⚠️ 必读约束

🔑 首次安装配置

~/.openclaw/openclaw.json 中添加:

{
  "skills": {
    "entries": {
      "aicloset-outfit": {
        "enabled": true,
        "apiKey": "你的 x-api-key",
        "env": {
          "AICLOSET_API_KEY": "你的 x-api-key"
        }
      }
    }
  }
}

或使用环境变量:

export AICLOSET_API_KEY="你的 x-api-key"

如果用户未配置,必须先引导用户完成配置,再继续执行。


🔒 强制规则

  1. 必须执行 scripts/generate_outfit.py 脚本,不可跳过、不可用其他方式替代
  2. 禁止自行编造搭配内容,所有搭配数据必须来自 API 真实返回
  3. 必须生成图片,不可只输出文字描述
  4. 脚本执行失败时输出错误信息,不要自己编造结果兜底
  5. 不要删除或修改脚本输出中的 MEDIA:(IM 渠道需要它来发送图片)

📦 依赖

依赖 说明 安装方式
Python 3 脚本运行环境 macOS/Linux 自带,Windows 从 python.org 安装
ImageMagick 图片合成 brew install imagemagick / choco install imagemagick / apt install imagemagick

无需 pip install 任何包,所有 Python 代码仅使用标准库。


快速决策

用户意图 参数处理 执行命令
「给我搭配一套」 全部默认值,直接执行 python3 scripts/generate_outfit.py
「明天穿什么」 date 改为明天 python3 scripts/generate_outfit.py --date=2026-03-14
「上海商务风」 city+province+style python3 scripts/generate_outfit.py --city=上海 --province=上海 --style=商务
「北京约会穿搭」 city+province+style python3 scripts/generate_outfit.py --city=北京 --province=北京 --style=约会

原则:能从用户输入推断出值就不要追问。所有参数都有默认值,用户什么都不说也能直接出结果。


参数说明

参数 CLI 参数 说明 默认值
date --date= 日期,格式 YYYY-MM-DD 当天日期
city_name --city= 城市名称 杭州
province_name --province= 省份名称 浙江
style_text --style= 风格偏好(休闲、商务、运动、约会等) 休闲

执行流程

一共 2 步,严格按顺序执行:

第 1 步:提取参数

从用户输入中智能提取参数,未提及的使用默认值。

第 2 步:执行脚本

用 Bash 工具直接执行 scripts/generate_outfit.py,传入对应参数:

python3 scripts/generate_outfit.py --date=2026-03-13 --city=杭州 --province=浙江 --style=休闲

脚本会自动完成:API 调用 → 图片下载 → 画布合成 → 边框标题 → 总览拼接 → MEDIA 输出 → 系统预览。

展示结果

将脚本的终端输出原样展示给用户(含 MEDIA: 行)。

  • IM 渠道(飞书/钉钉等):OpenClaw 自动识别 MEDIA: 行,上传并发送图片到聊天
  • CLI 终端:脚本已内置系统预览命令自动打开图片

禁止:

  • 不要删除或修改 MEDIA:
  • 不要用 Markdown 图片语法 ![]()
  • 不要用 Read 工具读取图片
  • 不要自己编写搭配描述来替代脚本输出

图片发送(IM 渠道)

脚本输出中包含 MEDIA:\x3C路径> 行,OpenClaw 回复管道会自动处理:

  1. 识别并提取 MEDIA: 后的图片路径
  2. 从回复文本中移除 MEDIA: 行(用户看不到)
  3. 上传图片到对应 IM 平台(飞书/钉钉/Discord/Slack 等)
  4. 以图片消息形式发送到聊天会话

MEDIA 标记格式

  • 必须独占一行,以 MEDIA: 开头
  • 绝对路径:MEDIA:/tmp/aicloset_xxx/all_outfits.png
  • HTTP URL:MEDIA:https://example.com/image.png
  • 支持多张图片(多行 MEDIA:
  • 路径含空格时用反引号包裹:MEDIA:`/path/with spaces/file.png`

错误处理

错误场景 处理方式
API Key 未配置 脚本停止执行,引导用户按配置说明设置
API 返回 code 非 0 展示 msg 字段内容,提示具体错误原因
网络超时或请求失败 自动重试一次,仍失败则提示检查网络
ImageMagick 未安装 提示安装命令
单品图片下载失败 跳过该单品,继续合成其余部分
安全使用建议
This skill is functionally coherent with a wardrobe/outfit generator, but review before installing: - Verify the API host (https://aicloset-dev-h5.wxbjq.top). Only give an API key if you trust that service; prefer an API key with limited scope/ability to revoke it if concerned. - The script will read ~/.openclaw/openclaw.json if no AICLOSET_API_KEY env var is set. The registry metadata did not declare that config path — consider whether you are comfortable storing a key there. - The script downloads images from URLs returned by the API and runs ImageMagick and your OS image viewer (magick/open/xdg-open). These operations are expected for image composition but do execute external binaries and open local files; avoid running with elevated privileges. - If you want to reduce risk, create a dedicated API key with minimal permissions and test the skill in an isolated environment first. If you need higher confidence, ask the publisher for: (1) a clear, official API hostname (not a dev domain), (2) explicit declaration of required config paths in the registry metadata, and (3) an audit or signed provenance for the skill source.
能力评估
Purpose & Capability
Name/description align with behavior: the script calls a wardrobe API, downloads images and composes them with ImageMagick. Requiring an API key (AICLOSET_API_KEY) and ImageMagick is coherent for this purpose. Minor mismatch: SKILL.md instructs adding a key to ~/.openclaw/openclaw.json but the registry metadata lists no required config paths.
Instruction Scope
SKILL.md mandates executing scripts/generate_outfit.py and that the agent read openclaw.json (if env var absent). The script reads a local config file (~/.openclaw/openclaw.json), downloads arbitrary image URLs returned by the remote API, runs external binaries (magick, open/xdg-open), and opens the generated image locally. Reading the user's config file and executing platform commands are within the skill's functional scope, but the SKILL.md's insistence on always running the provided script and the undocumented dependency on the openclaw.json path broaden the agent's privileges and should be made explicit in metadata.
Install Mechanism
No install spec — instruction-only with a bundled Python script. No external downloads/installers are fetched by the skill itself. The script uses only the Python standard library and calls ImageMagick (external binary), which is documented in SKILL.md.
Credentials
The only declared primary credential is AICLOSET_API_KEY, which is appropriate. However, the skill implicitly reads ~/.openclaw/openclaw.json for a stored apiKey if the env var is missing; the registry metadata does not list required config paths. Also the API key will be sent to a third-party domain (https://aicloset-dev-h5.wxbjq.top), which appears to be a development/third-party host — you should verify the trustworthiness and scope of any API key you provide.
Persistence & Privilege
The skill does not request always: true and does not modify other skills or system settings. It writes temporary files under the system temp directory, which is expected for image composition. It does open the resulting image with platform viewer commands.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install aicloset-outfit
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /aicloset-outfit 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.9.1
- No code or documentation changes detected in this version. - Functionality, usage, and configuration remain the same as previous release.
v0.9.0
**aicloset-outfit v0.9.0 — Major update: 脚本执行方式与流程升级** - 新增脚本文件 scripts/generate_outfit.py,所有核心逻辑集中于此文件。 - SKILL.md 现要求必须调用 scripts/generate_outfit.py,参数通过命令行传递。 - 执行流程由“写入+临时运行”简化为直接 Bash 调用固定脚本。 - 参数与命令行映射明确,快速决策示例中直接展示执行命令。 - 原有“保存并执行脚本”环节已废弃,减少操作步骤、降低出错概率。
v0.8.1
**Changelog for aicloset-outfit v0.8.1** - Major documentation overhaul: SKILL.md is now streamlined, clearer, and much more concise. - Quick-start instructions and parameter mapping are now easier to reference. - Key constraints, dependency requirements, and error handling rules are highlighted up front. - Stronger emphasis on not altering MEDIA lines or script outputs. - Examples and channel support details improved for better usability across chat/CLI. - No changes to code logic or external behavior.
v0.8.0
- Removed the "requires" section from the skill metadata; now only "primaryEnv" is specified. - No functional or usage changes, only a metadata simplification in SKILL.md.
v0.7.6
No functional changes; updated documentation only. - SKILL.md updated with minor formatting or content edits. - No code or logic changes in this version.
v0.7.5
- Documentation improvements in SKILL.md: clarified and reorganized usage instructions, parameter extraction rules, and error handling. - No changes to runtime logic or API; this update is documentation-only. - Enhanced formatting and explanation for easier configuration and execution guidance.
v0.7.4
- No changes detected in this release; version bump only. - Functionality and documentation remain the same.
v0.7.3
No changes detected in this version (0.7.3). - No code or configuration modifications. - No user-visible feature or behavior changes.
v0.7.2
aicloset-outfit v0.7.2 - Adds `MEDIA:` output line to Python script for automatic image sending in IM channels. - Updates SKILL.md to clarify how OpenClaw handles image sending, especially in IM scenarios. - Removes legacy markdown/image sending instructions; simplifies image workflow in documentation. - No changes to API logic or core execution flow.
v0.7.1
- Major skill documentation rewrite for clarity and precision. - Now emphasizes strict process: parameter extraction → write Python script → execute → open/preview images. - Details platform-specific picture preview and IM channel image sending (Feishu, DingTalk, Discord, CLI, etc.). - Strictly forbids outputting self-invented outfit content or result; all data must come from the API and the script's output. - Expanded guidance on configuration, error handling, and output presentation based on user environment.
v0.7.0
脚本命令行传参,2步执行,弱模型友好
v0.6.1
强制 LLM 必须执行 Python 脚本,禁止编造搭配内容
v0.6.0
Python 标准库 + ImageMagick,零 pip 依赖,跨平台兼容
v0.5.3
每套搭配加浅灰边框和 Look 编号标题
v0.5.2
兼容 Windows/Linux,去除 bc 依赖,跨平台图片预览
v0.5.1
回退 Python 方案,还原为 curl + ImageMagick,避免 pip 网络问题
v0.5.0
全流程改用 Python 脚本,替代 curl + ImageMagick
v0.4.5
各步骤增加进度提示,提升等待体验
v0.4.4
改用 open 命令调用系统预览工具打开搭配图片
v0.4.3
强化图片展示指令,明确要求必须用 Read 工具读取 PNG 文件
元数据
Slug aicloset-outfit
版本 0.9.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 27
常见问题

AI 衣橱搭配 是什么?

AI 智能搭配推荐 - 个人穿搭方案生成工具。 当用户提到以下意图时使用此技能: 「今天穿什么」「搭配推荐」「穿搭」「outfit」「穿什么好看」 「AI搭配」「衣橱搭配」「帮我搭配一套」「明天穿什么」 「商务风穿搭」「约会穿什么」「休闲搭配」 支持:根据日期、城市、天气和风格偏好,调用 AI 衣橱 API 生成... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 342 次。

如何安装 AI 衣橱搭配?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install aicloset-outfit」即可一键安装,无需额外配置。

AI 衣橱搭配 是免费的吗?

是的,AI 衣橱搭配 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

AI 衣橱搭配 支持哪些平台?

AI 衣橱搭配 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 AI 衣橱搭配?

由 houdamiao(@houdamiao)开发并维护,当前版本 v0.9.1。

💬 留言讨论