Chalk Labs
Need help deploying margin-manager?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
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-margin-manager
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
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/margin-manager
What's inside
- Skill name
margin-manager- Description
- 页边距管理,支持党政机关公文和学术论文标准。
- License
- GPL-3.0
- Instructions
- 120 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (2)
- SKILL.md
- margin_manager.py · scripts/
SKILL.md (first lines)
# Margin Manager
页边距管理 Skill,支持国家标准页边距设置。
**输入**:DOCX 文件路径 + 页边距标准
**输出**:设置页边距后的 DOCX 文件
---
# 调用方式
## Python API
```python
import sys
sys.path.insert(0, 'SKILLS/margin-manager/scripts')
from margin_manager import MarginManager
manager = MarginManager()
# 应用公文标准
result = manager.apply_margins('input.docx', standard='government')
# 应用学术论文标准
result = manager.apply_margins('input.docx', standard='academic')
# 自定义页边距
result = manager.apply_margins('input.docx', margins={
'top': 3.0, # 厘米
'bottom': 3.0,
'left': 2.5,
'right': 2.5
})
```
**参数**:
- `apply_margins(docx_path, standard=None, margins=None, output_path=None)` - 应用页边距
- `docx_path` - DOCX 文件路径
- `standard` - 预设标准('government' 或 'academic')
- `margins` - 自定义页边距字典(厘米)
- `output_path` - 输出路径(可选,默认覆盖原文件)
- 返回:操作结果字典
---
# 页边距标准
## 党政机关公文标准(GB/T 9704-2012)
| 项目 | 值 | 说明 |
|------|-----|------|
| 纸张大小 | A4 (210mm × 297mm) | 国家标准 |
| 上边距 | 3.7 cm (37mm) | 国家标准 |
| 下边距 | 3.5 cm (35mm) | 国家标准 |
| 左边距 | 2.8 cm (28mm) | 国家标准 |
| 右边距 | 2.6 cm (26mm) | 国家标准 |
| 版心尺寸 | 156mm × 225mm | 计算得出 |
| 每面行数 | 22 行 | 撑满版心 |
| 每行字数 | 28 字 | 撑满版心 |
## 国内学术论文标准
| 项目 | 值 | 说明 |
|------|-----|------|
| 纸张大小 | A4 (210mm × 297mm) | 通用标准 |
| 上边距 | 2.54 cm | 常见参考值 |
| 下边距 | 2.54 cm | 常见参考值 |
| 左边距 | 3.17 cm | 预留装订空间 |
| 右边距 | 3.17 cm | 对称设置 |
---
# 预设标准
| 标准名称 | 标识 | 上 | 下 | 左 | 右 |
|----------|------|-----|-----|-----|-----|
| 党政机关公文 | `government` | 3.7 | 3.5 | 2.8 | 2.6 |
| 学术论文 | `academic` | 2.54 | 2.54 | 3.17 | 3.17 |
| 镜像页边距 | `mirror` | 2.54 | 2.54 | 2.5 | 2.0 |
---
# 输出格式
```json
{
"success": true,
"docx_path": "input.docx",
"standard": "government",
"margins": {
"top": 3.7,
"bottom": 3.5,
"left": 2.8,
"right": 2.6
},
"sections_modified": 1
}
```
---
# AGENT 集成
在 AGENT.md 的 Step 9a/9b(格式化)后插入:
```
Step 9c: 页边距设置
- 根据文档类型(公文/学术论文)选择页边距标准
- 应用标准页边距到所有节
```
---
# 错误处理
- 文件不存在 → 输出错误信息
- 无效标准 → 使用默认学术论文标准
- 节处理失败 → 跳过该节、输出警告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
table-processor
Murchey
表格格式化处理(对齐、边框、单元格格式、题注、图片保护)
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
custom-format-manager
Murchey
自定义格式配置管理器,提供WEB界面管理格式模板配置
SkillCFreshness: C★ 4Claude Code +9 - 0.510score
note-complement
Murchey
文档标注功能,集成在 preview-design 预览界面中,用户可点击页面元素添加修改建议。
SkillCFreshness: C★ 4Claude Code +9 - 0.479score
pdf-export
Murchey
DOCX 转 PDF 导出。
SkillCFreshness: C★ 4Claude Code +9 - 0.479score
preview-design
Murchey
设计预览与用户确认。
SkillCFreshness: C★ 4Claude Code +9 - 0.479score
template-engine
Murchey
模板管理与加载。
SkillCFreshness: C★ 4Claude Code +9 - 0.479score
translation-engine
Murchey
中英互译。
SkillCFreshness: C★ 4Claude Code +9 - 0.479score
xml-safety
Murchey
XML 安全校验。
SkillCFreshness: C★ 4Claude Code +9 - 0.479score
zero-format-normalizer
Murchey
零格式文档格式化。
SkillCFreshness: C★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 30, 2026 (5 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.510score
note-complement
Murchey
文档标注功能,集成在 preview-design 预览界面中,用户可点击页面元素添加修改建议。
SkillCFreshness: C★ 4Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get margin-manager running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
margin-manager skill. Agent Mart. https://agentmart.dev/skills/murchey-margin-manager (last updated 2026-10-24)