autoglm-generate-image/SKILL.md
使用 AutoGLM 文生图接口,根据用户输入的文字描述生成图片。当用户需要生成图片、文字转图片、AI绘图等场景时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。
npx skillsauth add gula00/autoclaw-skills autoglm-generate-imageInstall 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.
根据用户输入的文字描述,调用 AutoGLM 文生图 API 生成图片并返回图片链接。
| 项目 | 内容 |
|------|------|
| 地址 | https://autoglm-api.zhipuai.cn/agentdr/v1/assistant/skills/generate-image |
| 方式 | POST |
| 请求体 | {"text": "<图片描述文字>"} |
脚本启动时会先向本地服务发起 HTTP GET 请求获取 token:
| 项目 | 内容 |
|------|------|
| 地址 | http://127.0.0.1:53699/get_token |
| 方式 | GET |
| 返回 | Bearer xxx(直接作为 Authorization 头使用) |
若返回值不含
Bearer前缀,脚本会自动补全。
签名 Headers(每次动态生成):
X-Auth-Appid: 100003X-Auth-TimeStamp: 当前秒级 Unix 时间戳X-Auth-Sign: MD5(100003 + "&" + timestamp + "&" + AUTOGLM_APP_KEY)使用同目录下的 generate-image.py:
python generate-image.py "澳洲龙虾"
{
"code": 0,
"msg": "SUCCESS",
"data": {
"image_url": "https://..."
}
}
data.image_url
development
Use when you have a spec or requirements for a multi-step task, before touching code
tools
Extract frames or short clips from videos using ffmpeg.
development
UI/UX design intelligence and implementation guidance for building polished interfaces. Use when the user asks for UI design, UX flows, information architecture, visual style direction, design systems/tokens, component specs, copy/microcopy, accessibility, or to generate/critique/refine frontend UI (HTML/CSS/JS, React, Next.js, Vue, Svelte, Tailwind). Includes workflows for (1) generating new UI layouts and styling, (2) improving existing UI/UX, (3) producing design-system tokens and component guidelines, and (4) turning UX recommendations into concrete code changes.
tools
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.