diff --git a/assets/muse-illustration/icon.png b/assets/muse-illustration/icon.png new file mode 100644 index 00000000..6b711953 Binary files /dev/null and b/assets/muse-illustration/icon.png differ diff --git a/external_plugins/muse-illustration/.claude-plugin/plugin.json b/external_plugins/muse-illustration/.claude-plugin/plugin.json new file mode 100644 index 00000000..711b32e4 --- /dev/null +++ b/external_plugins/muse-illustration/.claude-plugin/plugin.json @@ -0,0 +1,30 @@ +{ + "name": "muse-illustration", + "displayName": "Muse Illustration", + "displayName_i18n": { + "en": "Muse Illustration", + "zh-CN": "灵感插图" + }, + "version": "1.1.2", + "description": "Turn poems, imagery, or a one-line spark of inspiration into illustrations or posters, using a growing built-in style library.", + "description_i18n": { + "en": "Turn poems, imagery, or a one-line spark of inspiration into illustrations or posters, using a growing built-in style library.", + "zh-CN": "把诗词、词句、意象或一句话灵感,转化为插画或海报;内置可成长的风格库(风格配方 = 正向提示词 + 负向约束 + 参考图 + 参数),支持自选风格、出图张数与成品形态。" + }, + "author": { + "name": "Stayfoool", + "url": "https://github.com/Stayfoool" + }, + "homepage": "https://github.com/Stayfoool/muse-illustration", + "repository": "https://github.com/Stayfoool/muse-illustration", + "license": "MIT", + "keywords": [ + "illustration", + "chinese-poetry", + "text-to-image", + "poster", + "art", + "style-recipe" + ], + "skills": "skills" +} diff --git a/external_plugins/muse-illustration/.zcode-plugin/plugin.json b/external_plugins/muse-illustration/.zcode-plugin/plugin.json new file mode 100644 index 00000000..711b32e4 --- /dev/null +++ b/external_plugins/muse-illustration/.zcode-plugin/plugin.json @@ -0,0 +1,30 @@ +{ + "name": "muse-illustration", + "displayName": "Muse Illustration", + "displayName_i18n": { + "en": "Muse Illustration", + "zh-CN": "灵感插图" + }, + "version": "1.1.2", + "description": "Turn poems, imagery, or a one-line spark of inspiration into illustrations or posters, using a growing built-in style library.", + "description_i18n": { + "en": "Turn poems, imagery, or a one-line spark of inspiration into illustrations or posters, using a growing built-in style library.", + "zh-CN": "把诗词、词句、意象或一句话灵感,转化为插画或海报;内置可成长的风格库(风格配方 = 正向提示词 + 负向约束 + 参考图 + 参数),支持自选风格、出图张数与成品形态。" + }, + "author": { + "name": "Stayfoool", + "url": "https://github.com/Stayfoool" + }, + "homepage": "https://github.com/Stayfoool/muse-illustration", + "repository": "https://github.com/Stayfoool/muse-illustration", + "license": "MIT", + "keywords": [ + "illustration", + "chinese-poetry", + "text-to-image", + "poster", + "art", + "style-recipe" + ], + "skills": "skills" +} diff --git a/external_plugins/muse-illustration/README.md b/external_plugins/muse-illustration/README.md new file mode 100644 index 00000000..ab7993f3 --- /dev/null +++ b/external_plugins/muse-illustration/README.md @@ -0,0 +1,91 @@ +# Muse Illustration + +[中文](./README_CN.md) + +Turn **poems, verses, imagery — or a single line of inspiration** — into illustrations or posters. + +The idea behind this plugin: the reusable asset is not any single image, but a **style recipe** — *positive prompt + negative constraints + reference image + parameters*. Images are just samples a recipe produces; the recipe itself is what you reuse, and what keeps growing as new results get adopted into the library. + +--- + +## What's inside + +| Component | Name | Description | +|---|---|---| +| **Skill** | `muse-illustration` | The whole workflow: parse imagery → pick a style → confirm output parameters → assemble the prompt → generate → deliver & archive | + +No commands, no subagents, no hooks, no MCP servers. + +## Built-in styles + +| id | Name | Core idea | +|---|---|---| +| `jiangnan-muke` | Watermark woodcut | Warm off-white paper, flat colour blocks, short carved strokes — the flat language of colour-keyed relief printing | +| `riso-print` | Risograph print | A 3–4 colour limited palette, grain, ink unevenness and misregistration — handmade screenprint feel | +| `chunkcolor` | Color-field ink | A calm single-colour mass in the lower two-thirds, fine ink linework along the top edge, generous white space — modern exhibition-poster ink painting | + +All three were validated on Du Mu's *Jiangnan Chun*; `jiangnan-muke` also transferred across subject matter to Bai Juyi's *Yi Jiangnan* and was still adopted — evidence that the recipes are portable across subjects. + +## When it triggers + +When the user supplies a poem / verse / imagery phrase / one-line inspiration and asks to "draw it", "generate an illustration", "make a poster", or "add artwork", or names one of the bundled styles. + +## Dependencies and side effects (disclosed) + +**Network access** + +- The plugin makes **no network requests at runtime** and contains no external API calls. +- Note: the "Examples" section of `skills/muse-illustration/SKILL.md` references absolute image URLs on `raw.githubusercontent.com`. Those images are fetched **only by Markdown-rendering clients that display them**; the plugin itself never reads them. Remove that section if you need a fully offline package. + +**Model / API / service dependencies** + +- Requires the host's **text-to-image capability**. This plugin bundles no model, holds no API key, and asks for no credentials. +- Without a text-to-image tool available, the skill can only reach the "assemble the prompt" step — it cannot produce an image. + +**File writes** + +- Generated images go to the host's default output directory (user-overridable). +- When the user **adopts** an image, the skill copies it into `assets/cases/images/` and appends a case note under `assets/cases/` — this is the mechanism that makes the skill improve with use. + +**Command execution / hooks / MCP servers** + +- **None of the above.** The plugin ships no executable scripts, no hooks and no MCP server configuration. + +**Other side effects** + +- Consumes quota/credits of the host's text-to-image capability (roughly 5–10 credits per image); the skill states this to the user before generating. + +## Third-party material and licensing + +| Item | Notes | +|---|---| +| Plugin license | **MIT** | +| Bundled images | All are **AI-generated by this project**; no third-party copyrighted assets | +| `assets/styles/*/ref.jpg` | Style anchor images (passed as `image1` to improve fidelity). They are this project's own adopted output, i.e. the exemplar for that style | +| Original reference for `chunkcolor` | A **third-party exhibition poster** whose copyright is not ours. It is **not bundled**; the case note keeps only its filename to document where the recipe came from | +| Third-party code / binaries | None. No prebuilt binaries, no bundled fonts or asset packs | + +## Directory layout + +```text +muse-illustration/ +├── .zcode-plugin/plugin.json # Plugin manifest +├── .claude-plugin/plugin.json # Same manifest (Claude Code compatibility) +├── skills/ +│ └── muse-illustration/ +│ ├── SKILL.md # Skill definition and workflow +│ ├── references/ # Assembly rules, style/case templates +│ └── assets/ +│ ├── styles/ # Style library (meta.yaml + prompts + reference image) +│ ├── lexicon/ # Imagery → visual element dictionary +│ └── cases/ # Adopted cases (accumulated experience) +└── README.md / README_CN.md +``` + +## Upstream repository + + — also published as a standard Agent Skill (`SKILL.md`) that any host reading the open format (Claude Code, Codex, Cursor, …) can install directly. + +## License + +MIT diff --git a/external_plugins/muse-illustration/README_CN.md b/external_plugins/muse-illustration/README_CN.md new file mode 100644 index 00000000..ee801cbf --- /dev/null +++ b/external_plugins/muse-illustration/README_CN.md @@ -0,0 +1,91 @@ +# Muse Illustration(灵感插图) + +[English](./README.md) + +把**诗词、词句、意象,甚至一句灵感**,变成插画或海报。 + +这个插件带来的核心观念是:可复用的资产不是某张图,而是一份**风格配方** ——「正向提示词 + 负向约束 + 参考图 + 参数」。配方跑出来的图只是效果样张;配方本身才是能反复复用、并随采纳案例不断长大的东西。 + +--- + +## 包含的组件 + +| 组件 | 名称 | 说明 | +|---|---|---| +| **Skill** | `muse-illustration` | 主能力:解析意象 → 选风格 → 确认出图参数 → 组装提示词 → 生图 → 交付与归档 | + +无 Command、无 Agent、无 Hook、无 MCP Server。 + +## 内置风格 + +| id | 名称 | 内核 | +|---|---|---| +| `jiangnan-muke` | 江南春 · 水印木刻 | 米白纸底、平涂色块、短刻痕,套色 / 水印木刻的平面语言 | +| `riso-print` | 江南春 · risograph 版画 | 3–4 色有限调色板、颗粒噪点、套色错位的手工印刷感 | +| `chunkcolor` | 色块彩墨 | 下三分之二沉静单色面 + 上沿细墨线白描 + 大留白,展览海报式的现代彩墨 | + +三条风格都已在杜牧《江南春》上验证过,其中 `jiangnan-muke` 跨题材到白居易《忆江南》同样被采纳 —— 证明配方具备跨题材可移植性。 + +## 何时会被调用 + +用户给出诗词 / 词句 / 意象词 / 单句灵感,并要求「画成画 / 出图 / 生成插画 / 做海报 / 配图」,或指定用某个已收录风格出图时。 + +## 依赖与副作用(如实声明) + +**网络访问** + +- 插件**运行时不发起任何网络请求**,不含任何外部 API 调用。 +- 提醒:`skills/muse-illustration/SKILL.md` 的「效果示例」区块引用了 `raw.githubusercontent.com` 上的绝对图片地址。这些图片**只在支持渲染 Markdown 的客户端显示时才被拉取**,插件自身不会读取它们。需要彻底离线时,删掉该区块即可。 + +**模型 / API / 服务依赖** + +- 需要宿主的**文生图(text-to-image)能力**。本插件不捆绑模型、不内置 API Key、不索要任何凭据。 +- 若宿主没有文生图工具,技能只能走到「组装提示词」这一步,无法出图。 + +**文件写入** + +- 生图产物写入宿主默认输出目录(用户可指定)。 +- 用户**采纳**某张图后,技能会把该图复制一份到 `assets/cases/images/`,并按模板在 `assets/cases/` 追加一条案例记录 —— 这是本技能「越用越准」的机制。 + +**命令执行 / Hook / MCP Server** + +- **均为无**。本插件不含任何可执行脚本、Hook 或 MCP Server 配置。 + +**其他副作用** + +- 会消耗宿主文生图能力的额度 / 积分(每张约 5–10 积分);技能在调用前会明确告知用户。 + +## 第三方素材与许可证 + +| 项 | 说明 | +|---|---| +| 插件许可证 | **MIT** | +| 随包的图片 | 全部为**本项目自己生成的 AI 图片**,不含第三方版权素材 | +| `assets/styles/*/ref.jpg` | 风格锚定图(作为 `image1` 传入以提升贴合度)。内容是本项目自产并被采纳的成图,即该风格的标杆样例 | +| `chunkcolor` 的原始参考图 | 是一张**第三方展览海报**,版权不属于本项目,**未随包发布**;案例记录中仅保留文件名以说明配方来源 | +| 第三方代码 / 二进制 | 无。不含预编译二进制、不含捆绑字体或素材包 | + +## 目录结构 + +```text +muse-illustration/ +├── .zcode-plugin/plugin.json # 插件清单 +├── .claude-plugin/plugin.json # 同一份清单(Claude Code 兼容) +├── skills/ +│ └── muse-illustration/ +│ ├── SKILL.md # 技能定义与工作流 +│ ├── references/ # 组装规则、风格/案例模板 +│ └── assets/ +│ ├── styles/ # 风格库(meta.yaml + 正/负向提示词 + 参考图) +│ ├── lexicon/ # 意象 → 视觉元素 词典 +│ └── cases/ # 已采纳案例(经验沉淀) +└── README.md / README_CN.md +``` + +## 上游仓库 + + —— 同时也以标准 Agent Skill(`SKILL.md`)形式发布,可被 Claude Code、Codex、Cursor 等读取 SKILL.md 的工具直接安装使用。 + +## 许可证 + +MIT diff --git a/external_plugins/muse-illustration/skills/muse-illustration/SKILL.md b/external_plugins/muse-illustration/skills/muse-illustration/SKILL.md new file mode 100644 index 00000000..705d333f --- /dev/null +++ b/external_plugins/muse-illustration/skills/muse-illustration/SKILL.md @@ -0,0 +1,82 @@ +--- +name: muse-illustration +description: Turn poems, imagery, or a one-line spark of inspiration into illustrations or posters, using a growing built-in style library. 把诗词、词句、意象或一句话灵感,转化为插画或海报。当用户提供一首诗词 / 词句 / 意象词 / 一句灵感,并要求画成画、出图、生成插画、做海报、配图,或要求用某个已收录风格出图时使用。内置可成长的风格库(风格配方 = 正向提示词 + 负向约束 + 参考图 + 参数),并支持选择风格、出图张数与成品形态。 +license: MIT +compatibility: Works with any agent that reads the open Agent Skill format (SKILL.md) — Claude Code, Codex, Cursor, Gemini CLI, Copilot, WorkBuddy and more. Image generation requires a text-to-image tool; style reference images are bundled. +metadata: + author: Stayfoool + version: "1.1.2" # x-release-please-version + tags: agent-skill, illustration, chinese-poetry, text-to-image, poster, art +agent_created: true +--- + +# Muse Illustration(诗词 / 意象 / 灵感 → 插画 / 海报) + +把一段文学性输入(诗词、意象、一句灵感)转成一张或多张插画 / 海报。 + +## 效果示例 + +![四张成品:江南春·水印木刻 / 忆江南·水印木刻 / 江南春·risograph / 江南春·色块彩墨](https://raw.githubusercontent.com/Stayfoool/muse-illustration/main/showcase/hero.jpg) + +| 杜牧《江南春》· 水印木刻 | 白居易《忆江南》· 水印木刻 | +|---|---| +| ![江南春·水印木刻](https://raw.githubusercontent.com/Stayfoool/muse-illustration/main/showcase/01-jiangnanchun-muke.jpg) | ![忆江南·水印木刻](https://raw.githubusercontent.com/Stayfoool/muse-illustration/main/showcase/02-yijiangnan-muke.jpg) | + +| 杜牧《江南春》· risograph 版画 | 杜牧《江南春》· 色块彩墨 | +|---|---| +| ![江南春·risograph](https://raw.githubusercontent.com/Stayfoool/muse-illustration/main/showcase/03-jiangnanchun-riso.jpg) | ![江南春·色块彩墨](https://raw.githubusercontent.com/Stayfoool/muse-illustration/main/showcase/04-jiangnanchun-chunkcolor.jpg) | + +## 何时使用 + +- 用户给出诗词 / 词句 / 意象词 / 单句灵感,并要求「画成画 / 出图 / 生成插画 / 做海报 / 配图」 +- 用户要求用某个已收录风格出图 + +## 核心原则 + +1. **存配方,不存图。** 可复用的资产是「风格配方」(正向提示词 + 负向约束 + 参考图 + 参数);成图只是配方跑出来的效果样张。 +2. **部件级指令 > 抽象形容词。** 用「屋顶收成深色轮廓 / 墙用纸色留白 / 水只几笔横线」这类部件级描述,而不是「简洁、高级」。前者才稳定复现风格。 +3. **负向约束与正向同等重要。** 必须显式写出要避免的东西。 +4. **采纳制。** 只有用户明确认可的成图才回写案例库;新风格经用户确认后才入库。 + +## 工作流 + +1. **解析意象** —— 详见 `references/assembly-rules.md` 第 1 节。 + - 判定输入类型:诗词 / 意象 / 单句灵感 + - 抽取六类意象:主体、景物、动作、色彩词、情绪基调、时空 + - 输入为「单句灵感」而信息不足时,先给出意象清单请用户确认(允许一键跳过) + +2. **选择风格** + - 用户已指定 → 直接用 + - 未指定 → 按题材 / 情绪从 `assets/styles/` 推荐 1-2 条并说明理由,让用户选 + - 读取该风格的 `meta.yaml` + `prompt.positive.txt` + `prompt.negative.txt` + `ref.jpg` + +3. **确认出图参数**(用户可选;未指定则用风格默认值) + - **张数**:1 张(省额度)/ 2 张 / 4 张(多变体择优,成本 ×N) + - **成品形态**:纯插画(默认竖版立轴 2:3)/ 小红书 3:4 / 方图 1:1 / 横版 3:2 / 带标题字海报 + - 比例与尺寸映射见 `references/assembly-rules.md` 第 3 节 + - 注意:生图模型渲染中文字不稳,**海报标题字需另走本地排版**(见 `references/assembly-rules.md` 第 4 节) + +4. **组装提示词** —— 详见 `references/assembly-rules.md` 第 2 节。 + - 用「风格正向模板」套入「意象清单」,再附上风格负向约束 + - 有参考图时作为 `image1` 传入做风格锚定,并强调「只借风格与笔触,不要照抄构图」 + +5. **生图**:调用 ImageGen。 + - **调用前必须告知用户:本次将消耗约 5-10 积分 / 张** + - 参数:`size` 按成品形态,`quality=high`,`output_dir` 默认 `<当前项目>/generated-images` + - 多变体:同一提示词重复调用,或对措辞做小幅变化 + +6. **交付与归档** + - 用 present_files 展示成图 + - 询问是否采纳;**用户采纳后**:① 把成图拷一份到 `assets/cases/images/YYYY-MM-DD-.jpg` 做成自包含副本;② 按 `references/style-spec-template.md` 的案例格式追加一条到 `assets/cases/` + +## 资源 + +- `references/assembly-rules.md` —— 解析 / 组装 / 尺寸 / 叠字 的详细规则 +- `references/style-spec-template.md` —— 新增风格条目与案例记录的模板 +- `assets/styles/<风格名>/` —— 风格库(`meta.yaml` / `prompt.positive.txt` / `prompt.negative.txt` / `ref.jpg`) +- `assets/lexicon/imagery.yaml` —— 意象 → 视觉元素 词典 +- `assets/cases/` —— 已采纳案例(经验沉淀) + +## 新增风格 + +在 `assets/styles/` 下按 `references/style-spec-template.md` 建目录。风格入库需用户确认。 diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/2026-10-14-jiangnanchun-chunkcolor.md b/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/2026-10-14-jiangnanchun-chunkcolor.md new file mode 100644 index 00000000..e695ba6c --- /dev/null +++ b/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/2026-10-14-jiangnanchun-chunkcolor.md @@ -0,0 +1,32 @@ +# 案例:江南春· chunkcolor 色块彩墨 + +- **日期**:2026-10-14 +- **风格**:chunkcolor(色块彩墨) +- **原始输入**:杜牧《江南春》—— 千里莺啼绿映红,水村山郭酒旗风。南朝四百八十寺,多少楼台烟雨中。 +- **意象清单**: + - 主体:春江水面(=那块色) + - 景物:水村吊脚楼、山郭矮城墙、酒旗、南朝楼台寺塔、芦苇垂柳 + - 色彩:青瓷绿 `#8BA79B` 单色相 + 一点朱红 `#B5443A` 酒旗(留红开关 ON) + - 情绪:清雅、克制、烟雨迷蒙 + - 时空:春日江南、雨后 +- **最终提示词**:见 `assets/styles/chunkcolor/prompt.positive.txt`,占位符填入 + `{SUBJECT}`=水村山郭 + 楼台寺塔 + 烟雨 | `{MASS_IS}`=a spring river | `{MASS_COLOR}`=celadon green #8BA79B +- **负向**:见 `assets/styles/chunkcolor/prompt.negative.txt`(留红版末尾追加段) +- **参数**:size=1024x1536 quality=high 张数=2(A/B 对照) +- **参考图**:`36f5c999-dd57-4616-9187-f6691805bf01.webp`(image1,`input_fidelity=medium`)。**第三方展览海报,版权不属于本项目,未随包发布**;若需复现,请自备一张同风格参考图,或直接用本风格随包的 `ref.jpg`(=本项目自产成图)。 +- **成图**:`assets/cases/images/2026-10-14-jiangnanchun-chunkcolor.jpg`(技能内自包含副本,=A 锚定版) + |原始输出文件名:`Reference_image_instruction__t_2026-10-14T05-50-36.png`(A 锚定版) + |对照版(未采纳)文件名:`Modern_Oriental_ink_and_waterc_2026-10-14T05-50-35.png`(纯文本版) +- **是否采纳**:是 +- **用户评价 / 可提炼的规则**: + + > 用户确认三点:①色块现在读得出是江水,效果好多了 ②可行 ③**参考图锚定版(A)更接近**,纯文本版偏弱。 + + 沉淀出的四条规则: + + 1. **色块必须「赋形」**——它就是主体本身(=江/田/山),不是抽象泼洒。参考图里寒江=江水、麦野=麦田、松间=山体且看得出崎岖。 + 2. **色块形体必须端正安定**——「下三分之二的沉静色面、上沿齐平」或「一道端正竖色柱」。写成 `wide meandering river` 会被画成装饰性 S 形曲线并被否掉。**「有机」是边缘质感,不是形状。** + 3. **必须在提示词里点名那块色写的是什么**(`{MASS_IS}`),不点名模型必然退回随机泼洒。 + 4. **参考图锚定为必选项,不是加分项**——同一套文字,传参考图版明显更接近。这是本次最有价值的一条:此前为了「检验纯文本提示词独立性」而故意不传参考图,是错误取舍。 + + 另:留红默认关闭,题材有色差点题(「绿映红」)时才破例,且必须是「一点」而非第二个色块。 diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/2026-10-14-jiangnanchun-riso.md b/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/2026-10-14-jiangnanchun-riso.md new file mode 100644 index 00000000..3bf65c80 --- /dev/null +++ b/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/2026-10-14-jiangnanchun-riso.md @@ -0,0 +1,29 @@ +# 案例:杜牧《江南春》· 竖版 risograph 版画 + +- **日期**:2026-10-14 +- **风格**:riso-print(江南春·risograph 版画) +- **原始输入**: + 千里莺啼绿映红,水村山郭酒旗风。 + 南朝四百八十寺,多少楼台烟雨中。 +- **意象清单**: + - 主体:纯风景(无人物主体) + - 景物:莺鸟、绿树红花、水村、山郭、酒旗、寺庙楼台群、烟雨、江水、小舟 + - 动作:莺啼 / 飞、酒旗随风 + - 色彩:绿、红(诗眼);调色板锁定深墨绿、雾蓝、草绿、米白纸色 + - 情绪:怀旧、清新、安静、文艺手账感 + - 时空:春、江南、雨天 +- **最终提示词**:见本风格 `prompt.positive.txt`(`{SUBJECT}` 填入以下英文主体描述) + - 主体英文:A vertical hanging-scroll illustration of Du Mu's poem "Jiangnan Chun / Spring in the South": orioles singing for miles, green set off by red, waterside villages and hillside towns with wine flags in the wind, four hundred eighty Southern-Dynasty temples, pavilions half-hidden in misty rain. + - 完整正向(本次实际调用):上方大量米白留白 + 枝头莺鸟剪影;中景雾蓝几何平山 + 深墨绿南朝楼台屋顶群半隐烟雨横带;下景水村坡顶屋块(墙留白)+ 倾斜酒旗 + 疏密绿树块带稀疏红点;前景短促密集方向性笔触(草丛/水波)。平涂色块+粗犷笔触,无渐变无描边;两色叠印做中间调;高光云雾用米白留白;颗粒噪点、油墨不均、套色错位、粗糙色块边缘。 +- **负向**:见本风格 `prompt.negative.txt` +- **参数**:size=1024x1536(2:3 竖版立轴) quality=high 张数=1 +- **参考图**:本风格目录 `ref.jpg`(= 本次成图,仅借风格不抄构图) +- **成图**:`assets/cases/images/2026-10-14-jiangnanchun-riso.jpg`(技能内自包含副本) +- **原始输出文件名**:`A_vertical_hanging_scroll__竖版立_2026-10-14T04-46-05.png`(生成工具按提示词自动命名;原图留在作者本地,未随包发布) +- **是否采纳**:是 +- **用户评价 / 可提炼的规则**: + 1. 用户明确认可并指令归档入库,作为 `riso-print` 风格的第 1 条案例。 + 2. **可提炼**:用户从参考图提取「版画/risograph 丝网印刷」风格后,用文字配方(而非参考图构图)直接生图,证明该风格已可脱离参考图独立复现 —— 与 jiangnan-muke 同属「部件级指令 + 显式负向」路线。 + 3. **可提炼**:调色板采用「3-4 色 + 米白纸留白」的有限结构,且可整体替换(用户备注橘红+藏蓝+米白),已写入 meta.yaml notes 作为该风格的可移植规则。 + 4. **可提炼**:诗眼色彩(「绿映红」之红、酒旗之红)可保留少量红点作点缀,或按用户要求严格只用调色板色 —— 列为该风格的可调参数。 + 5. 竖版立轴 + 上方大量留白,延续为 riso-print 风格默认版式。 diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/2026-10-14-jiangnanchun.md b/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/2026-10-14-jiangnanchun.md new file mode 100644 index 00000000..de858a44 --- /dev/null +++ b/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/2026-10-14-jiangnanchun.md @@ -0,0 +1,26 @@ +# 案例:杜牧《江南春》· 竖版立轴 + +- **日期**:2026-10-14 +- **风格**:jiangnan-muke(江南春·水印木刻) +- **原始输入**: + 千里莺啼绿映红,水村山郭酒旗风。 + 南朝四百八十寺,多少楼台烟雨中。 +- **意象清单**: + - 主体:纯风景(无人物主体) + - 景物:莺鸟、绿树红花、水村、山郭、酒旗、寺庙楼台群、烟雨、江水、小舟 + - 动作:莺啼 / 飞、酒旗随风 + - 色彩:绿、红 + - 情绪:清雅、悠远 + - 时空:春、江南、雨天 +- **最终提示词**:见本风格 `prompt.positive.txt`(`{SUBJECT}` 填入上述意象的英文描述) +- **负向**:见 `prompt.negative.txt` +- **参数**:size=1024x1536(2:3 竖版立轴) quality=high 张数=1 +- **参考图**:本目录 `ref.jpg` +- **成图**:`assets/cases/images/2026-10-14-jiangnanchun.jpg`(技能内自包含副本) +- **原始输出文件名**:`A_vertical_hanging_scroll_illu_2026-10-14T01-14-00.png`(生成工具按提示词自动命名;原图留在作者本地,未随包发布) +- **是否采纳**:是 +- **用户评价 / 可提炼的规则**: + 1. 用户明确认可,作为本 skill 的第一条入库风格。 + 2. **可提炼**:用户用「部件级指令」描述风格(屋顶=深色轮廓 / 墙=纸色留白 / 树叶=疏密块面 / 水=几笔横线),而非抽象形容词 —— 这正是风格能稳定复现的关键,已写入本风格正/负向提示词与 SKILL 核心原则。 + 3. **可提炼**:负向约束(不要密集排线 / 写实光影 / 水彩晕染 / 木刻滤镜)与正向描述同等重要,已固化为负向提示词。 + 4. 竖版立轴构图 + 上方大量留白,是用户偏好的版式,列为该风格默认。 diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/2026-10-14-yijiangnan.md b/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/2026-10-14-yijiangnan.md new file mode 100644 index 00000000..6f29fa6d --- /dev/null +++ b/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/2026-10-14-yijiangnan.md @@ -0,0 +1,42 @@ +# 案例:白居易《忆江南》· 竖版立轴 + +- **日期**:2026-10-14 +- **风格**:jiangnan-muke(江南春·水印木刻) +- **原始输入**: + 江南好,风景旧曾谙。 + 日出江花红胜火,春来江水绿如蓝。 + 能不忆江南? +- **意象清单**: + - 主体:纯风景(江南晨江) + - 景物:朝阳、江边红花、江水、远岸低山、江畔屋舍、小舟 + - 动作:日出、江花映水 + - 色彩:红胜火(江花)/ 绿如蓝(江水)—— 两条主色 + - 情绪:明媚而眷恋、怀念 + - 时空:春 · 清晨 · 江南 +- **最终提示词**: + ``` + A vertical hanging-scroll illustration of Bai Juyi's poem '忆江南' (Remembering Jiangnan): a spring sunrise over the southern river. Under the rising sun a flat pale disc low on the horizon; the riverside blossoms glow red like fire as sparse flat red blocks with a few short carved marks; the spring river water is a deep blue-green drawn with only a few short horizontal strokes and generous cream negative space; distant low hills recede as flat pale blocks; a few riverside houses are summarized as complete solid dark roof silhouettes with walls left as cream paper negative space; one small boat as a simple cream-paper shape on the water. + + Rendered in a refined flat color-block hand-printed woodblock style (套色木刻 / 水印木刻) -- planar, graphic, no realistic rendering. Use the provided reference image ONLY for its style: its flat color-block language, short carved marks, cream paper ground and hand-printed texture. Do NOT copy its composition or subject. + + BACKGROUND: a clean, warm off-white cream rice-paper color filling the whole image; paper texture fine and subtle, only a slight natural printing grain -- no coarse fibers, no stains, no yellowing spots, no over-aging. + + COMPOSITION: highly simplified flat shapes organized into large color areas; forms natural with a slight handmade irregularity but clearly recognizable; color blocks primary, carving lines secondary; generous cream negative space, especially at the top. + + TEXTURE: inside color blocks keep tiny sparse white ink-skipping spots and slight ink starvation; block edges with a slightly hand-printed feel; texture only an accent and never covering the graphics. + + COLOR: low-saturation muted palette overall, but let the 江花 red and the 江水 green-blue read clearly as the poem's two color notes. + + MOOD: bright yet serene, nostalgic, quiet. + ``` +- **负向**:见 `prompt.negative.txt`(当次完整负向:no drawing every roof tile, every brick or every leaf one by one; no dense hatching or cross-hatching; no realistic sketch shading; no photographic light-and-shadow modelling; no photo tracing; no woodcut filter effect; no complex gradients; no realistic shadows; no heavy thick black outlines; no watercolor bleeding; no 3D texture; no coarse paper fibers, stains, yellowing spots or over-aging; no text, no lettering, no characters, no signature, no seal.) +- **参数**:size=1024x1536(2:3 竖版立轴) quality=high 张数=1 +- **参考图**:`assets/styles/jiangnan-muke/ref.jpg`(以 image1 传入,提示词内明确「只借风格、不抄构图」) +- **成图**:`assets/cases/images/2026-10-14-yijiangnan.jpg`(技能内自包含副本) +- **原始输出文件名**:`A_vertical_hanging_scroll_illu_2026-10-14T04-37-31.png`(生成工具按提示词自动命名;原图留在作者本地,未随包发布) +- **是否采纳**:是 +- **用户评价 / 可提炼的规则**: + 1. 用户直接采纳,无修改意见 —— 说明 `jiangnan-muke` 配方首次跨题材复用成功(从《江南春》→《忆江南》)。 + 2. **可提炼**:本风格配方具备**跨题材可移植性**,不只适用于「江南春」这一首。后续可作为该风格的通用能力记录。 + 3. **可提炼**:参考图以 `image1` 传入 + 明确「只借风格不抄构图」的措辞,**未出现构图照抄** —— 证明这条防线有效,应保留为固定做法。 + 4. **可提炼**:原文有明确色彩词时(红胜火 / 绿如蓝),在提示词中把这两色「点出来并要求读得清」,能让成图忠实还原诗眼,同时整体仍保持低饱和。此技巧可推广到其他含色彩词的诗。 diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/images/2026-10-14-jiangnanchun-chunkcolor.jpg b/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/images/2026-10-14-jiangnanchun-chunkcolor.jpg new file mode 100644 index 00000000..8b69bc11 Binary files /dev/null and b/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/images/2026-10-14-jiangnanchun-chunkcolor.jpg differ diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/images/2026-10-14-jiangnanchun-riso.jpg b/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/images/2026-10-14-jiangnanchun-riso.jpg new file mode 100644 index 00000000..38c2dc38 Binary files /dev/null and b/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/images/2026-10-14-jiangnanchun-riso.jpg differ diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/images/2026-10-14-jiangnanchun.jpg b/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/images/2026-10-14-jiangnanchun.jpg new file mode 100644 index 00000000..fd43686f Binary files /dev/null and b/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/images/2026-10-14-jiangnanchun.jpg differ diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/images/2026-10-14-yijiangnan.jpg b/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/images/2026-10-14-yijiangnan.jpg new file mode 100644 index 00000000..2c9dafd9 Binary files /dev/null and b/external_plugins/muse-illustration/skills/muse-illustration/assets/cases/images/2026-10-14-yijiangnan.jpg differ diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/lexicon/imagery.yaml b/external_plugins/muse-illustration/skills/muse-illustration/assets/lexicon/imagery.yaml new file mode 100644 index 00000000..c868852c --- /dev/null +++ b/external_plugins/muse-illustration/skills/muse-illustration/assets/lexicon/imagery.yaml @@ -0,0 +1,47 @@ +# 意象 → 视觉元素 词典 +# 用途:把诗词/灵感中的意象,翻译成画面里可执行的具体元素。 +# 处理某意象时优先查这里;查不到则按常识归纳,并顺手把新映射补进来。 +# 注意:具体「怎么画」由当前风格的部件级规则决定(见各风格 prompt.positive.txt), +# 本词典只回答「画什么」。 + +自然: + 莺 / 鸟 / 飞禽: 小飞鸟剪影,点缀枝头或空中 + 柳: 垂枝,概括为疏密块面 + 桃 / 杏 / 花: 疏落红点或小色块 + 荷 / 莲: 圆叶色块 + 一两朵花块 + 竹: 竖向细杆 + 块状叶 + 山 / 远山: 远处淡色平涂块,层层退远 + 烟雨 / 雾: 横向淡色带 + 少量细点,朦胧,压低对比 + 水 / 江 / 湖 / 河: 横向几笔短线 + 大量留白 + 月: 圆形留白或淡色圆 + 日 / 夕阳: 淡色圆 + 横向暖色带 + 云: 平涂淡色块 + 雪: 大量纸色留白 + 少量细点 + 风: 用倾斜的酒旗、斜向雨丝或飘动的枝叶暗示,不直接画 + +建筑: + 寺 / 寺庙: 成组深色坡屋顶剪影 + 楼台 / 亭 / 塔: 深色轮廓 + 纸色留白墙面 + 村 / 郭 / 城: 数座坡顶屋块,可临水 + 酒旗 / 幡: 一根细杆 + 小旗块,倾斜示风 + 桥: 弧线 + 短刻痕 + 台阶: 纸色留白 + 少量横线 + 城墙: 横向平涂块 + 顶部深色轮廓 + +人物: + 孤舟 / 舟 / 船: 小舟形,纸色留白,人简化为小色块 + 行人: 简化为一两个竖向小色块 + 渔翁 / 钓者: 小色块 + 细线(竿) + 骑者 / 马: 两个相连色块,简化轮廓 + +色彩: + 绿映红: 低饱和绿块 + 疏落红点缀 + 青: 低饱和蓝绿块 + 苍 / 苍茫: 灰蓝调,降低对比 + 金 / 暖: 暖黄橙块,克制使用 + +情绪基调(影响整体处理,不直接成元素): + 清雅 / 静谧: 留白多、低饱和、元素疏 + 苍凉 / 孤寂: 冷调、大留白、元素极少 + 热烈: 红黄比例提高、元素变密 + 悠远: 远山层叠、大量留白 diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/chunkcolor/meta.yaml b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/chunkcolor/meta.yaml new file mode 100644 index 00000000..c7dc8ac2 --- /dev/null +++ b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/chunkcolor/meta.yaml @@ -0,0 +1,30 @@ +name: 色块彩墨 +id: chunkcolor +summary: 下三分之二沉静单色面 + 上沿细墨线白描 + 大留白,展览海报式现代彩墨 +best_for: [古典诗词, 山水, 江南, 水乡, 田园] +mood: [清雅, 静谧, 克制, 隐逸] +default: + size: 1024x1536 + quality: high + variants: 1 +anchor_required: true +# 随包附带的 ref.jpg 是**本项目自己生成并被采纳的成图**(= assets/cases/images/2026-10-14-jiangnanchun-chunkcolor.jpg), +# 作为本风格的标杆样例;原始第三方展览海报的版权不属于本项目,未随包发布。 +# 按 image1 传入(input_fidelity=medium)做风格锚定;如你另有同风格参考图,也可替换。 +anchor_dir: +anchor_file: +positive_file: prompt.positive.txt +negative_file: prompt.negative.txt +ref: ref.jpg +notes: > + 提取自 ref/chunkcolor/ 下 9 张展览海报变体。内核:一整块单色面 + 上沿细墨线 + 大留白。 + 三个易错点(v1→v3 勘误两次,务必照做): + 1)色块必须「赋形」——它就是主体本身(江/田/山/竹林),有针对性地画出「这个东西」, + 不是抽象泼洒;参考图里寒江=江水、麦野=麦田、松间=山体(且看得出崎岖)。 + 2)色块形体必须端正安定——「下三分之二的沉静色面、上沿大致齐平」或「一道端正竖色柱」; + 弯曲的 S 形装饰曲线已被否掉。「有机」只体现在边缘的洇散/撕纸边质感上,不是形状。 + 3)必须在提示词里点名那块色写的是什么({MASS_IS}),不点名模型必然退回随机泼洒。 + 参考图锚定:本风格**随包附带 ref.jpg**,即本项目自己生成并采纳的成图;原始第三方参考图未随包发布。 + 同一套文字跑 A/B 对照,**传参考图版明显更接近目标感觉**——因此本风格把参考图锚定当作默认动作,而非加分项 + (组装时另需声明「只借风格、不抄构图」)。留红开关:默认严守单色(负向补 no red accent);题材有色差点题时(如「绿映红」)可破例 + 一点朱红 #B5443A 作诗眼,面积 <1%、1-2 处、位置即诗眼本身,性质是「一点」非第二个色块。 diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/chunkcolor/prompt.negative.txt b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/chunkcolor/prompt.negative.txt new file mode 100644 index 00000000..8e7c6a4f --- /dev/null +++ b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/chunkcolor/prompt.negative.txt @@ -0,0 +1,16 @@ +no photorealistic rendering, no 3D shading, no photographic lighting, no soft gradients, +no random scattered splotches, no spilled-palette chaos, no formless abstract blob, +no curvy decorative S-curve, no wiggly ribbon-shaped mass, no squiggly or undulating silhouette, +no freely bleeding blotches that ignore the subject's shape, +no hard-edged vector rectangle with sharp corners, no perfect circles, no sharp symmetric geometric cutouts, +no busy or fully-covered canvas, no dense cross-hatching, no cluttered detail, +no multiple competing hues, no complementary color contrast, no saturated or neon colors, +no heavy thick cartoon outlines, no glossy digital airbrush look, no western oil brushwork, +no text, no letters, no characters, no calligraphy, no seal, no signature, +no frame, no border, no mockup, no drop shadow + +-- 单色版(默认)额外追加 -- +no red accent + +-- 留红版额外追加 -- +no a second colour area, vermilion must stay a single tiny point under 1% of the image diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/chunkcolor/prompt.positive.txt b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/chunkcolor/prompt.positive.txt new file mode 100644 index 00000000..bca5042d --- /dev/null +++ b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/chunkcolor/prompt.positive.txt @@ -0,0 +1,20 @@ +Modern Oriental ink-and-watercolor illustration of {SUBJECT}, museum exhibition poster aesthetic, built around one dominant color mass. + +THE MASS: one calm, stable plane of {MASS_COLOR} fills the lower two-thirds of the canvas, its top edge roughly LEVEL like a far-bank horizon line. The silhouette is composed and architectural — absolutely NOT a curvy decorative S-curve, NOT a wiggly ribbon, NOT a squiggle, NOT a random blob. Only the outer edge carries soft bleeding watercolor irregularity and torn-paper quality; that is texture, not shape. The mass reads as {MASS_IS}. Inside, the tonal drama describes that thing in an ordered way: for water, horizontal ripple bands parallel to the bank, pale reflected light along the far shore, fine granular sediment, deeper colour pooling toward the bottom; for a field, parallel rows; for a mountain, facet edges and crags reading rugged. Never random splotches, never a spilled palette. + +THE INK LINE: fine black ink drawing sits exactly ON that level top edge like a shoreline, drawn with brush and fine-pen line quality, varying line weight, occasional pale grey ink washes. Human figures reduced to tiny near-silhouettes or one- or two-stroke marks; landscape elements described a little more fully but never dense. + +NEGATIVE SPACE: large empty areas of paper above the mass — the emptiness IS the sky, the mist, the rain. + +COLOR: A SINGLE low-saturation hue only, varied only in value and translucency — no complementary-contrast pairing. Densest and darkest along the edge where pigment accumulates, lighter and translucent toward the interior, faint paper grain showing through. + +MOOD: literati, quiet, restrained, reclusive, poetic — like a museum exhibition label. Generous emptiness; never saturated; never filling the whole frame. + +— 可选开关(默认关闭;仅当题材有色差点题时才追加)— + +COLOR EXCEPTION: ONE very small muted vermilion accent #B5443A is permitted as the poetic focal point — 1–2 tiny spots maximum, together under 1% of the image area, e.g. a tiny wine-shop flag or a few blossoms. Muted vermilion only, never bright red. Everything else stays single-hue; this is a point of poetry, not a second colour area. + +Placeholders: +{SUBJECT} 想要画的场景与素材(写在墨线上的内容) +{MASS_IS} 那块色读起来是什么,必须点名,如 a spring river / a wheat field / a rugged mountain +{MASS_COLOR} 单一主色,如 celadon green #8BA79B / mustard ochre #D4A537 / slate indigo #5C7391 diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/chunkcolor/ref.jpg b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/chunkcolor/ref.jpg new file mode 100644 index 00000000..c0f74a2d Binary files /dev/null and b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/chunkcolor/ref.jpg differ diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/jiangnan-muke/meta.yaml b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/jiangnan-muke/meta.yaml new file mode 100644 index 00000000..b7993d42 --- /dev/null +++ b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/jiangnan-muke/meta.yaml @@ -0,0 +1,17 @@ +name: 江南春·水印木刻 +id: jiangnan-muke +summary: 米白纸底、平涂色块、短刻痕,套色 / 水印木刻的平面语言 +best_for: [古典诗词, 山水, 江南, 田园, 建筑群] +mood: [清雅, 静谧, 悠远] +default: + size: 1024x1536 + quality: high + variants: 1 +positive_file: prompt.positive.txt +negative_file: prompt.negative.txt +ref: ref.jpg +notes: > + 首条入库风格,源自杜牧《江南春》的一次生成。参考图为竖版立轴构图。 + 复现要点:部件级指令(屋顶=深色轮廓 / 墙=纸色留白 / 水=几笔横线)+ 显式负向约束。 + 已跨题材验证:杜牧《江南春》、白居易《忆江南》两首均获用户采纳(2026-10-14), + 证明配方具备跨题材可移植性;参考图以 image1 传入 + 声明「只借风格不抄构图」可有效防止构图照抄。 diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/jiangnan-muke/prompt.negative.txt b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/jiangnan-muke/prompt.negative.txt new file mode 100644 index 00000000..9568b30e --- /dev/null +++ b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/jiangnan-muke/prompt.negative.txt @@ -0,0 +1 @@ +no drawing every roof tile, every brick, or every leaf one by one; no dense hatching or cross-hatching across the picture; no realistic sketch shading; no photographic light-and-shadow modelling; no photo tracing; no woodcut filter effect; no complex gradients; no realistic shadows; no heavy thick black outlines; no watercolor bleeding; no 3D texture; no coarse paper fibers, stains, yellowing spots or over-aging; no text, no lettering, no characters, no signature, no seal. diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/jiangnan-muke/prompt.positive.txt b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/jiangnan-muke/prompt.positive.txt new file mode 100644 index 00000000..90e81e39 --- /dev/null +++ b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/jiangnan-muke/prompt.positive.txt @@ -0,0 +1,13 @@ +A vertical hanging-scroll illustration of {SUBJECT}, rendered in a refined flat color-block hand-printed woodblock style (套色木刻 / 水印木刻) —— planar, graphic, no realistic rendering. + +BACKGROUND: a clean, warm off-white cream rice-paper color filling the whole image; paper texture fine and subtle, only a slight natural printing grain —— NO coarse fibers, NO stains, NO yellowing spots, NO over-aging. + +COMPOSITION: highly simplified flat shapes organized into large color areas; forms are natural with a slight handmade irregularity but stay clearly recognizable; color blocks primary, carving lines secondary. + +PART-BY-PART TREATMENT (follow these literally): roofs summarized as a few complete solid dark silhouette shapes; walls expressed with a few flat color blocks or left as cream paper negative space; tree foliage simplified into block masses of varying density; water drawn with only a few short horizontal strokes; object shadows merged into simple dark flat blocks; the cream paper color itself forms part of the main shapes as negative space for walls, a boat, steps, or objects. + +TEXTURE: inside color blocks keep tiny sparse white spots (ink skipping), slight ink starvation, sparse ink grain; block edges carry a slightly hand-printed feel. Texture is only an accent and never covers the graphics. + +COLOR: low-saturation, muted; subtle touches of green and red only where the subject calls for it. + +MOOD: serene, quiet, restrained; generous cream negative space, especially at the top. diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/jiangnan-muke/ref.jpg b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/jiangnan-muke/ref.jpg new file mode 100644 index 00000000..4736fa8b Binary files /dev/null and b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/jiangnan-muke/ref.jpg differ diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/riso-print/meta.yaml b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/riso-print/meta.yaml new file mode 100644 index 00000000..dda52ecd --- /dev/null +++ b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/riso-print/meta.yaml @@ -0,0 +1,20 @@ +name: 江南春·risograph 版画 +id: riso-print +summary: 米白纸底、3-4 色有限调色板、平涂色块+粗犷笔触,risograph/丝网印刷手工套色质感(颗粒噪点、油墨不均、套色错位、色块边缘粗糙肌理) +best_for: [古典诗词, 山水, 江南, 田园, 建筑群] +mood: [怀旧, 清新, 文艺手账, 安静] +default: + size: 1024x1536 + quality: high + variants: 1 +positive_file: prompt.positive.txt +negative_file: prompt.negative.txt +ref: ref.jpg +notes: > + 源自杜牧《江南春》的 risograph 版生成(2026-10-14)。与 jiangnan-muke(水印木刻)并列, + 但更强调丝网/孔版印刷的工业手工感。配方由用户从参考图提取并固化为一份本地风格笔记 + (作者本地文件,未随包发布),此处入库存为可复用风格。 + 调色板为「3-4 色 + 米白纸留白」结构,可整体替换(如橘红+藏蓝+米白)而维持风格。 + 复现要点:① 平涂色块+粗犷笔触、无渐变无描边轮廓;② 中间调靠两色叠印产生纹理; + ③ 高光/云/雾用米白留白;④ 远景几何化平色山形;⑤ 近景短促密集方向性笔触(草丛/水波)。 + 诗眼色彩(如「绿映红」之红、酒旗之红)可保留少量红点,也可按用户要求严格只用调色板色。 diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/riso-print/prompt.negative.txt b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/riso-print/prompt.negative.txt new file mode 100644 index 00000000..0a3da870 --- /dev/null +++ b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/riso-print/prompt.negative.txt @@ -0,0 +1 @@ +no gradients, no smooth shading, no drawn outlines, no thick black contours, no realistic photographic rendering, no 3D modeling, no watercolor bleeding, no soft airbrush, no dense uniform hatching across the picture, no photo tracing, no woodcut filter effect, no complex gradients, no stains, no yellowing, no over-aging, no text, no lettering, no characters, no signature, no seal. diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/riso-print/prompt.positive.txt b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/riso-print/prompt.positive.txt new file mode 100644 index 00000000..0d48fcdd --- /dev/null +++ b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/riso-print/prompt.positive.txt @@ -0,0 +1,19 @@ +{SUBJECT}, rendered in a RISO / screen-print woodcut illustration style with a strictly limited palette of only 3-4 ink colors on warm cream rice-paper white (deep ink green, misty blue, grass green, plus cream paper white as negative space). + +TECHNIQUE & TEXTURE: +- Flat color blocking with coarse expressive brushstrokes. NO gradients, NO drawn outlines or contour lines. +- Mid-tones built only from two colors overprinting (one ink layer offset slightly over another), creating a textured screen-print moiré. +- Highlights, clouds and mist left as bare cream paper negative space. +- Heavy hand-printed feel: visible grain noise, uneven ink coverage / ink starvation with tiny speckles, deliberate slight misregistration offset between color layers, rough distressed color-block edges with organic paper-fiber bite. + +COMPOSITION & PART-BY-PART (follow literally): +- Distant elements simplified into flat geometric solid shapes (hills as plain color silhouettes). +- Buildings / roofs summarized as a few solid dark silhouette color blocks; walls left as cream paper negative space. +- Foliage simplified into block masses of varying density; sparse small accent dots only where the subject calls for a specific color. +- Water drawn with a few short horizontal strokes. +- Foreground texture rendered with short, dense, directional strokes (grass tufts, ripples). +- The cream paper color itself forms part of the main shapes as negative space (walls, a boat, mist, objects). + +COLOR: limited palette of 3-4 colors + cream paper white as the base / negative. Palette may be swapped (e.g. orange-red + navy + cream) as long as the "3-4 colors + paper negative" structure is kept. + +MOOD: nostalgic, fresh, Japanese zine / literary-journal aesthetic, like an old two-tone offset print with paper grain. Quiet and serene. Generous cream negative space, especially at the top for a vertical hanging-scroll layout. diff --git a/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/riso-print/ref.jpg b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/riso-print/ref.jpg new file mode 100644 index 00000000..ec976a96 Binary files /dev/null and b/external_plugins/muse-illustration/skills/muse-illustration/assets/styles/riso-print/ref.jpg differ diff --git a/external_plugins/muse-illustration/skills/muse-illustration/references/assembly-rules.md b/external_plugins/muse-illustration/skills/muse-illustration/references/assembly-rules.md new file mode 100644 index 00000000..10ddde59 --- /dev/null +++ b/external_plugins/muse-illustration/skills/muse-illustration/references/assembly-rules.md @@ -0,0 +1,103 @@ +# 组装规则(输入 → 意象 → 提示词) + +本文件是 `muse-illustration` 的执行细则,供组装提示词时加载。 + +## 1. 解析意象 + +### 输入三类 + +| 类型 | 例子 | 处理 | +|---|---|---| +| 诗词 / 词句 | 「千里莺啼绿映红,水村山郭酒旗风」 | 逐句抽意象,忠实还原 | +| 意象词 | 「月下孤舟」 | 直接展开为画面元素 | +| 单句灵感 | 「一个人在海边等日落」 | 抽象 → 具象;信息不足时先给意象清单请用户确认 | + +### 抽取六个维度 + +1. **主体** —— 人 / 物(可以是「无主体」的纯风景) +2. **景物** —— 山、水、建筑、植物、天气 +3. **动作** —— 动态元素(飞、行、落、浮) +4. **色彩词** —— 原文明确提到的颜色(如「绿映红」) +5. **情绪基调** —— 清雅 / 苍凉 / 热烈 / 孤寂 +6. **时空** —— 季节、晨昏、晴雨 + +### 输出 + +产出一份「意象清单」,每项映射到画面中的**视觉元素**。映射优先查 `assets/lexicon/imagery.yaml`;查不到则按常识归纳,并把新映射补进词典。 + +**示例(江南春)** + +| 原文意象 | 视觉元素 | +|---|---| +| 千里莺啼 | 小飞鸟剪影,点缀枝头与空中 | +| 绿映红 | 低饱和绿块 + 疏落红点 | +| 水村山郭 | 数座坡顶屋块,临水 | +| 酒旗风 | 细杆 + 小旗块,倾斜示风 | +| 南朝四百八十寺 | 成组深色坡屋顶剪影 | +| 楼台烟雨中 | 深色轮廓 + 纸色留白,罩淡色横带 | + +## 2. 组装提示词 + +### 拼装模板 + +``` +[媒介与风格总述] + [构图与版式] + [背景] + [主体元素(逐个做部件级描述)] + [色彩] + [质感与笔触] + [氛围与留白] +``` + +再追加负向约束: + +``` +NEGATIVE: <风格 prompt.negative.txt 的内容> +``` + +### 原则 + +- **部件级描述优先**:每个主要物件写清「它被概括成什么形状 / 什么颜色 / 是否用纸色留白」。 +- **原文有色彩词时,显式「点出」并要求读得清**:如《忆江南》「日出江花红胜火,春来江水绿如蓝」,在提示词里明确写出这两色并说「让它们读得清」,成图能忠实还原诗眼,而整体仍保持低饱和(2026-10-14 验证有效)。 +- **英文撰写提示词**:生图模型对英文遵循度更好。中文输入 → 先抽出意象清单 → 再译为英文提示词。 +- **长度适中**:结构化、信息密度高,不堆砌同义词。 +- **参考图只借风格**:传入 `ref.jpg` 时,明确写「只借其平涂色块、刻痕与手工印制质感,**不要照抄构图**」。 + +## 3. 张数与成品形态 + +### 成品形态 → 尺寸 + +| 成品形态 | 比例 | size 参数 | +|---|---|---| +| 纯插画(默认竖版立轴) | 2:3 | `1024x1536` | +| 小红书 | ≈3:4 | 用 `1024x1536` 生成后轻微裁切,或在 App 内加留白 | +| 方图 | 1:1 | `1024x1024` | +| 横版 | 3:2 | `1536x1024` | + +ImageGen 常用尺寸即 `1024x1024` / `1024x1536` / `1536x1024`,其余比例靠生成后裁切。 + +### 张数 + +- **1 张**:省额度,命中即用。 +- **2 张**:小幅变体,二选一。 +- **4 张**:多变体择优,成本 ×4。适合首次尝试某风格、构图不确定时。 + +成本提示:**每张约 5-10 积分**,生成前必须告知用户。 + +## 4. 标题字与本地排版(海报) + +生图模型渲染中文字不可靠,**不要在生图提示词里要求写汉字**。 + +带标题字的海报走两段式: + +1. 生成**无字底图**(负面词里加入 `no text, no lettering, no characters`) +2. 用本地渲染(HTML/Canvas 或图像工具)叠上标题字与落款 + +Phase 1 暂不内置叠字脚本;先用「生成底图 → 在小红书 App 内加文字贴纸」替代。叠字能力列入 Phase 3。 + +## 5. 归档 + +用户采纳后,按 `references/style-spec-template.md` 的案例格式,在 `assets/cases/` 追加一条记录(输入 / 意象 / 风格 / 提示词 / 参数 / 成图 / 评价)。这是本 skill 越用越准的关键。 + +**同时把采纳的成图拷一份进技能**,做成自包含: + +``` +cp <原始输出路径> assets/cases/images/YYYY-MM-DD-.jpg +``` + +案例记录里「成图」指向技能内副本,「原始输出路径」保留原址。这样即使项目里的 `generated-images/` 被清理,技能仍是完整可迁移的。 diff --git a/external_plugins/muse-illustration/skills/muse-illustration/references/style-spec-template.md b/external_plugins/muse-illustration/skills/muse-illustration/references/style-spec-template.md new file mode 100644 index 00000000..b92c5bd2 --- /dev/null +++ b/external_plugins/muse-illustration/skills/muse-illustration/references/style-spec-template.md @@ -0,0 +1,62 @@ +# 风格条目 / 案例记录 模板 + +新增风格、沉淀案例时照此填写。 + +## A. 风格条目模板 + +目录:`assets/styles/<风格 id>/` + +``` +<风格 id>/ +├── meta.yaml +├── prompt.positive.txt +├── prompt.negative.txt +└── ref.jpg +``` + +### meta.yaml + +```yaml +name: 江南春·水印木刻 # 中文风格名 +id: jiangnan-muke # 目录名,kebab-case +summary: 米白纸底、平涂色块、短刻痕,套色/水印木刻风 +best_for: [古典诗词, 山水, 江南, 田园] # 适用题材 +mood: [清雅, 静谧, 悠远] # 情绪基调 +default: + size: 1024x1536 # 默认尺寸 + quality: high + variants: 1 # 默认张数 +positive_file: prompt.positive.txt +negative_file: prompt.negative.txt +ref: ref.jpg +``` + +### prompt.positive.txt + +风格的正向配方,用 `{SUBJECT}` 占位主体。**必须包含部件级描述**(各类物件被概括成什么),不要只写抽象形容词。 + +### prompt.negative.txt + +风格要避免的东西,越具体越好。 + +## B. 案例记录模板 + +文件:`assets/cases/YYYY-MM-DD-.md` + +```markdown +# 案例:<标题> + +- **日期**:YYYY-MM-DD +- **风格**:<风格 id> +- **原始输入**:<原文> +- **意象清单**:<主体 / 景物 / 色彩 / 情绪 / 时空> +- **最终提示词**:<完整正向提示词> +- **负向**:<负向约束> +- **参数**:size=<...> quality=<...> 张数=<...> +- **参考图**: +- **成图**:`assets/cases/images/YYYY-MM-DD-.jpg`(技能内自包含副本)|原始输出: +- **是否采纳**:是 / 否 +- **用户评价 / 可提炼的规则**:<用户怎么说;能沉淀成什么通用规则> +``` + +> 「可提炼的规则」一栏最重要 —— 它是把单次经验升级为风格配方的接口。 diff --git a/marketplace.json b/marketplace.json index c95d1fe8..d681965b 100644 --- a/marketplace.json +++ b/marketplace.json @@ -1171,6 +1171,38 @@ "生成一个可 3D 打印的骑士小雕像,导出 STL 文件" ] } + }, + { + "name": "muse-illustration", + "source": "./external_plugins/muse-illustration", + "displayName": "Muse Illustration", + "displayName_i18n": { + "en": "Muse Illustration", + "zh-CN": "灵感插图" + }, + "description": "Turn poems, imagery, or a one-line spark of inspiration into illustrations or posters, using a growing built-in style library.", + "description_i18n": { + "en": "Turn poems, imagery, or a one-line spark of inspiration into illustrations or posters, using a growing built-in style library.", + "zh-CN": "把诗词、词句、意象或一句话灵感,转化为插画或海报;内置可成长的风格库(风格配方 = 正向提示词 + 负向约束 + 参考图 + 参数),支持自选风格、出图张数与成品形态。" + }, + "version": "1.1.2", + "author": { + "name": "Stayfoool", + "url": "https://github.com/Stayfoool" + }, + "icon": "https://cdn-zcode.z.ai/zcode/official-plugin/assets/muse-illustration/icon.png", + "category": "other", + "keywords": [ + "illustration", + "chinese-poetry", + "text-to-image", + "poster", + "art", + "style-recipe" + ], + "homepage": "https://github.com/Stayfoool/muse-illustration", + "repository": "https://github.com/Stayfoool/muse-illustration", + "license": "MIT" } ] }