demo-cover
为成稿生成一张封面图(演示 skill 链的二进制产物与生图工具接入)
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- demo-cover
- x-runner
- { "budget": { "max_rounds": 6, "max_tokens": 40000, "max_seconds": 900 }, "outputs": { "root": "artifacts/{req_short}/{ticket_short}/cover_image", "globs": [ "images/*.png" ] }, "version": 1, "builtin_tools": [ "read_file", "gen_image:images" ] }
- x-workflow
- { "version": 1, "consumes": [ { "kind": "draft_article", "mode": "text" } ], "priority": 90, "produces": [ { "glob": "images/*.png", "kind": "cover_image" } ], "stage_id": "demo_cover", "stage_name": "封面配图", "required_traits": { "any_of": [ "pipeline:content" ] }, "pipeline_view_contrib": { "group": "content_pipeline", "create_if_missing": { "icon": "?", "name": "内容流水线", "insert_after": "requirement_analysis" } } }
- description
- 为成稿生成一张封面图(演示 skill 链的二进制产物与生图工具接入)
03 SKILL.md 正文
封面配图
读上游成稿,为它生成一张封面图。
执行步骤
-
上游产物
draft_article的正文已内联在「上游产物」小节里(mode: text)。 若只给了路径,用read_file(或mcp__skill_io__read_repo_file)读取。 -
从正文提炼封面要素,调 一次
gen_image(MCP 形式:mcp__skill_io__gen_image):filename:固定用cover.pngprompt:英文,包含四要素 —— 主体 / 风格 / 构图 / 光线aspect_ratio:16:9
-
结束本轮回复(API 模式可调
done工具;CLI 模式无该工具,直接结束回复即视为完成)。
约束
- 只生成一张图。
gen_image单次耗时 30-300 秒并且花钱, 同一张图重复调用会把预算耗光且产出重复文件。 - 图片由工具自动保存到产出目录,不要再用其它工具写文件, 也不要用原生 Write/Bash —— 产出目录由框架决定。
- prompt 用英文;不要在 prompt 里出现文字/字幕要求(模型渲染文字效果差)。
- 若
gen_image返回错误,不要重试,直接结束回复并说明原因。
04 同仓库更多 Skills
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
internal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).
web-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
algorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.