From 3be092c0ae4a1b9848faee69b733a1183011277f Mon Sep 17 00:00:00 2001 From: wangzhuc Date: Wed, 1 Apr 2026 11:47:24 +0800 Subject: [PATCH] feat(learn-theme): add SKILL.md trigger words and finalize MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add "学习排版"/"学排版" to auxiliary functions and Step 8.3 trigger table - Complete learn-theme feature: URL → extract styles → generate theme YAML Co-Authored-By: Claude Opus 4.6 (1M context) --- SKILL.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SKILL.md b/SKILL.md index 89a97d8..dc94a20 100644 --- a/SKILL.md +++ b/SKILL.md @@ -48,6 +48,7 @@ allowed-tools: - 用户说"学习我的修改" → `读取: {skill_dir}/references/learn-edits.md`。支持两种来源: - **本地修改**(默认):用户在 `output/` 的 markdown 文件中修改 - **微信草稿箱同步**:`python3 {skill_dir}/scripts/learn_edits.py --from-wechat`,自动从草稿箱拉回最新内容,与本地原文做纯文本 diff +- 用户说"学习排版"/"学排版" → `python3 {skill_dir}/scripts/learn_theme.py --name `,用户需提供一个公众号文章 URL 和主题名称。提取完成后提示用户设置 `style.yaml` 的 `theme` 字段。 - 用户说"看看文章数据" → `读取: {skill_dir}/references/effect-review.md` - 用户说"检查一下"/"自检"/"这篇文章怎么样" → 对最近一篇生成的文章(或用户指定的文章)执行自检,输出生成报告: @@ -468,6 +469,7 @@ python3 {skill_dir}/toolkit/cli.py preview {markdown} --theme {theme} --no-open | 换成 XX 主题 | 重新渲染 | | 看看文章数据 | `读取: {skill_dir}/references/effect-review.md` | | 学习我的修改 | `读取: {skill_dir}/references/learn-edits.md`。支持本地 markdown 修改和微信草稿箱同步(`--from-wechat`) | +| 学习排版 / 学排版 | `python3 {skill_dir}/scripts/learn_theme.py --name ` | | 做一个小绿书/图片帖 | `python3 {skill_dir}/toolkit/cli.py image-post img1.jpg img2.jpg -t "标题"` | | 检查一下 / 自检 / 这篇文章怎么样 | 生成报告(生成档案 + 质量检查,见辅助功能) | | 导入范文 / 建范文库 | `python3 {skill_dir}/scripts/extract_exemplar.py article.md` |