Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/murchey-preview-design
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/preview-design
What's inside
- Skill name
preview-design- Description
- 设计预览与用户确认。
- License
- GPL-3.0
- Instructions
- 99 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (3)
- SKILL.md
- preview_server.cpython-313.pyc · scripts/__pycache__/
- preview_server.py · scripts/
SKILL.md (first lines)
# Preview Design
在浏览器中预览文档设计,等待用户确认。
**输入**:`document_ast` + `template_config` + 源 DOCX 路径
**输出**:用户确认结果 + `edited_config`
---
# 调用方式
## 命令行(推荐,自动打开浏览器等待用户确认)
```bash
python SKILLS/preview-design/scripts/preview_server.py workspace/parsed/document_ast.json workspace/validated/template_config.json workspace/input/input.docx
```
**服务器会**:
1. 启动本地 HTTP 服务(端口 8765-8780)
2. 等待服务器就绪(端口探测)
3. 自动打开浏览器显示预览页面
4. 等待用户在浏览器中编辑配置并点击"确认并继续"
5. 将用户确认的配置保存到 `workspace/validated/edited_config.json`
**IDE 环境**:如果 IDE(如 Trae)会自动检测 localhost URL 并打开预览面板,可传入 `open_browser=False` 避免双窗口。
## Python API
```python
import sys
sys.path.insert(0, 'SKILLS/preview-design/scripts')
from preview_server import run_preview
result = run_preview(
'workspace/parsed/document_ast.json',
'workspace/validated/template_config.json',
'workspace/input/input.docx',
open_browser=True # IDE 环境设为 False,避免双窗口
)
# result 包含: user_confirmed, cover_preserved, toc_preserved, edited_config
# edited_config.json 会自动保存到 workspace/validated/
```
**参数**:
- `run_preview(ast_path, template_config_path, source_docx_path=None)`
- `ast_path` - AST JSON 文件路径
- `template_config_path` - 模板配置 JSON 文件路径
- `source_docx_path` - 源 DOCX 文件路径(可选)
- 返回:用户确认的配置 JSON
**重要**:此命令是阻塞式的,会一直等待用户在浏览器中操作。必须使用 `blocking=true` 执行。
**输出文件**:
- `workspace/validated/edited_config.json` - 用户确认/编辑后的配置
---
# 预览内容
必须展示:
1. **封面页**:学校名称、Logo、标题、个人信息
2. **目录页**:已有目录 / 自动生成目录(TOC 域代码)
3. **页眉页脚**:文本、字体、对齐、分隔线、页码
4. **正文样式**:标题/正文字体、字号、行距、缩进
5. **段落间距**:段落之间空行分隔选项
---
# 封面配置
```json
{
"cover": {
"enabled": true,
"school_name": "XX大学",
"school_font": "宋体",
"school_size": 18,
"title": {"text": "课程作业", "font": "黑体", "size": 22},
"info_items": [{"label": "姓名", "value": ""}],
"logo": {"enabled": false, "image_data": "", "image_path": ""}
}
}
```
---
# 服务器规则
端口范围:8765-8780
必须等待服务器启动后再打开浏览器
---
# 安全规则
禁止:访问外部网络、修改源文件
仅允许:读取配置、本地 HTTP 服务From Murchey/doc-form-master, GPL-3.0.
More from Murchey/doc-form-master
- 0.515score
markitdown-converter
Murchey
统一文档格式转换器,支持 DOCX ↔ MD、PDF/PPTX/XLSX/HTML → MD → DOCX。
SkillCFreshness: C★ 4Claude Code +9 - 0.512score
docx-parser
Murchey
DOCX 结构解析,构建统一 AST。
SkillCFreshness: C★ 4Claude Code +9 - 0.512score
custom-format-manager
Murchey
自定义格式配置管理器,提供WEB界面管理格式模板配置
SkillCFreshness: C★ 4Claude Code +9 - 0.512score
footnote-processor
Murchey
脚注和尾注格式处理器,支持学术论文脚注/尾注标准化
SkillCFreshness: C★ 4Claude Code +9 - 0.512score
margin-manager
Murchey
页边距管理,支持党政机关公文和学术论文标准。
SkillCFreshness: C★ 4Claude Code +9 - 0.512score
table-processor
Murchey
表格格式化处理(对齐、边框、单元格格式、题注、图片保护)
SkillCFreshness: C★ 4Claude Code +9 - 0.510score
note-complement
Murchey
文档标注功能,集成在 preview-design 预览界面中,用户可点击页面元素添加修改建议。
SkillCFreshness: C★ 4Claude Code +9 - 0.479score
image-layout
Murchey
图片布局优化。
SkillCFreshness: C★ 4Claude Code +9 - 0.479score
xml-safety
Murchey
XML 安全校验。
SkillCFreshness: C★ 4Claude Code +9 - 0.479score
pdf-export
Murchey
DOCX 转 PDF 导出。
SkillCFreshness: C★ 4Claude Code +9 - 0.479score
zero-format-normalizer
Murchey
零格式文档格式化。
SkillCFreshness: C★ 4Claude Code +9 - 0.479score
template-engine
Murchey
模板管理与加载。
SkillCFreshness: C★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 7, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- GPL-3.0
- Repository
- github.com/Murchey/doc-form-master
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Murchey
- 0.515score
markitdown-converter
Murchey
统一文档格式转换器,支持 DOCX ↔ MD、PDF/PPTX/XLSX/HTML → MD → DOCX。
SkillCFreshness: C★ 4Claude Code +9 - 0.512score
table-processor
Murchey
表格格式化处理(对齐、边框、单元格格式、题注、图片保护)
SkillCFreshness: C★ 4Claude Code +9 - 0.512score
custom-format-manager
Murchey
自定义格式配置管理器,提供WEB界面管理格式模板配置
SkillCFreshness: C★ 4Claude Code +9 - 0.512score
footnote-processor
Murchey
脚注和尾注格式处理器,支持学术论文脚注/尾注标准化
SkillCFreshness: C★ 4Claude Code +9 - 0.512score
docx-parser
Murchey
DOCX 结构解析,构建统一 AST。
SkillCFreshness: C★ 4Claude Code +9 - 0.512score
margin-manager
Murchey
页边距管理,支持党政机关公文和学术论文标准。
SkillCFreshness: C★ 4Claude Code +9
Cite this page
preview-design skill. Agent Mart. https://agentmart.dev/skills/murchey-preview-design (last updated 2026-10-24)