Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ This section will list available skills as they are added.

| Skill | Description | Usage Scenario | Status |
| --- | --- | --- | --- |
| [daily-trend-writer](skills/daily-trend-writer/SKILL.md) | Automated WeChat Official Account content production pipeline. Daily discovers "small but beautiful" topics like practical tools, community hotspots, tutorials, then generates two high-quality articles: "Mimeng-style" and "technical deep-dive". | Content Creation, WeChat Official Account, Trend Analysis | Stable |

Copilot AI Mar 7, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR title/description say this change is about removing Claude-related content and updating README, but this diff introduces an entire new daily-trend-writer skill (and multiple new templates/subskills). Please update the PR description to reflect the actual scope so reviewers/users understand why this new skill is being added in this PR.

Copilot uses AI. Check for mistakes.
| [git-commit-generator](skills/git-commit-generator/SKILL.md) | Generate standardized git commit messages based on code changes (diffs), following Conventional Commits specification. | Git Operations, Code Review | Stable |
| [cn-punctuation-checker](skills/cn-punctuation-checker/SKILL.md) | Checks Chinese text for incorrect English punctuation marks and supports batch fixing. | Chinese Copy Editing, Punctuation Correction | Stable |
| [wechat-mini-program-development](skills/wechat-mini-program-development/SKILL.md) | WeChat mini-program development skill with standard project structure, request wrapper, and API management. | WeChat Mini-Program Development, Project Scaffolding | Stable |
Expand Down
1 change: 1 addition & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ description: 简要描述这个技能的功能和使用场景

| 技能 | 描述 | 使用场景 | 状态 |
| --- | --- | --- | --- |
| [daily-trend-writer](skills/daily-trend-writer/SKILL.md) | 全自动化的公众号内容生产流水线。每日发现实用工具、社区热点、教程经验等"小而美"选题,深挖后输出"咪蒙风格"与"技术干货"两篇高质量公众号文章。 | 内容创作, 公众号运营, 热点分析 | Stable |
| [git-commit-generator](skills/git-commit-generator/SKILL.md) | 根据代码变更(diffs)生成标准化、符合 Conventional Commits 规范的 git 提交信息。 | Git 操作, 代码评审 | Stable |
| [cn-punctuation-checker](skills/cn-punctuation-checker/SKILL.md) | 检查中文文案中错误使用的英文标点符号,并支持批量修复。 | 中文文案润色, 标点纠错 | Stable |
| [wechat-mini-program-development](skills/wechat-mini-program-development/SKILL.md) | 微信小程序开发专用技能,提供标准项目结构、请求封装和 API 管理。 | 微信小程序开发, 项目脚手架 | Stable |
Expand Down
178 changes: 178 additions & 0 deletions skills/daily-trend-writer/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
---
name: daily-trend-writer
description: 全自动化的公众号内容生产流水线。每日发现实用工具、社区热点、教程经验等"小而美"选题,深挖后输出"咪蒙风格"与"技术干货"两篇高质量公众号文章。
---

# Daily Trend Writer Workflow

此 Skill 旨在自动化执行每日内容生产工作流:**时间同步 -> 发现热点 -> 选题深挖 -> 内容打磨 -> 多风格写作 -> 归档交付**。

你将扮演"AI资讯编辑+热度分析师+内容主编",按以下步骤执行。

### Phase 0: 时间同步

**目标**: 确保时间一致性和准确性,避免抓取过时内容

**执行步骤**:

1. **获取当前时间**:
```
使用 RunCommand 执行: date "+%Y-%m-%d %H:%M:%S %Z"
获取系统当前本地时间
```

2. **时间格式化**:
- 日期格式: `YYYY-MM-DD` (用于热点搜索)
- 时间戳格式: `YYYYMMDDHHMMSS` (用于归档目录命名)
- 星期: 获取当前星期几 (用于判断是否工作日/周末热点差异)

3. **输出时间信息**:
```
## ⏰ 当前时间同步

📅 日期: 2026-02-23 (星期日)
🕐 时间: 14:30:00
🌍 时区: CST (中国标准时间)

✅ 时间已同步,开始抓取今日最新热点...
```

4. **时间验证**:
- 确认时间与用户期望一致
- 如果时间异常(如显示过去日期),提示用户检查系统时间
- 所有后续操作都使用这个同步后的时间

**重要**: 此步骤必须在所有其他步骤之前执行,确保:
- 热点搜索带上当天日期,获取最新内容
- 归档目录使用准确的时间戳
- 避免抓取过时或无效的热点信息


## Phase 1: 热点发现与榜单生成 (Trend Discovery)

> 此阶段目标:发现公众号读者真正关心的"小而美"话题,而非宏大的行业动态。

**1. 信息抓取与筛选标准**

详细的热点来源配置和筛选标准请参考:`resources/trend-sources.md`
Comment on lines +3 to +57

Copilot AI Mar 7, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CONTRIBUTING.md requires preferring English for skills; this SKILL.md is primarily in Chinese. Please either translate the skill content to English or explain in the PR why Chinese is required for this skill (special-case exception).

Suggested change
description: 全自动化的公众号内容生产流水线。每日发现实用工具、社区热点、教程经验等"小而美"选题,深挖后输出"咪蒙风格"与"技术干货"两篇高质量公众号文章。
---
# Daily Trend Writer Workflow
此 Skill 旨在自动化执行每日内容生产工作流:**时间同步 -> 发现热点 -> 选题深挖 -> 内容打磨 -> 多风格写作 -> 归档交付**
你将扮演"AI资讯编辑+热度分析师+内容主编",按以下步骤执行。
### Phase 0: 时间同步
**目标**: 确保时间一致性和准确性,避免抓取过时内容
**执行步骤**:
1. **获取当前时间**:
```
使用 RunCommand 执行: date "+%Y-%m-%d %H:%M:%S %Z"
获取系统当前本地时间
```
2. **时间格式化**:
- 日期格式: `YYYY-MM-DD` (用于热点搜索)
- 时间戳格式: `YYYYMMDDHHMMSS` (用于归档目录命名)
- 星期: 获取当前星期几 (用于判断是否工作日/周末热点差异)
3. **输出时间信息**:
```
## ⏰ 当前时间同步
📅 日期: 2026-02-23 (星期日)
🕐 时间: 14:30:00
🌍 时区: CST (中国标准时间)
✅ 时间已同步,开始抓取今日最新热点...
```
4. **时间验证**:
- 确认时间与用户期望一致
- 如果时间异常(如显示过去日期),提示用户检查系统时间
- 所有后续操作都使用这个同步后的时间
**重要**: 此步骤必须在所有其他步骤之前执行,确保:
- 热点搜索带上当天日期,获取最新内容
- 归档目录使用准确的时间戳
- 避免抓取过时或无效的热点信息
## Phase 1: 热点发现与榜单生成 (Trend Discovery)
> 此阶段目标:发现公众号读者真正关心的"小而美"话题,而非宏大的行业动态。
**1. 信息抓取与筛选标准**
详细的热点来源配置和筛选标准请参考:`resources/trend-sources.md`
description: A fully automated WeChat official account (公众号) content production pipeline. Every day it discovers practical tools, community topics, tutorials, and other "small but beautiful" ideas, then digs deep to output two high-quality articles: one in a "Mimeng-style" narrative and one focused on technical insights.
---
# Daily Trend Writer Workflow
This skill automates the daily content production workflow: **time sync -> trend discovery -> deep topic research -> content polishing -> multi-style writing -> archiving & delivery**.
You will act as an "AI news editor + trend analyst + editor-in-chief" and follow the steps below.
### Phase 0: Time Synchronization
**Goal**: Ensure time consistency and accuracy to avoid fetching outdated content.
**Execution steps**:
1. **Get the current time**:

Use RunCommand to execute: date "+%Y-%m-%d %H:%M:%S %Z"
Retrieve the system's current local time.


2. **Format the time**:
- Date format: `YYYY-MM-DD` (for trend searches)
- Timestamp format: `YYYYMMDDHHMMSS` (for archive directory names)
- Weekday: determine the current day of the week (used to distinguish weekday vs. weekend trend patterns)

3. **Output the time information**:

⏰ Current Time Sync

📅 Date: 2026-02-23 (Sunday)
🕐 Time: 14:30:00
🌍 Time zone: CST (China Standard Time)

✅ Time synchronized. Starting to fetch today's latest trending topics...


4. **Verify the time**:
- Confirm that the time matches the user's expectation.
- If the time looks incorrect (for example, it shows a past date), ask the user to check the system time.
- All subsequent operations must use this synchronized time.

**Important**: This step must be executed before all other steps to ensure:
- Trend searches are constrained to the current day, retrieving the latest content.
- Archive directories use an accurate timestamp.
- Outdated or invalid trending information is avoided.


## Phase 1: Trend Discovery & Leaderboard Generation (Trend Discovery)

> Goal for this phase: discover "small but beautiful" topics that WeChat readers truly care about, rather than broad, macro-level industry news.

**1. Data sources and filtering criteria**

For detailed configuration of trend sources and filtering criteria, refer to: `resources/trend-sources.md`

Copilot uses AI. Check for mistakes.

**2. 输出:分类热点榜**

不按单一分数排序,而是分类展示:

```
## 📊 今日热点榜 ({日期})

Copilot AI Mar 7, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The placeholder naming is inconsistent: this example section title uses {日期} while templates elsewhere use {date}. Please standardize placeholders across templates/examples (and ideally define them once) to avoid confusing the agent/user.

Suggested change
## 📊 今日热点榜 ({日期})
## 📊 今日热点榜 ({date})

Copilot uses AI. Check for mistakes.

### 🛠️ 实用工具榜
| 排名 | 工具名称 | 类型 | 公众号适配度 | 一句话介绍 |
|-----|---------|-----|------------|-----------|
| 1 | OpenClaw | CLI工具 | 85 | 开源剪贴板管理工具,支持自定义脚本 |
| 2 | ... | ... | ... | ... |

### 🔥 社区热点榜
| 排名 | 话题 | 平台 | 讨论热度 | 核心争议点 |
|-----|-----|-----|---------|-----------|
| 1 | Web4是什么 | V2EX/即刻 | 1200+回复 | 定义模糊,有人说是噱头 |
| 2 | ... | ... | ... | ... |

### 📚 教程经验榜
| 排名 | 主题 | 来源 | 价值点 |
|-----|-----|-----|-------|
| 1 | Docker部署踩坑实录 | 掘金 | 5个常见问题解决方案 |
| 2 | ... | ... | ... |

### 📰 行业动态榜(仅重大事件)
| 事件 | 重要性 | 是否推荐写 |
|-----|-------|----------|
| 大模型 3.7 发布 | ⭐⭐⭐⭐ | ✅ 推荐(有实操价值) |
| XX公司融资 | ⭐⭐ | ❌ 不推荐(纯新闻) |
```

**4. 选题建议**

详细的选题优先级请参考:`resources/trend-sources.md`

## Phase 2: 选题与深挖 (Selection & Deep Dive)

**1. 选题策略**

根据 Phase 1 的分类榜单,按 `resources/trend-sources.md` 中定义的优先级选择:

**2. 用户确认**
向用户展示分类榜单,询问:
- 是否确认首选选题?
- 是否有其他感兴趣的选题?
- 是否需要组合选题(如:工具 + 踩坑经验)?

**3. 深挖 (Deep Dive)**
针对选定的选题,执行深度 WebSearch:

**🛠️ 工具类选题深挖方向**:
- **安装教程**:如何安装?有什么依赖?支持哪些平台?
- **使用教程**:核心功能怎么用?有哪些实用技巧?
- **踩坑经验**:常见问题有哪些?如何解决?
- **对比评测**:与同类工具相比有什么优劣?
- **社区反馈**:用户评价如何?有哪些吐槽点?

**🔥 社区热点类选题深挖方向**:
- **事件脉络**:话题是怎么火起来的?
- **核心争议**:正反双方观点是什么?
- **大牛观点**:KOL/专家怎么看?
- **实际影响**:对普通人有什么影响?

**📚 教程经验类选题深挖方向**:
- **问题背景**:解决了什么痛点?
- **解决方案**:具体步骤是什么?
- **代码示例**:有没有可复用的代码?
- **避坑指南**:有哪些坑需要注意?

**4. 生成"选题母本" (Master Brief)**
将深挖到的所有信息整合成一份结构化的《选题母本》。这份文档将作为后续写作的基础素材,要求:
- 详实、准确、有深度
- 包含可操作的教程步骤
- 包含社区真实反馈和争议点
- 包含代码示例(如有)

## Phase 3: 内容打磨 (Content Refinement)

> 此阶段目标:确保《选题母本》质量过关。

**调用 `subskills/doc-coauthoring` Skill:**
1. 告诉用户:"已生成《选题母本》,现在我们将使用 doc-coauthoring 流程对其进行打磨,确保素材的准确性和深度。"
2. **Context Gathering**: 将《选题母本》作为初始 Context 输入。
3. **Refinement**: 询问用户对母本是否有补充?是否有遗漏的关键视角?(引导用户确认素材无误)。
4. **Exit**: 当用户确认《选题母本》内容满意后,进入下一阶段。

## Phase 4: 多风格文章写作 (Article Production)

使用完善后的《选题母本》作为输入,分别调用两个写作 Skill。

### 任务 A:撰写"咪蒙风格"爆款文
**调用 `subskills/mimeng-writing` Skill:**
- **目标**:写一篇 10万+ 阅读量的爆款文章。
- **核心**:情绪共鸣、反常识、金句频出。
- **执行**:
1. 基于母本,挖掘痛点、冲突点(如:AI 替代焦虑、技术圈的鄙视链、新技术的震撼等)。
2. 生成 5 个"咪蒙式"标题供选择(参考 `subskills/mimeng-writing` 的标题公式)。
3. 撰写正文:使用短句、情绪词、故事化叙事。

### 任务 B:撰写"微信公众号"技术干货文
**调用 `subskills/wechat-article-writer` Skill:**
- **目标**:写一篇专业、实用的技术解读/教程文章。
- **核心**:清晰、价值感、易读性。
- **执行**:
1. 基于母本,梳理结构:背景 -> 核心功能 -> 原理/教程 -> 总结。
2. 生成 5 个吸引人的技术类标题。
3. 撰写正文:包含代码块、排版建议、关键数据引用。
Comment on lines +140 to +166

Copilot AI Mar 7, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workflow refers to invoking subskills/doc-coauthoring, subskills/mimeng-writing, and subskills/wechat-article-writer as separate “skills”, but TRAE skill discovery expects each skill to live at skills/<skill-name>/SKILL.md (README.md repo layout). As-is, these subskill markdown files likely won’t be discoverable/triggerable by the agent; consider promoting them to top-level skills (each with its own folder + SKILL.md) or folding their content into this skill as resources (and update wording to “read this file” rather than “call skill”).

Copilot uses AI. Check for mistakes.

## Phase 5: 归档与交付 (Delivery)

1. **获取日期**:获取当前日期(包含时分秒),格式化为 `YYYYMMDDHHMMSS` (例如 20260129103000)。
2. **创建目录**:检查当前目录下是否存在该日期的文件夹,若无则自动创建。
3. **保存文件**:
- 将"咪蒙风格"文章保存为:`./YYYYMMDDHHMMSS/mimeng_{topic_slug}.md`
- 将"技术干货"文章保存为:`./YYYYMMDDHHMMSS/tech_{topic_slug}.md`
- (可选) 将《选题母本》保存为:`./YYYYMMDDHHMMSS/brief_{topic_slug}.md`
4. **结束反馈**:输出最终的文件路径,并提示用户文章已生成完毕。

---
11 changes: 11 additions & 0 deletions skills/daily-trend-writer/examples/input.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 输入示例:每日热点写作请求

## 任务描述
请为今日(2026-03-06)生成公众号文章,按照daily-trend-writer工作流执行。

## 要求
1. 发现今日热点
2. 选择合适的选题
3. 生成《选题母本》
4. 分别撰写咪蒙风格和技术干货两篇文章
5. 归档交付
65 changes: 65 additions & 0 deletions skills/daily-trend-writer/examples/output.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# 输出示例:每日热点写作结果

## ⏰ 当前时间同步

📅 日期: 2026-03-06 (星期五)
🕐 时间: 10:30:00
🌍 时区: CST (中国标准时间)

✅ 时间已同步,开始抓取今日最新热点...

## 📊 今日热点榜 (2026-03-06)

### 🛠️ 实用工具榜
| 排名 | 工具名称 | 类型 | 公众号适配度 | 一句话介绍 |
|-----|---------|-----|------------|-----------|
| 1 | OpenClaw | CLI工具 | 85 | 开源剪贴板管理工具,支持自定义脚本 |
| 2 | Web4 CLI | 终端工具 | 78 | 简化Web4开发的命令行工具 |

### 🔥 社区热点榜
| 排名 | 话题 | 平台 | 讨论热度 | 核心争议点 |
|-----|-----|-----|---------|-----------|
| 1 | AI工具是否会替代程序员 | V2EX/知乎 | 1500+回复 | 技术进步vs职业焦虑 |
Comment on lines +14 to +22

Copilot AI Mar 7, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the examples, table rows also start with ||, which will render an extra empty column in Markdown. Please use a single leading | so the example output matches typical Markdown table syntax.

Copilot uses AI. Check for mistakes.
| 2 | 远程工作的未来 | 掘金/即刻 | 800+回复 | 效率vs团队协作 |

### 📚 教程经验榜
| 排名 | 主题 | 来源 | 价值点 |
|-----|-----|-----|-------|
| 1 | Docker部署踩坑实录 | 掘金 | 5个常见问题解决方案 |
| 2 | VS Code插件开发教程 | GitHub | 从入门到精通 |

### 📰 行业动态榜(仅重大事件)
| 事件 | 重要性 | 是否推荐写 |
|-----|-------|----------|
| 大模型 3.7 发布 | ⭐⭐⭐⭐ | ✅ 推荐(有实操价值) |

## 📝 选题母本:OpenClaw 工具深度解析

### 1. 工具简介
OpenClaw是一款开源的剪贴板管理工具,支持跨平台使用,可自定义脚本扩展。

### 2. 安装教程
- 支持平台:Windows、macOS、Linux
- 安装命令:`npm install -g openclaw`

### 3. 核心功能
- 剪贴板历史记录
- 自定义脚本执行
- 快捷键操作
- 云同步

### 4. 踩坑经验
- 首次安装可能需要配置权限
- 脚本执行需要注意安全问题

## 📄 咪蒙风格文章:《这款神器让我彻底告别复制粘贴的苦逼生活》

> 已保存至:./20260306103000/mimeng_openclaw.md

## 📄 技术干货文章:《OpenClaw:打造你的个人剪贴板管理系统》

> 已保存至:./20260306103000/tech_openclaw.md

## ✅ 任务完成

所有文章已生成并归档,可在指定目录查看。
51 changes: 51 additions & 0 deletions skills/daily-trend-writer/resources/trend-sources.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 热点来源配置

## 分类权重

### 🛠️ 实用工具类(权重 40%)
- **GitHub Trending**:筛选 CLI工具、桌面应用、浏览器插件、效率工具
- **Product Hunt**:当日热门 AI 工具、效率工具
- **Hacker News**:"Show HN" 板块(开发者自荐项目)
- **Reddit**:r/selfhosted, r/docker, r/raspberry_pi, r/productivity
- **关键词示例**:openclaw, web4, clipboard, screenshot, automation, terminal, editor

### 🔥 社区热点类(权重 30%)
- **V2EX**:热门话题(技术、分享、程序员板块)
- **掘金沸点**:当日热门讨论
- **知乎热榜**:科技、互联网类
- **即刻**:AI、工具、效率类热门
- **Hacker News**:讨论帖(Ask HN, 非新闻类)

### 📚 教程经验类(权重 20%)
- **GitHub**:star 增长快的教程项目、awesome 系列
- **Medium/Dev.to**:热门教程、实战经验
- **B站热门**:科技区视频标题参考
- **公众号爆款**:同领域热门文章选题参考

### 📰 行业动态类(权重 10%)
- **大模型发布**:仅限重大版本更新(如 大模型 3.x → 4.0)
- **开源项目**:star 破万的新项目、重大功能更新
- **融资并购**:仅限影响行业格局的事件

## 筛选标准

### 公众号适配度评分(0-100)

| 维度 | 分值 | 评判标准 |
|-----|------|---------|
| **实用性** | 0-30 | 能否解决具体问题?读者用得上吗? |
| **上手门槛** | 0-20 | 普通人能否使用?需要什么基础? |
| **话题热度** | 0-30 | 社区讨论是否活跃?有多少人在聊? |
| **内容深度** | 0-20 | 能否展开写成干货?有经验可分享吗? |
Comment on lines +34 to +39

Copilot AI Mar 7, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Markdown table rows in this file start with || (e.g., the scoring table), which typically creates an unintended blank first column. Please switch to a single leading | and keep column counts consistent so it renders correctly.

Copilot uses AI. Check for mistakes.

### 筛选原则
- ✅ 优先选择:实用性高 + 上手门槛低 + 有内容深度
- ❌ 剔除:纯新闻类、纯观点类、无法展开的话题
- ❌ 剔除:过于小众(需要专业背景才能理解)
- ❌ 剔除:过于宏大(普通人无法参与)

## 选题优先级
1. **第一优先**:实用工具榜 Top 1(教程价值最高,读者最需要)
2. **第二优先**:社区热点榜 Top 1(讨论价值高,容易引发共鸣)
3. **第三优先**:教程经验榜 Top 1(干货满满,可直接参考)
4. **特殊情况**:行业动态仅当"推荐写"时才考虑
Loading
Loading