跳到正文
cccskills
免费在 GitHub 公开

template-library

Turn successful posts or text into reusable templates with fields for changing details. Save, categorize, preview, edit, and apply your own content structures to new topics, while tracking how often each template is used.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

内容模板的保存、复用、管理。把成功的内容结构保存为模板,下次直接套用,支持模板分类和版本管理。当用户说"保存模板"、"用模板"、"模板管理"、"模板列表"、"复用上次的结构"、 "常用模板"时使用。

与 post-formatter(帖子框架)的区别:post-formatter 提供通用营销框架(PAS/AIDA/BAB), template-library 管理用户自己沉淀的个性化模板。与 social-content(社媒内容)的区别:social-content 从零生成内容, template-library 基于已有模板快速复制结构。

查看安装方法

适用场景

  • Saving a successful post as a template
  • Reusing a familiar structure for a new topic
  • Browsing templates by platform or usage count
  • Editing and organizing saved templates

包含的文件(3)

  • SKILL.md6.4 KB
  • EASEL-META.md1.5 KB
  • scripts/templates.py12.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

模板库

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

输入

字段必填说明
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

LLM 侧职责(save/use 前的分析)

  1. save 前:LLM 阅读源内容,识别固定结构与可变区域,把具体值改写成 {{变量名}} 占位符(如产品名 → {{product_name}}、痛点 → {{pain_point}}),再把改写后的正文 通过 --text 或 --file 交给脚本。脚本负责提取变量清单、写文件、登记索引。
  2. use 前:LLM 根据 topic/Profile 为每个变量推导填充值,通过 --var/--vars 传入。 脚本负责替换、usage_count 自增、原子写回索引。

调用脚本

  1. 统一入口(默认 --root templates):

    S=skills/builtin/template-library/scripts/templates.py
    python3 $S save 种草对比 --category xiaohongshu --description "双产品对比" \
            --text "标题:{{title}} A={{product_a}} vs B={{product_b}} CTA={{cta}}"
    python3 $S list --category xiaohongshu                  # 按分类列出,按使用次数降序
    python3 $S get 种草对比                                  # 预览内容 + 元信息
    python3 $S use 种草对比 --var title=夏日防晒 --var product_a=安耐晒
    python3 $S use 种草对比 --vars '{"title":"夏日防晒","cta":"点赞收藏"}'
    python3 $S edit 种草对比 --category general --description "改描述" --text "新正文 {{x}}"
    python3 $S delete 种草对比                                # 预览(dry-run)
    python3 $S delete 种草对比 --apply                        # 确认后真正删除
    
  2. 脚本内置保证(无需 LLM 判断):

    • save 同名默认报错,需 --force 覆盖;edit 改分类会移动文件并清理旧文件
    • use 未填的变量保留 {{占位符}} 并在 stderr 警告,不会静默出错
    • delete 默认 dry-run,仅打印将删除的模板,加 --apply 才真正删并清理索引
    • 所有写操作原子化,增删模板与 INDEX.json 始终一致
  3. 结果呈现:把脚本输出整理成"输出"章节的 Markdown 返回给用户。

Profile 感知

  • 有 Profile 上下文时:
    • save 操作自动将模板绑定到当前画像
    • list 操作优先显示当前画像的模板,其他画像的模板标记为"共享"
    • use 操作自动加载画像的 style.md 做语气适配
    • 模板文件的 frontmatter 中记录 profile: {画像名称}
  • 无 Profile 上下文时:
    • 所有模板标记为 profile: shared(共享模板)
    • list 操作显示全部模板,不做画像筛选
    • use 操作不做语气适配,直接输出模板填充结果

自研溯源与参考项目见同目录 EASEL-META.md。

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Generate images from written descriptions, transform existing images with editing instructions, or create several variations. Choose image dimensions and quantity, then save the results using an OpenAI-compatible service or apimart with your own API key.

中文简介正在准备中。当前显示英语简介。

  • Generating an illustration from a written description
  • Changing an image's background using instructions
  • Creating several variations of an existing image
ZJU-REAL/Easel39312026年10月20日 更新

ai-music

免费

Generate background music for short videos, vlogs, and social posts from descriptions of mood, style, and instruments. Download MP3 audio, optionally include sung lyrics, and use shared scripts to trim tracks, adjust loudness, or add music to videos.

中文简介正在准备中。当前显示英语简介。

  • Generating background music for a vlog intro
  • Creating instrumental music to match a social post
  • Generating a sung track from supplied lyrics
ZJU-REAL/Easel39312026年10月20日 更新

Create new videos from written scene descriptions or still images using external AI services. Set the aspect ratio and duration, animate a character image, and request generated audio when the selected model supports it.

中文简介正在准备中。当前显示英语简介。

  • Generate a short video from a scene description
  • Animate a still image
  • Create character motion from a starting image
ZJU-REAL/Easel39312026年10月20日 更新

Organize generated images, videos, and text in outputs/ by date, platform, and type. Add tags, search filenames and content, produce asset lists and reports, and preview archive moves before applying them to make past work easier to reuse.

中文简介正在准备中。当前显示英语简介。

  • Organizing generated assets by date, platform, and type
  • Finding past content through keywords and tags
  • Listing assets for a specific account or platform
ZJU-REAL/Easel39312026年10月20日 更新

Reduce background noise in audio recordings or video soundtracks with three processing levels. Keep the original file, create a cleaned version, and receive a report of the settings used and file details before and after processing.

中文简介正在准备中。当前显示英语简介。

  • Reducing fan or air conditioner noise in recordings
  • Cleaning speech in podcasts and interviews
  • Reducing noise in a video's audio track
ZJU-REAL/Easel39312026年10月20日 更新

Edit audio files by trimming sections, converting formats, matching loudness, or extracting sound from videos. You can also join recordings, add fades, and change playback speed while keeping the original pitch.

中文简介正在准备中。当前显示英语简介。

  • Trim a recording to the section you need
  • Convert audio formats and match loudness
  • Extract audio from a video
ZJU-REAL/Easel39312026年10月20日 更新

查看 ZJU-REAL 的全部技能

报告此技能的问题