技能详情(站内镜像,无评论)
作者:Anum Mian @Amian
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.0.3
统计:⭐ 0 · 235 · 0 current installs · 0 all-time installs
⭐ 0
安装量(当前) 0
🛡 VirusTotal :可疑 · OpenClaw :可疑
Package:amian/chatgpt-image-generation
安全扫描(ClawHub)
- VirusTotal :可疑
- OpenClaw :可疑
OpenClaw 评估
The skill mostly matches its stated purpose (automating ChatGPT via Playwright to save images) but contains small inconsistencies and misleading instructions (notably about session persistence and the target domain) that you should understand before using it.
目的
The code and SKILL.md align: both automate a browser with Playwright, send prompts, and save images. However, SKILL.md claims the login session is saved for future runs while the script launches Chromium without a persistent user data directory (so logins will not persist by default). The script also navigates to https://chatgpt.com/ rather than the commonly used chat.openai.com — this could be benign but is worth verifying.
说明范围
Instructions and code stay within the stated purpose: they read a prompts file, open a browser, interact with the ChatGPT web UI, extract or fetch generated images, write numbered PNGs and a results.jsonl log, and prompt the user to press Enter after a manual login. The code does not reference unrelated files or extra environment variables.
安装机制
No install spec in the registry; SKILL.md asks you to run 'npm install playwright' and 'npx playwright install chromium', which is normal for a Playwright-based script. That will download browser binaries to the machine — expected but noteworthy.
证书
The skill requests no environment variables or credentials. It performs browser automation and network requests only, which are proportionate to the stated functionality.
持久
The skill is not always-enabled and does not request elevated privileges. However, the SKILL.md's claim that the session is saved across runs contradicts the code (no userDataDir/persistent profile is used). If you expect persistent login, the script must be changed to launch a persistent context or provide a user data directory.
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Chatgpt Image Generation」。简介:Generate images from ChatGPT using Playwright browser automation. Opens ChatGPT…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/amian/chatgpt-image-generation/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: chatgpt-image-generation
description: Generate images from ChatGPT using Playwright browser automation. Opens ChatGPT, sends prompts, waits for generation, and saves the resulting images.
---
# ChatGPT Image Generation Skill
Use Playwright to automate ChatGPT web UI for image generation.
## Prerequisites
```bash
npm install playwright
npx playwright install chromium
```
## Usage
```bash
# Generate images from prompts file
node generate.js --prompts prompts.json --output ./images
# Resume from a specific index
node generate.js --prompts prompts.json --output ./images --start 5
# Run in headless mode
node generate.js --prompts prompts.json --output ./images --headless
```
## Prompt File Format
```json
["prompt 1", "prompt 2"]
```
or
```json
{ "prompts": ["prompt 1", "prompt 2"] }
```
## How It Works
1. Opens ChatGPT in a Chrome browser
2. Sends each prompt from the prompts file
3. Waits for the response to be generated
4. Finds the generated image in the page
5. Saves the image to the output directory
6. Repeats for all prompts
## Output
- Numbered image files: `001.png`, `002.png`, etc.
- `results.jsonl` — log of results per prompt
## Login (One-Time)
If not logged into ChatGPT:
1. Run the script (browser will open visible)
2. Sign into ChatGPT
3. Session is saved for future runs