(Linux/Mac/Windows) Use when user wants to organize scattered diary records. Triggers on「整理日记」「整理记录」「organize diary」. Parses timestamp-based records, categorizes by time, extracts health info, and generates structured diary.
| Tool | Type | Required | Install |
|---|---|---|---|
| Linux/Mac/Windows | system | Yes | Ubuntu, macOS, or Windows with WSL |
| git | cli | Yes | Linux: sudo apt install git<br>Mac: brew install git or included with Xcode<br>Windows: winget install Git.Git or download from git-scm.com |
| Python 3 | cli | Yes | Linux: sudo apt install python3<br>Mac: brew install python3 or included with macOS<br>Windows: winget install Python.Python.3 or download from python.org |
| weather-cn | skill | No | 获取天气信息的独立 skill |
| curl | cli | Yes | Linux: sudo apt install curl<br>Mac: included with macOS<br>Windows: included with Windows 10+ or install from curl.se |
Do NOT proactively verify these tools on skill load. If a command fails due to a missing tool, directly guide the user through installation and configuration step by step.
| 原则 | 说明 |
|---|---|
| 自动解析 | 识别时间戳格式(如 12:00)和内容 |
| 想法提取 | 识别"想法""感悟""思考""感想"等关键词,提取非时间戳内容 |
| 智能分类 | 按时间自动分配到上午/下午/晚上 |
| 健康提取 | 自动识别餐食、运动、喝水等健康信息 |
| 天气获取 | 自动检测城市,获取当日天气信息(默认武汉) |
| 模版框架 | 生成完整模版,未知部分留空 |
| 自动润色 | 修正错别字、优化语句流畅度 |
| 标签管理调用 | 调用 diary-tag-manager 提取标签 |
┌─────────────────────────────────────────────────────┐
│ diary-scatter-organizer 完整流程(目标 ≤5分钟) │
└─────────────────────────────────────────────────────┘
┌──────────────┐
│ 用户输入: │
│ 整理日记: │
│ [零散记录...]│
└──────┬───────┘
│
▼
┌────────────────────────────────────┐
│ 1. Git 拉取 (~10sec) │
│ git pull origin main │
└──────┬─────────────────────────────┘
│
▼
┌────────────────────────────────────┐
│ 2. 解析时间戳记录和想法 (~30sec) │
│ 提取 时间 + 内容 │
│ 识别想法部分(想法/感悟/思考) │
└──────┬─────────────────────────────┘
│
▼
┌────────────────────────────────────┐
│ 3. 检测城市并获取天气 (~30sec) │
│ 检测记录中的城市名 │
│ 调用 weather-cn 获取天气 │
│ 默认城市:武汉 │
└──────┬─────────────────────────────┘
│
▼
┌────────────────────────────────────┐
│ 4. 按时间段分类 (~20sec) │
│ 上午:06:00-12:00 │
│ 下午:12:00-18:00 │
│ 晚上:18:00-24:00 │
└──────┬─────────────────────────────┘
│
▼
┌────────────────────────────────────┐
│ 5. 提取健康信息 (~30sec) │
│ 午餐、晚餐、运动、喝水 │
└──────┬─────────────────────────────┘
│
▼
┌────────────────────────────────────┐
│ 6. 润色文本内容 (~1min) │
│ 修正错别字 │
│ 优化语句流畅度 │
└──────┬─────────────────────────────┘
│
▼
┌────────────────────────────────────┐
│ 7. AI标签提取(调用diary-tag-manager) (~1-2min) │
│ 调用 diary-tag-manager skill │
│ 使用最新的标签提取策略 │
└──────┬─────────────────────────────┘
│
▼
┌────────────────────────────────────┐
│ 7. 生成模版框架 (~1min) │
│ 填充已知部分(含天气) │
│ 未知部分留空 │
└──────┬─────────────────────────────┘
│
▼
┌────────────────────────────────────┐
│ 8. 保存到文件 (~10sec) │
│ 2026/02/02-24-Tue.md │
└──────┬─────────────────────────────┘
│
▼
┌────────────────────────────────────┐
│ 9. Git 推送 (~10sec) │
│ git add → commit → push │
└──────┬─────────────────────────────┘
│
▼
┌──────┐
│ 完成 │
└──────┘
cd ../diary
git pull origin main
Claude: 「开始前先从 Git 远程仓库拉取最新内容...」
执行:git pull origin main
输出:
✅ 拉取成功(最新)
或
⚠️ 检测到冲突,请手动解决后重试
如果成功:
Claude: 「拉取完成,现在开始整理记录。」
如果失败:
Claude: 「⚠️ Git 拉取失败,请检查网络或手动解决冲突。」
| 格式 | 示例 |
|---|---|
| HH:MM | 12:00、09:30 |
| H:MM | 9:00、8:30 |
| 关键词 | 说明 |
|---|---|
| 想法 | 单独一行或带冒号 |
| 感悟 | 单独一行或带冒号 |
| 思考 | 单独一行或带冒号 |
| 感想 | 单独一行或带冒号 |
# 时间戳记录