platforms/claude/skills/orbit-session-diary/SKILL.md
Use local Codex/Claude JSONL logs as evidence, then produce a human-written daily diary summary and write it into Obsidian. Keep directory filtering (for example rag-flow/rag-recall) and avoid mechanical script-style output.
npx skillsauth add codingsamss/ai-dotfiles orbit-session-diaryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
把当天 Codex + Claude 会话日志(jsonl)作为证据输入,供助手进行人工汇总并直接写入日记正文。重点是“人写总结”,不是脚本拼装内容。
CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
SCRIPT="$CODEX_HOME/skills/orbit-session-diary/scripts/session_diary.py"
~/.codex/sessions/YYYY/MM/DD/*.jsonl~/.claude/projects/**/*.jsonlrag-flow / rag-recall(可在 references/excludes.json 扩展)。01_日记/YYYY-MM/YYYY-MM-DD.md(按月份归档)。output-mode=evidence),索引里必须包含 session_id / cwd / jsonl 文件路径 / 原话片段。jsonl 原文后再人工归纳,直接写入日记正文(主线、主题聚合、结果汇总、关联项目)。write-auto 仅用于附录或对账,不能替代正文,也不能用来替代原始会话回看。调用本 skill 的最终交付必须是“已写入日记正文”的人工总结,格式要有叙事感与关联性,不是日志拼接。
# YYYY-MM-DD 周X
> 今日主线:一句话说明当天主推进线。
## 今天做了什么
- [x] 3-6 条关键完成项(写结果,不写操作细枝末节)
## 主题聚合(核心)
### 主题 A:...
- 做了什么:...
- 输出了什么:...
- 得到什么结果:...
- 来源(可选):...
### 主题 B:...
...
## 结果汇总
- 2-4 条“结果/影响/下一步”结论句
## 关联项目
- [[项目A]]
- [[项目B]]
01_日记/_日记模板.md,确定 frontmatter 字段集合、章节命名与 callout 形式。jsonl 文件。涉及目录 >= 2 时,正文必须至少覆盖 2 条不同目录主线。[[知识库文档名]]03_研究/...、05_资讯/...)python3 "$SCRIPT" --date "$(date +%F)"
python3 "$SCRIPT" --date "$(date +%F)" --dry-run
python3 "$SCRIPT" --date "$(date +%F)" --output-mode write-auto
python3 "$SCRIPT" --date 2026-02-26
python3 "$SCRIPT" \
--vault-root "/Users/suqi3/Library/Mobile Documents/iCloud~md~obsidian/Documents/Sam's" \
--date 2026-02-26
python3 "$SCRIPT" --sources codex
python3 "$SCRIPT" --sources claude
python3 "$SCRIPT" --sources codex,claude
references/excludes.json 后再执行。--section-title 覆盖默认值 会话总结(自动)。.md,修改后需 touch "<file>"(路径含空格时必须加引号)触发 Obsidian 感知刷新。jsonl 回看 + 模板写作”,不再依赖自动分类统计。development
Query Midea MX / 美信 local message cache through the MX local HTTP query service from Codex. Use when the user asks to read MX sessions, search chat history, search messages globally or inside a group/session, list recent messages, or page message history. This is read-only and does not require send authorization. Never fall back to reading SQLite or app cache files directly.
development
Safely search MX users or groups and send Midea MX / 美信 IM messages from Codex. Use when the user asks to notify someone, send a message to a person or group, use a configured group alias, @ users, @ all, or send MX file/image messages. Read lookups need no extra authorization; every live send needs explicit user authorization for that exact target and message.
tools
MX channel output rules. Always active in MX conversations.
tools
Use the company WorkSpace `ws` CLI reliably as a delegated coding agent from Codex. Trigger when the user wants Codex to command `ws`, WorkSpace CLI, or the company opencode-derived coding tool to generate code, inspect a repo, run a bounded implementation task, or use a requested WorkSpace model while Codex reviews the output.