Skip to content

ZJU-REAL/Easel / skills/builtin/template-library

template-library

Verified

内容模板的保存、复用、管理。把成功的内容结构保存为模板,下次直接套用,支持模板分类和版本管理。 当用户说"保存模板"、"用模板"、"模板管理"、"模板列表"、"复用上次的结构"、 "常用模板"时使用。 与 post-formatter(帖子框架)的区别:post-formatter 提供通用营销框架(PAS/AIDA/BAB), template-library 管理用户自己沉淀的个性化模板。 与 social-content(社媒内容)的区别:social-content 从零生成内容, template-library 基于已有模板快速复制结构。

FileKindSize
EASEL-META.mdmarkdown1.5 KB
SKILL.mdskill md6.4 KB
scripts/templates.pyscript12.7 KB

EASEL-META.md

View on GitHub
# Easel SKILL 元数据 — template-library

| 字段 | 值 |
|------|-----|
| **SKILL 名称** | template-library |
| **所属层** | general |
| **自研** | 是(Easel 原创) |
| **脚本** | `scripts/templates.py`(纯 stdlib,python3.11) |

## 脚本说明

`scripts/templates.py` 把模板文件读写、`INDEX.json` 维护、`usage_count` 自增、
`{{var}}` 占位符提取与替换从 LLM 手动操作固化为确定性代码。
子命令:`save / list / get / edit / delete / use`。

- 模板文件与 `INDEX.json` 均**原子写入**(临时文件 + `os.replace`),增删模板同步更新索引
- 变量统一用 `{{var}}` 占位符:`save`/`edit` 自动提取变量清单,`use` 做替换并 `usage_count += 1`
- `use` 未填变量保留占位符并 stderr 警告;`delete` 默认 **dry-run**,`--apply` 才删并清索引
- `edit` 改分类会移动文件并清理旧文件

## 外部参考

脚本为**原创实现,未复制任何外部代码**;设计模式(分类目录 + INDEX 索引、Markdown 模板 +
变量替换、使用计数)参考了 frontmatter `references` 中列出的开源项目思路:

| 参考来源 | 借鉴点(仅设计思路) |
|----------|--------|
| [enescingoz/awesome-n8n-templates](https://github.com/enescingoz/awesome-n8n-templates) | 按分类分目录 + INDEX 索引 + 使用统计 |
| [danielmiessler/fabric](https://github.com/danielmiessler/fabric) | 每个模板是可复用 Markdown 文件,支持变量替换 |

> 更新时间: 2026-07-23
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall