// This skill should be used when a user wants to create Chat Memo update release materials, specifically to generate an HTML poster and a markdown update description document for a new version release. Use this when a user says "发布新版本", "创建更新", "生成更新海报" or similar phrases, or provides version information and feature lists for a release.
| name | chatmemo-update |
| description | This skill should be used when a user wants to create Chat Memo update release materials, specifically to generate an HTML poster and a markdown update description document for a new version release. Use this when a user says "发布新版本", "创建更新", "生成更新海报" or similar phrases, or provides version information and feature lists for a release. |
This skill generates two essential marketing/documentation assets for Chat Memo version releases:
{VERSION}.html) - A visually appealing 3:4 aspect ratio poster featuring the brand logo, version information, and a list of new features/improvements{VERSION}-update.md) - A markdown document suitable for blog posts, newsletters, or social media announcementsThe generated files follow the exact format and style of existing Chat Memo release materials (e.g., 1.1.2.html and 1.1.2-update.md), ensuring brand consistency across all communications.
Key Automation Features:
project-root/update-item/logo-single.png to ensure HTML poster displays correctlyOutput file: {VERSION}.html (e.g., 1.1.2.html)
Template: assets/poster-template.html
Key features:
Variable placeholders:
{VERSION} - Version number (e.g., "1.1.2"){DATE} - Release date (e.g., "2025年12月3日"){MAIN_TITLE} - Main headline with optional line breaks{UPDATE_CARDS} - Generated HTML for feature cardsExample execution:
python3 scripts/generate_files.py \
--version 1.1.3 \
--date "2025年12月10日" \
--title "大模型支持升级\n新增 Claude 3.5 录制"
Output file: {VERSION}-update.md (e.g., 1.1.2-update.md)
Template: assets/markdown-template.md
Sections:
Variable placeholders:
{HEADLINE} - Announcement title{EXECUTIVE_SUMMARY} - Brief introduction{FEATURE_LIST} - Formatted feature listExample execution:
python3 scripts/generate_files.py \
--headline "支持 Claude 了!Chat Memo v1.1.3 发布" \
--summary "重磅功能来啦!" \
--features "🚀|新增 Claude 支持|现在可以自动保存 Claude 的对话记录了"
Collect the following information from the user:
\n for line breaksICON|TITLE|DESCRIPTIONFeature format details:
| as delimiter (pipe character)The script automatically handles directory creation and logo copying. Execute with required parameters:
python3 scripts/generate_files.py \
--version VERSION \
--date "DATE" \
--title "HEADLINE" \
--headline "MARKDOWN_TITLE" \
--summary "SUMMARY" \
--features "ICON1|TITLE1|DESC1" \
"ICON2|TITLE2|DESC2" \
"ICON3|TITLE3|DESC3"
What the script does automatically:
update-item/ directory at project-root/update-item/logo-single.png to ensure the HTML poster displays correctlyThe script produces files in <project-root>/update-item/:
{VERSION}.html - Open in a browser to verify visual appearance{VERSION}-update.md - Review content for accuracy and tonelogo-single.png - Automatically copied for the HTML posterDefault location: /Users/eze/Desktop/Chat-Memo-Project/官网/chat-memo-website/updates-pic/update-item/
Checklist:
highlight classlogo-single.png is present in output directoryIf adjustments are needed:
assets/poster-template.htmlassets/markdown-template.mdNote: For recurring style preferences, update the templates rather than individual generated files.
Custom Output Location: If you need to output to a different directory, use the --output flag:
# Custom output directory
python3 scripts/generate_files.py --output ./my-custom-dir ...
# Absolute path
python3 scripts/generate_files.py --output /path/to/output ...
When using custom output locations, the script will still automatically create the directory and copy the logo file.
Use a relaxed, friendly style:
Example of effective feature description:
🚀 新增 Kimi 平台支持
现在 Chat Memo 也能自动保存 Kimi 的对话记录了,灵感不再丢失,每一句对话都将被妥善保管。
Less effective (too formal):
新增对 Kimi 平台的支持
已完成 Kimi 平台的集成,支持自动保存功能。
Poster HTML Template: assets/poster-template.html
{VERSION}, {DATE}, {MAIN_TITLE}, {UPDATE_CARDS}assets/poster-reference.html (full 1.1.2.html example)Markdown Template: assets/markdown-template.md
{HEADLINE}, {EXECUTIVE_SUMMARY}, {FEATURE_LIST}assets/markdown-reference.md (full 1.1.2-update.md example)assets/logo-single.png
How to use: When generating an HTML poster, the logo-single.png file must be in the same directory as the generated {VERSION}.html file for the logo to display properly.
Reference: references/format-guide.md
Comprehensive documentation covering:
ICON|TITLE|DESCRIPTION)Use this when: You need to understand the full format specification or adjust the templates.
Script: scripts/generate_files.py
Capabilities:
Dependencies: Python 3.x, no external packages required
Usage:
python3 scripts/generate_files.py --help
Scenario: Creating release materials for version 1.1.3 with Claude support
发布 v1.1.3,包含功能:
1. 新增 Claude 支持 🚀
2. 搜索速度提升 3 倍 ✨
3. 修复 Gemini 重复保存问题 🔧
4. UI 优化 💅
Request additional information:
Execute generation:
python3 scripts/generate_files.py \
--version 1.1.3 \
--date "2025年12月10日" \
--title "Claude 来啦!\n还支持 30+ 种语言" \
--headline "重磅更新!Chat Memo v1.1.3 支持 Claude" \
--summary "让你所有 AI 对话都能被保存和回顾,这次我们加入了大家都在催的 Claude 支持!" \
--features "🚀|新增 Claude 3.5 支持|现在可以自动保存 Claude 的对话记录了,Anthropic 用户久等了!" \
"✨|搜索速度提升 3 倍|底层搜索算法重构,找对话再也不用等待" \
"🔧|修复 Gemini 重复保存|解决 Gemini 平台消息重复保存的问题,节省存储空间" \
"💅|UI 细节优化|调整卡片间距、优化阴影效果,视觉体验更舒适"
Verify output:
1.1.3.html in browser1.1.3-update.md contenthighlight classProvide files to user:
Error: ❌ 模板文件不存在
Solution: Ensure the script is run from the skill directory or that template files exist in the expected location.
Template directory: /Users/eze/Desktop/Chat-Memo-Project/官网/chat-memo-website/updates-pic/.claude/skills/chatmemo-update/assets
Error: ❌ 功能格式错误
Solution: Features must use format: ICON|TITLE|DESCRIPTION
Example: 🚀|新增 Kimi 支持|终于等到你!现在可以自动保存 Kimi 的对话记录了
Solution: The script uses UTF-8 encoding. Ensure your terminal supports UTF-8 for proper emoji display.
highlight class automaticallylogo-single.png from the project root to the output directory. No manual copying is required.project-root/update-item/ by defaultThe script expects logo-single.png to be located in the project root directory (the directory containing updates-pic/). The script will:
If you need to use a custom logo location, modify the get_project_root() function in scripts/generate_files.py.
After running the script, the following structure is created:
project-root/
├── updates-pic/
│ ├── .claude/
│ ├── logo-single.png # Source logo file
│ ├── 1.1.2.html # Previous releases
│ └── update-item/ # ⬅️ Generated files go here
│ ├── logo-single.png # Copied automatically
│ ├── 1.1.3.html # Generated poster
│ └── 1.1.3-update.md # Generated description
This keeps all release files organized in a dedicated directory while maintaining access to the logo file.