279458179/grok-image-generate/SKILL.md
# images_generate_grok 使用 Grok Imagine 生成图片的技能。 ## 触发条件 用户要求: - "用 Grok 生成图片" - "生成一张图片" - "帮我画个图" - "生成 xxx 图片" ## 使用流程 ### 1. 打开 Grok Imagine 页面 ```javascript // 使用 browser 工具打开 Grok Imagine 页面 playwright({ action: "open", profile: "openclaw", url: "https://grok.com/imagine" }) ``` ### 2. 输入提示词并生成 等待页面加载后,在输入框中输入提示词,然后点击提交按钮生成图片。 ```javascript // 输入提示词 playwright({ action: "act", request: { "kind": "type", "ref": "输入框ref", "text": "用户想要生成的内容" } }) // 点击提交按钮 playwright({ a
npx skillsauth add openclaw/skills 279458179/grok-image-generateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
使用 Grok Imagine 生成图片的技能。
用户要求:
// 使用 browser 工具打开 Grok Imagine 页面
playwright({
action: "open",
profile: "openclaw",
url: "https://grok.com/imagine"
})
等待页面加载后,在输入框中输入提示词,然后点击提交按钮生成图片。
// 输入提示词
playwright({
action: "act",
request: { "kind": "type", "ref": "输入框ref", "text": "用户想要生成的内容" }
})
// 点击提交按钮
playwright({
action: "act",
request: { "kind": "click", "ref": "提交按钮ref" }
})
等待图片生成完成(约 8-10 秒)。
图片生成后,需要保存到本地。有两种方式:
使用 desktop-control 技能通过鼠标操作保存图片:
步骤1:移动鼠标到图片上并右键点击
# 获取屏幕尺寸
uvx desktop-agent screen size
# 移动鼠标到图片位置(根据屏幕尺寸调整坐标)
uvx desktop-agent mouse move <x> <y>
# 右键点击
uvx desktop-agent mouse right-click
步骤2:选择"图片另存为"
# 使用键盘选择菜单选项(通常按向下键然后回车)
uvx desktop-agent keyboard press down --presses 2
uvx desktop-agent keyboard press return
步骤3:点击存储
# 在保存对话框中点击存储
uvx desktop-agent keyboard press return
完整示例:
# 假设图片在屏幕中心区域
uvx desktop-agent mouse move 720 400
uvx desktop-agent mouse right-click
sleep 1
uvx desktop-agent keyboard press down --presses 2
uvx desktop-agent keyboard press return
sleep 1
uvx desktop-agent keyboard press return
步骤4:找到保存的图片
# 查看下载文件夹中最新的文件
ls -lat ~/Downloads/ | head -10
图片保存到本地后,可以使用 message 工具发送到飞书:
方式一:从下载目录发送
# 查看保存的图片
ls -lat ~/Downloads/*.jpg | head -5
# 发送图片到飞书
message({
action: "send",
filePath: "/Users/xiaohuozi/Downloads/图片文件名.jpg",
message: "图片描述"
})
方式二:从图片目录发送(如果是截图)
// 先复制到图片目录
cp ~/Downloads/图片文件名.jpg ~/.openclaw/workspace/images/描述.jpg
// 然后发送
message({
action: "send",
filePath: "/Users/xiaohuozi/.openclaw/workspace/images/描述.jpg",
message: "图片描述"
})
~/.openclaw/workspace/images/ 目录~/.openclaw/workspace/images/ 目录描述关键词.jpg 或带时间戳:peacock_king.jpgtools
Use when the user wants to connect to, test, or use the McDonalds service at mcp.mcd.cn, including checking authentication, probing MCP endpoints, listing tools, or calling McDonalds MCP tools through a reusable local CLI.
development
Web scraping platform — Twitter/X data, Vinted marketplace, and general web scraping API
development
SlowMist AI Agent Security Review — comprehensive security framework for skills, repositories, URLs, on-chain addresses, and products (Claude Code version)
data-ai
去除中文文本中的 AI 写作痕迹,使其读起来自然。基于维基百科 AI 写作特征指南,检测 24 种 AI 模式。触发词:humanizer-cn、去除 AI 痕迹、去除 AI 写作痕迹、中文文本人性化。