template-library

template-library is a skill for Claude Code, Codex from ZJU-REAL/Easel. It costs 144 tokens per session (1,919 once invoked), scanned A, original, Apache-2.0.

A personal library for saving, reusing, listing, editing, and versioning content templates. Templates can include replaceable fields such as a title, problem, solution, or call to action.

In plain words
What is it for?
Save a template from text or a file, fill its variables for a new topic, or manage templates by category.
Why use it?
It avoids rebuilding the same content structure each time and keeps successful formats organized for repeat use.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Save a template from text or a file, fill its variables for a new topic, or manage templates by category.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zju-real/easel/template-library
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ZJU-REAL/Easel --skill template-library
Clone the repo
git clone --depth 1 https://github.com/ZJU-REAL/Easel

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for template-library

README.md
[![agentmods](https://agentmods.dev/badge/skills/zju-real/easel/template-library/github.svg)](https://agentmods.dev/skills/zju-real/easel/template-library)
Your own site
<a href="https://agentmods.dev/skills/zju-real/easel/template-library"><img src="https://agentmods.dev/badge/skills/zju-real/easel/template-library/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for template-library

Your own site · 80×15
<a href="https://agentmods.dev/skills/zju-real/easel/template-library"><img src="https://agentmods.dev/badge/skills/zju-real/easel/template-library.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 144 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,919 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00144 $0.01919
Opus 5 $0.00072 $0.00959
Sonnet 5 $0.00029 $0.00384
Haiku 4.5 $0.00014 $0.00192

Measured 6d ago against content hash 39ae5e7b3dbf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

template-library scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/templates.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/openclaw/template-library/SKILL.md · 157 lines

How it starts

The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.

模板库

保存、复用、管理内容模板 — 把成功经验变成可复制的结构

输入

字段 必填 说明
action 操作类型:save / use / list / edit / delete / get
template_name 视操作 模板名称(save / use / edit / delete / get 时必填)
source_file 要保存为模板的源文件路径(save 操作时使用)
source_text 要保存为模板的文本内容(save 操作时,与 source_file 二选一)
category 模板分类:xiaohongshu / weibo / douyin / zhihu / wechat / x / general
variables 模板变量的填充值,JSON 格式(use 操作时使用)
topic 使用模板时的主题/话题(use 操作时使用)
profile_name 绑定画像名称(有 Profile 上下文时自动填入)

输出

save 操作

## 模板已保存

**名称**: {template_name}
**分类**: {category}
**存储位置**: templates/{category}/{template_name}.md

### 提取的模板结构
| 部分 | 结构描述 | 可变区域 |
|------|----------|----------|
| 标题 | 数字 + 痛点提问 | {{title_number}}, {{pain_point}} |
| 开头 | 反常识钩子 | {{hook_statement}} |
| 正文 | 3 段式(问题-方案-证据) | {{problem}}, {{solution}}, {{evidence}} |
| 结尾 | 行动号召 + 互动引导 | {{cta}}, {{question}} |

### 模板变量
共提取 {n} 个变量,下次使用时填入具体内容即可。

use 操作

## 模板应用结果

**使用模板**: {template_name}
**主题**: {topic}

---

{根据模板结构 + 变量填充生成的内容}

---

> 基于模板 `{template_name}` 生成,可进一步调整。

list 操作

## 模板库

**总数**: {n} 个模板

### 按分类

#### 小红书 ({n1} 个)
| 模板名 | 说明 | 变量数 | 使用次数 | 创建日期 |
|--------|------|--------|----------|----------|
| 种草对比 | 双产品对比种草结构 | 8 | 5 | 2026-07-10 |
| 教程步骤 | N 步教程卡片结构 | 6 | 3 | 2026-07-08 |

#### 微博 ({n2} 个)
| 模板名 | 说明 | 变量数 | 使用次数 | 创建日期 |
|--------|------|--------|----------|----------|
| 热点评论 | 热搜话题评论结构 | 5 | 7 | 2026-07-12 |

#### 通用 ({n3} 个)
| ... | ... | ... | ... | ... |

执行步骤

模板文件读写、INDEX.json 维护、usage_count 自增、{{var}} 提取与替换已固化为 scripts/templates.py(纯 stdlib,argparse 子命令)。LLM 只做意图路由、内容结构分析 (把成功内容改写成含 {{var}} 占位符的模板正文)和结果呈现,不手写 JSON、不手动 增删文件。 索引与模板文件均原子写入(临时文件 + rename),增删模板同步更新 INDEX.json。

操作路由

  1. 解析用户意图,映射到脚本子命令:
    • "保存模板" / "存为模板" → save
    • "用模板" / "套用模板" / "复用上次的结构" → use
    • "模板列表" / "有哪些模板" / "常用模板" → list
    • "编辑模板" / "改模板" → edit
    • "删除模板" → delete
    • "预览模板" / "看看模板" → get

Read the full file on GitHub · 157 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 157 lines · 144 tokens per session scan A 39ae5e7b3dbf

Subscribe to this mod's changes

template-library is a skill published in the GitHub repository ZJU-REAL/Easel (710 stars, last pushed today), licensed Apache-2.0. It adds 144 tokens to every session and 1,919 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories