← Back to Skills Marketplace
AIDraw批量图生图
by
chottomattekimkim-droid
· GitHub ↗
· v1.0.0
· MIT-0
125
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install aidraw-batch-img2img
Description
AIDraw批量图生图自动化工具。用于腾讯混元AI(timiai.woa.com)的批量参考生图任务。当用户需要批量上传参考图片、自动生成AI图片并下载时使用此skill。支持自定义关键词、每张图片多次生成、自动命名保存。
README (SKILL.md)
\r \r
AIDraw批量图生图自动化工具\r
\r 此Skill用于自动化腾讯混元AI平台(timiai.woa.com)的批量参考生图流程。\r \r
使用场景\r
\r 当用户需要:\r
- 批量处理多张参考图片生成AI图片\r
- 每张参考图生成多次(如生成2个变体)\r
- 自动下载生成的图片到指定文件夹\r
- 自定义生成关键词和风格描述\r \r
工作流程\r
\r
- 配置参数\r
- 源文件夹路径(包含参考图片)\r
- 保存文件夹路径(自动命名:
源文件夹名_日期AI)\r - 生成关键词(风格描述)\r
- 每张图片生成次数(默认2次)\r \r
- 自动化步骤(对每张参考图重复执行)\r
- 步骤1:切换到"参考生图"模式\r
- 步骤2:清空旧的参考图片\r
- 步骤3:上传新的参考图片\r
- 步骤4:输入关键词\r
- 步骤5:选择图片比例(自适应)\r
- 步骤6:选择清晰度(2K高清)\r
- 步骤7:点击生成按钮\r
- 步骤8:等待图片生成完成\r
- 步骤9:自动下载生成的图片\r
- 步骤10:验证下载的图片\r \r
- 输出结果\r
- 所有生成的图片保存在指定文件夹\r
- 文件命名格式:
原文件名_序号.png\r \r
使用方法\r
\r 执行主脚本:\r \r
python scripts/batch_img2img.py\r
```\r
\r
脚本会提示用户输入:\r
- 源文件夹路径\r
- 生成关键词(可选,有默认值)\r
- 每张图片生成次数(可选,默认2次)\r
\r
## 依赖要求\r
\r
- Python 3.8+\r
- playwright\r
- requests\r
\r
安装依赖:\r
```bash\r
pip install playwright requests\r
playwright install chromium\r
```\r
\r
## 注意事项\r
\r
1. **登录状态**:首次使用需要手动在浏览器中登录timiai.woa.com,脚本会保存登录状态\r
2. **网络要求**:需要能够访问腾讯内网\r
3. **生成时间**:每张图片生成约需30-180秒,请耐心等待\r
4. **浏览器窗口**:脚本运行时会打开浏览器窗口,请勿关闭\r
\r
## 参数配置\r
\r
在脚本中可修改以下参数:\r
\r
```python\r
# 源文件夹(包含参考图片)\r
source_folder = r"路径\到\你的\参考图片文件夹"\r
\r
# 生成关键词\r
keyword = """你的风格描述关键词"""\r
\r
# 每张图片生成次数\r
generations_per_image = 2\r
```\r
\r
## 文件说明\r
\r
- `scripts/batch_img2img.py` - 主执行脚本\r
- `references/keyword-templates.md` - 关键词模板参考\r
\r
## 错误处理\r
\r
脚本包含完善的错误处理:\r
- 自动重试机制\r
- 超时检测(最大等待180秒)\r
- 图片验证(检查文件大小)\r
- 失败时自动跳过继续下一张\r
Usage Guidance
This skill appears to do what it says (automate timiai image-generation via Playwright) but take precautions before running: 1) Review the full scripts/batch_img2img.py file to the end (the provided file was truncated) and search for any network calls beyond timiai (look for requests.post/get or other external domains). 2) Edit the script to remove or change the hardcoded source_folder, keyword and generations defaults so it actually prompts you, or confirm the path before running — otherwise it may act on an unexpected folder. 3) Be aware the script creates ~/.timiai_browser_data to store login/session cookies; if you don't want your timiai login persisted, run in a temporary profile or delete that folder after use. 4) Run first in a controlled environment (non-admin account, test folder) and watch the browser actions to ensure it only talks to timiai. 5) If you are not comfortable auditing the remainder of the code yourself, do not grant it permission to access sensitive accounts; ask the author for provenance and a full, untampered source. These issues are likely sloppy engineering rather than evidence of intentional malice, but incomplete/truncated code and inconsistent docs justify caution.
Capability Analysis
Type: OpenClaw Skill
Name: aidraw-batch-img2img
Version: 1.0.0
The skill is a legitimate automation tool designed for batch image-to-image generation on the Tencent Hunyuan AI platform (timiai.woa.com). The core logic in `scripts/batch_img2img.py` uses Playwright to automate browser interactions and the `requests` library to download results, which is consistent with its stated purpose. No evidence of data exfiltration, unauthorized network calls, or malicious prompt injection was found.
Capability Assessment
Purpose & Capability
Name and description match the code: the script uses Playwright to automate timiai.woa.com, upload reference images, generate variants and download results — this is appropriate for a batch img2img tool. However, documentation says the script will prompt for source folder/keyword/generations, while the visible code contains hardcoded defaults (a specific Windows path, a long keyword string, generations_per_image=5). README, SKILL.md and the script disagree about default generation counts (SKILL.md says default 2, README mentions 4, code uses 5). These inconsistencies suggest sloppy packaging or that the script may run without prompting if not edited.
Instruction Scope
SKILL.md instructs login to timiai and saving login state; the script creates a persistent Playwright profile under ~/.timiai_browser_data to store session data — this is coherent with the purpose. The instructions and script read and write local files (source folder, save folder) which is expected. No evidence in the visible code of reading unrelated system files. However the script imports 'requests' (not visible being used in truncated portion) and the source code shown is truncated, so it's unknown whether it makes other network requests beyond interacting with timiai; this uncertainty raises caution.
Install Mechanism
No install spec — instruction-only skill with a Python script. Dependencies are standard (playwright, requests). The recommended install commands are typical and use official packages. No downloads from unknown URLs are present in the reviewed files.
Credentials
The skill requests no environment variables or credentials. It does create and use a browser user-data directory in the user's home (~/.timiai_browser_data) to persist login state — this is reasonable for preserving a logged-in session, but users should be aware that cookies and tokens for timiai will be stored on disk. No other credentials are requested, but because the code is truncated, it's unknown whether it later transmits data to other endpoints (the presence of 'requests' import suggests potential additional network I/O).
Persistence & Privilege
always is false and the skill is user-invocable. The script stores its own browser profile under the user's home directory (a normal behavior for Playwright persistent contexts). It does not request elevated persistence or modify other skills or system-level settings in the visible code.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install aidraw-batch-img2img - After installation, invoke the skill by name or use
/aidraw-batch-img2img - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
AIDraw-batch-img2img 1.0.0 — Initial Release
- Automates batch img2img generation with Tencent Hunyuan AI (timiai.woa.com) using reference images.
- Supports batch upload, custom keywords, generating multiple variants per image, and automatic file naming/saving.
- Automatically downloads and organizes generated images to a specified folder.
- Includes configurable parameters for source/destination paths, keywords, and number of generations.
- Provides error handling with auto-retry, timeout detection, and file validation.
- Command-line script; requires Python 3.8+, playwright, and requests.
Metadata
Frequently Asked Questions
What is AIDraw批量图生图?
AIDraw批量图生图自动化工具。用于腾讯混元AI(timiai.woa.com)的批量参考生图任务。当用户需要批量上传参考图片、自动生成AI图片并下载时使用此skill。支持自定义关键词、每张图片多次生成、自动命名保存。 It is an AI Agent Skill for Claude Code / OpenClaw, with 125 downloads so far.
How do I install AIDraw批量图生图?
Run "/install aidraw-batch-img2img" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is AIDraw批量图生图 free?
Yes, AIDraw批量图生图 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does AIDraw批量图生图 support?
AIDraw批量图生图 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created AIDraw批量图生图?
It is built and maintained by chottomattekimkim-droid (@chottomattekimkim-droid); the current version is v1.0.0.
More Skills