← 返回 Skills 市场
AI 书稿图片重设计
作者
kelcey2023
· GitHub ↗
· v1.0.99
· MIT-0
261
总下载
0
收藏
0
当前安装
7
版本数
在 OpenClaw 中安装
/install ai-book-image-redesign
功能描述
将用户提供的 HTML/前端原型整理成一个可复用的网页应用 skill。适用于用户说“把这段 HTML 做成 skill” “把这个网页原型封装成 skill”“生成一个可落地的静态页面 skill”“把图片重设计工具做成 skill”等场景。 该 skill 会把现成前端页面模板落到本地,默认输出为静态 HTM...
使用说明 (SKILL.md)
AI 书稿图片重设计 🖼️
把现成的网页原型(尤其是单文件 HTML/CSS/JS)整理成一个可复用 skill。
适用场景
当用户说这些话时使用:
- 「把这段 HTML 做成 skill」
- 「把这个网页原型封成 skill」
- 「做一个静态网页工具 skill」
- 「把这个 AI 图片重设计页面做成 skill」
- 「把前端 demo 打包成可复用 skill」
默认工作方式
- 优先保留用户原始界面风格,不要擅自大改视觉结构
- 先做成本地可运行版本,再考虑发布或接 API
- 不在模板里写死密钥,改为让最终用户自行输入 API Base URL 和 API Key
- 静态资源放到
assets/,便于直接复制、部署、二次修改 - 如需脚本化初始化,用
scripts/放置生成脚本
目录说明
assets/index.html:可直接打开的静态页面模板assets/vercel.json:Vercel 静态部署配置scripts/setup.sh:把模板复制到目标目录,快速落地scripts/export-static.sh:导出可直接部署到 Vercel / 静态站的文件
使用方式
1)快速落地页面
执行:
bash scripts/setup.sh /目标目录
默认会输出:
/目标目录/
└── index.html
1.1)导出可部署到 Vercel / 静态站的版本
执行:
bash scripts/export-static.sh /目标目录
会输出:
/目标目录/
├── index.html
└── vercel.json
部署方式:
- Vercel:把该目录导入 Vercel,或在目录内执行
vercel - 静态站托管:直接上传
index.html(以及vercel.json可忽略)
2)页面中的 API 连接方式
当前模板改成由最终用户自行填写:
- API Base URL
- API Key
- Model 名称
- 可选的异步轮询路径(例如
/v1/tasks/{id})
填写后即可直接使用。页面默认请求:
POST {API_BASE_URL}/v1/images/generations
支持能力:
- 同步返回结果图
- 异步返回任务 ID 后自动轮询
- 多图批量处理(最多 10 张)
- 自定义 model 名称
并优先兼容这些返回字段:
data[0].urldata[0].b64_jsonimages[0].urlresult.urlimage_urlb64_json
任务 ID 兼容字段:
task_idtaskIdiddata.id
适合快速验证页面交互和图片生成流程。
但正式商用仍推荐:
- 后端代理
- 环境变量注入
- 服务端签名中转
避免在浏览器前端长期直接暴露密钥。
修改建议
如果用户后续要求:
- 批量处理多张图
- 登录与额度系统
- 支付升级
- 服务端任务轮询
- OSS / S3 图片存储
优先在现有模板基础上增量改,而不是推倒重写。
安全使用建议
This appears coherent and low-risk for development/testing. Before installing or deploying: (1) review the full assets/index.html JavaScript to confirm there are no hidden external endpoints or telemetry; (2) never put a real API key into client-side HTML — follow the SKILL.md advice to use a backend proxy or server-side injection for secrets; (3) the provided scripts only copy files, so running them is safe, but check the exported files before deploying to production (especially if you plan to serve user-supplied images or billing features). If you want extra assurance, search index.html for any hardcoded URLs or tokens and remove or replace them.
功能分析
Type: OpenClaw Skill
Name: ai-book-image-redesign
Version: 1.0.99
The skill bundle provides a template and utility scripts for an AI-powered image redesign tool. The core functionality is contained in a single-file HTML application (assets/index.html) that allows users to process images via an LLM API by providing their own API keys and endpoints (defaulting to api.apimart.ai). The shell scripts (scripts/setup.sh and scripts/export-static.sh) perform basic file management tasks, and the SKILL.md instructions correctly guide the AI agent to help users deploy the tool without any evidence of malicious intent, data exfiltration, or harmful prompt injection.
能力评估
Purpose & Capability
Name/description say: convert a front-end prototype into a reusable static skill. The repo contains a static HTML template, a Vercel config, and two small shell scripts to copy or export those files — all expected for this purpose.
Instruction Scope
SKILL.md focuses on packaging the front-end, instructs running the provided setup/export scripts, and explicitly warns not to hard-code API keys and to prefer a backend proxy. The template loads Google Fonts and is designed to POST to a user-supplied API_BASE_URL; ensure you review the full index.html (including any JS) before deploying so you know which external endpoints will be contacted and that no analytics/telemetry endpoints are present.
Install Mechanism
No install spec; only small shell scripts that copy assets to a target directory. No downloads, no extracted archives, and no package manager installs — low-risk.
Credentials
The skill declares no required environment variables, no credentials, and no config paths. SKILL.md does discuss API Base URL / API Key as values the end user will supply in the UI, and scripts remind to replace placeholders — this matches the front-end nature of the skill.
Persistence & Privilege
always is false and the skill does not modify other skills or system settings. The provided scripts only copy files into a user-specified directory; they do not persist agent-wide configuration or request elevated privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ai-book-image-redesign - 安装完成后,直接呼叫该 Skill 的名称或使用
/ai-book-image-redesign触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.99
- No user-visible changes in this version.
- Documentation and file contents remain unchanged.
v2.0.0
支持自填URL+API Key+Model、批量多图、异步轮询、可部署Vercel
v1.0.4
Add Vercel/static-site deployable export
v1.0.3
Add async polling, batch processing, and custom model input
v1.0.2
Users can input API base URL and key, then use directly
v1.0.1
Let users input API base URL and API key
v1.0.0
Initial publish
元数据
常见问题
AI 书稿图片重设计 是什么?
将用户提供的 HTML/前端原型整理成一个可复用的网页应用 skill。适用于用户说“把这段 HTML 做成 skill” “把这个网页原型封装成 skill”“生成一个可落地的静态页面 skill”“把图片重设计工具做成 skill”等场景。 该 skill 会把现成前端页面模板落到本地,默认输出为静态 HTM... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 261 次。
如何安装 AI 书稿图片重设计?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ai-book-image-redesign」即可一键安装,无需额外配置。
AI 书稿图片重设计 是免费的吗?
是的,AI 书稿图片重设计 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
AI 书稿图片重设计 支持哪些平台?
AI 书稿图片重设计 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 AI 书稿图片重设计?
由 kelcey2023(@kelcey2023)开发并维护,当前版本 v1.0.99。
推荐 Skills