Skip to content
Agentmart
Submit a tool

template-engine

模板管理与加载。

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-template-engine

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/template-engine

What's inside

Skill name
template-engine
Description
模板管理与加载。
License
GPL-3.0
Instructions
65 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (3)

  • SKILL.md
  • save_template_config.py · scripts/
  • template_loader.py · scripts/

SKILL.md (first lines)

# Template Engine

加载、验证和管理格式模板。

**输入**:用户选择的模板类型
**输出**:`workspace/validated/template_config.json`

---

# 调用方式

```python
import sys
sys.path.insert(0, 'SKILLS/template-engine/scripts')
from template_loader import TemplateLoader

loader = TemplateLoader()
loader.run('chinese_academic.yaml')
# 输出: workspace/validated/template_config.json
```

**参数**:
- `__init__()` - 无参数
- `run(template_name=None)` - 模板文件名(如 `chinese_academic.yaml`)

---

# 模板目录

用户模板:`SKILLS/format-normalizer/custom/`
- `chinese_academic.yaml` - 中文论文
- `english_academic.yaml` - 英文论文

---

# 必需字段

模板必须包含:
- `fonts` - 字体配置(chinese、english、heading)
- `paragraph` - 段落配置(alignment、line_spacing、first_indent)
- `heading` - 标题配置(level1、level2、level3)

---

# 配置结构

```json
{
  "fonts": {"chinese": {"family": "宋体", "size": 12}},
  "paragraph": {"alignment": "justify", "line_spacing": 1.5},
  "heading": {"level1": {"font": "黑体", "size": 16}},
  "toc": {"enabled": true, "max_level": 3},
  "header": {"enabled": true, "text": ""},
  "footer": {"enabled": true, "page_number": true},
  "cover": {"enabled": true, "title": {}, "logo": {}}
}
```

---

# 错误处理

模板缺失/非法 → 使用默认配置、输出警告

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

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