write-diary

Generate Chinese daily work logs from GitHub commits into Obsidian.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/BeiBei-Clic/ai-skills --skill write-diary-beibei-clic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-diary
Source: https://github.com/BeiBei-Clic/ai-skills/tree/main/write-diary
Command: npx skills add https://github.com/BeiBei-Clic/ai-skills --skill write-diary-beibei-clic

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

该 Skill 自动根据你的 GitHub 活动生成中文工作日志,按北京时间 05:00 划分“当前/前一个工作日”,更新 Obsidian 日记并提交推送到远程仓库,避免手工整理与漏记。

Core Features & Use Cases

  • 按北京时间 05:00 划分统计窗口:同时维护“当前工作日”和“前一个工作日”的两份日志,统计窗口为 05:00 到次日 05:00。
  • 覆盖私有仓库提交:通过先拉取所有仓库(含私有)再按分支查询 commits,并仅统计指定作者邮箱的提交,减少漏记风险。
  • 端到端写入与发布:同步 Obsidian 仓库到远程最新状态、更新对应日记文件的自动生成块、最后只提交两份目标日志并推送。
  • 适用场景:你每天/每两天想用 GitHub 的真实提交记录来自动生成中文日记与周边文稿,尤其当你使用私有仓库工作时。

Quick Start

让 AI 在当前环境中运行该 Skill,以北京时间 05:00 规则生成并更新你 Obsidian 的“当前工作日”和“前一个工作日”中文日志,然后提交并推送到远程仓库。

Frequently Asked Questions about write-diary

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically generate daily work logs from GitHub commits?

You can automatically generate daily work logs from GitHub commits by mapping your commit history into workday windows and writing the summaries into an Obsidian daily log file. This process requires authenticated repo access to enumerate commits across all branches.

Does this daily log generation cover commits from private repositories?

Yes, daily log generation covers private repositories by using GitHub authenticated access to pull all available repositories first. It then queries each branch for commits and filters them by your specific author email to prevent missing records.

How are workday time windows defined when syncing GitHub activity to Obsidian?

Workday time windows are defined using Beijing time from 05:00 to the next day's 05:00. This time windowing rule ensures your late-night coding sessions are correctly attributed to the current or previous workday in the generated logs.

How to update and push Obsidian daily summaries to a remote Git repository?

To update and push Obsidian daily summaries, the workflow safely syncs your local Obsidian repo to the latest remote state, atomically replaces the AUTO_DAILY_SUMMARY blocks in the daily files, and commits and pushes only those two target log files.

What is needed to start automating Chinese daily logs with GitHub and Obsidian?

To start automating Chinese daily logs, you need GitHub authenticated access for reading private repositories, an Obsidian repository synced with Git, and your specific author email configured to accurately filter multi-branch commits for the daily summaries.

Why does my automated GitHub to Obsidian daily log sync replace entire content blocks?

The automated sync replaces entire content blocks to ensure safe and atomic updates of the AUTO_DAILY_SUMMARY sections in your Obsidian files. This prevents partial overwrites and maintains file integrity while committing and pushing the two daily logs.