Duanhui — Development skill for Claude Code
段绘(DuanHui)把爆款 Codex Skill 的中文正文配图能力做成普通作者装即用的命令行工具:贴进一整篇中文文章,按段落语义自动配上一批白底怪诞手绘插图,导出即用.
How to install Duanhui
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open SuperMarioYL/duanhui and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Duanhui does
段绘(DuanHui)把爆款 Codex Skill 的中文正文配图能力做成普通作者装即用的命令行工具:贴进一整篇中文文章,按段落语义自动配上一批白底怪诞手绘插图,导出即用。
Alternatives in Development
- Auto Update — Pull the latest ECC repo changes and reinstall the current managed targets 243.5k ★
- Sharing Skills — skill for guidance 115.1k ★
- Template Skill — Minimal skeleton for a new skill project structure 97.5k ★
README
[English](README.en.md) | **简体中文**
**将中文文章分段,先预览配图位置与画面描述,再选择后端渲染并导出图片映射。**
`v0.7.0` · `Python 3.12+` · [Apache-2.0](LICENSE)
[Website](https://duanhui.lei6393.com) · [Demo record](docs/demo-results.json)
为什么使用
一篇文章要配多张图时,除了画面风格,还要考虑每张图应该接在哪一段。段绘把分段、位置计划和共享风格提示连接起来,让作者先检查计划,再进入可能收费的渲染步骤。
架构
segment.py 划分并标记段落,placement.py 校验后端返回的位置与描述,style.py 给每个 spot 加入共享前缀与 seed,image backend 渲染,export.py 输出图片、placement_map.json 和 annotated.md。cover.py 提供单张封面路径。
当前可用风格包括 [guaidan](styles/guaidan.yaml) 与 [shuimo](styles/shuimo.yaml),由 --style 选择;旧 README 中“只支持一种风格、cover 尚未实现”已过时。
安装
需要 Python 3.12+。--dry-run 强制 mock;示例也显式设置 DUANHUI_MOCK=1,避免调用已配置的后端。
git clone https://github.com/SuperMarioYL/duanhui.git
cd duanhui
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e .
快速开始
实际运行文章配图和封面 dry-run。示例文章分为 13 段,最多 3 个配图点,另生成一条封面计划。没有生成真实插图,也没有验证模型审美或跨图一致性。
DUANHUI_MOCK=1 python -m duanhui.cli run examples/sample_article.md --dry-r
Related Skills
Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Root Cause Tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THI
Claude API
When code imports anthropic/@anthropic-ai/sdk/claude_agent_sdk, or user asks to use Claude APIBuild apps with the Claude API or Anthropic SDK
Releases
.
Related Agents
Peon Ping
Warcraft III Peon voice notifications (+ more!) for Claude Code, Codex, IDEs, and any AI agent.
SwiftUI Agent Skill
SwiftUI agent skill for Claude Code, Codex, and other AI tools.
Agent Of Empires
Claude Code, OpenCode, Mistral Vibe, Codex CLI, Gemini CLI Coding Agent Terminal Session manager via tmux and