Skip to content
Agentmart
Submit a tool

image-layout

图片布局优化。

Skill by Murchey

IndexedGPL-3.0★ 4
Write a review

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-image-layout

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.

We use your email only for this newsletter. Privacy

About

图片布局优化。

No 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/image-layout

What's inside

Skill name
image-layout
Description
图片布局优化。
License
GPL-3.0
Instructions
62 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (2)

  • SKILL.md
  • image_layout.py · scripts/

SKILL.md (first lines)

# Image Layout

优化图片在文档中的布局和位置。

**输入**:`normalized_ast` 或 DOCX 文件路径
**输出**:`workspace/optimized/optimized_ast.json`

---

# 调用方式

```python
import sys
sys.path.insert(0, 'SKILLS/image-layout/scripts')
from image_layout import ImageLayoutOptimizer

optimizer = ImageLayoutOptimizer('workspace/input/input.docx')
optimizer.run()
# 输出: workspace/optimized/optimized_ast.json
```

**参数**:
- `__init__(docx_path)` - DOCX 文件路径
- `run()` - 执行图片布局优化

---

# 优化内容

- 图片居中对齐
- 保持图片比例
- 最大宽度 80% 页面宽度
- 避免图片跨页
- 图片与 Caption 保持同页

---

# 配置

```yaml
image:
  alignment: center
  keep_ratio: true
  max_width_percent: 80
  avoid_page_break: true
  keep_with_caption: true
```

---

# 安全规则

**禁止**:压缩图片、删除图片、修改图片内容
**必须**:保留图片 relationship、保持图片清晰度

---

# 跳过条件

用户选择不优化时跳过此步骤

From Murchey/doc-form-master, GPL-3.0.

More from Murchey/doc-form-master

Signals

Stars
4
Forks
0
Open issues
0
Last commit (this folder)
May 28, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
GPL-3.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Murchey

Cite this page

image-layout skill. Agent Mart. https://agentmart.dev/skills/murchey-image-layout (last updated 2026-10-24)