diary
它能做什么
这个系统会自动把你的开发进度记录到日记中。它会把每个项目的工作分开、有条理地保存,并同步到 Notion 和 Obsidian 等服务。
适用场景
- ✓当你想记录今天在某个项目上完成的工作时。
- ✓当你想有条理地回顾每天的进度时。
- ✓当你希望为每个项目保留独立的历史记录时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/diary/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请记录我今天在“personal-website”项目上的进度,包括对文件 X 和 Y 的修改。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会先识别你的项目名称,并把你的成果保存到该项目专属的日记文件中。然后,它会把这份日志与整体进度合并,一并发送到 Notion 和 Obsidian。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
📔 Unified Diary System
When to Use This Skill
Use this skill when you want to summarize progress, write a daily dev log, or perform a daily review while keeping project contexts isolated and synced to Notion/Obsidian.
🚨 Agent One-Shot Integrity Constraint (Highest Priority): Steps 1-4 are an indivisible atomic workflow. The AI MUST use Continuous Tool Calling to complete all actions in one breath.
- ABSOLUTELY FORBIDDEN to output conversational text and wait for the user after completing Step 1, 2, or 3.
- Example: Immediately after saving the file in Step 1, you must automatically and instantly call the terminal tool to execute the script in Step 2. Stopping to chat or asking "Should I continue?" is considered a critical error. Only inform the user explicitly if you are stuck due to a technical error.
⚠️ Ironclad Rule 1: The local project diary in Step 1 must NEVER be polluted with global data. It only records the current project. ⚠️ Ironclad Rule 2: When using tools like
run_commandto execute predefined python scripts (Step 2, Step 4), you must set them toSafeToAutoRun: trueto avoid getting stuck waiting for user authorization. ⚠️ Ironclad Rule 3: Never guess the project name. The AI must confirm the current directory name as the project identifier using a terminal command BEFORE taking any action in Step 1.
Step 1: Local Project Archiving (AI Generation)
- Action 0 (Identify): Call the terminal
pwd(Linux/Mac) or(Get-Item .).Name(Windows) to confirm the current folder name. - Action 1 (Write): Summarize the achievements from the current conversation (Git Commits, file changes, task progress), and write them into the current project folder at
diary/YYYY/MM/YYYY-MM-DD-ProjectName.md. - Isolation and Naming Rules (Ironclad Rules):
- 📄 Mandatory Filename Suffix: The local diary MUST include the project name detected just now. It is absolutely forbidden to use a global-level filename (like
2026-02-23.md) locally. - ✅ Pure Content: Only record content exclusive to the current project. Do not mix in other projects.
- 📝 Append Mode: If the project diary already exists, update it using "append", never overwrite the original content.
- 📁 Auto-Creation: Create subfolders
diary/YYYY/MM/based on the year and month. - ⚡ Force Continue: Once writing is complete, do not interrupt the conversation; immediately call the terminal tool and proceed to Step 2.
- 📄 Mandatory Filename Suffix: The local diary MUST include the project name detected just now. It is absolutely forbidden to use a global-level filename (like
Step 1.5: Refresh Project Context (Automation Script)
- Prerequisite: You have confirmed the current project directory path (from Action 0's
pwdresult). - Action: Call the terminal to execute the following command to automatically scan the project state and generate/update
AGENT_CONTEXT.md:python {diary_system_path}/scripts/prepare_context.py "<Project_Root_Path>" - SafeToAutoRun: true (Safe operation; purely reading and writing local files).
- Result:
AGENT_CONTEXT.mdin the project directory is refreshed to the latest state. - After Completion: Force continue to Step 2; do not wait for user confirmation.
Step 2: Extract Global & Project Material (Script Execution)
- Action: Call the extraction script, passing in the absolute path of the project diary just written in Step 1. The script will precisely print "Today's Global Progress" and "Current Project Progress".
- Execution Command:
python {diary_system_path}/scripts/fetch_diaries.py "<Absolute_Path_to_Step1_Project_Diary>" - Result: The terminal will print two sets of material side-by-side. The AI must read the terminal output directly and prepare for mental fusion.
Step 3: AI Smart Fusion & Global Archiving (AI Execution) 🧠
- Action: Based on the two materials printed by the terminal in Step 2, complete a seamless fusion mentally, then write it to the global diary:
{diary_system_path}/diary/YYYY/MM/YYYY-MM-DD.md. - Context Firewall (Core Mechanism):
- No Tag Drift: When reading "Global Progress Material", there may be progress from other projects. It is strictly forbidden to categorize today's conversation achievements under existing project headings belonging to other projects.
- Priority Definition: The content marked as
📁 [Current Project Latest Progress]in Step 2 is the protagonist of today's diary.
- Rewrite Rules:
…
常见问题
如果这个项目已经有日记了,会怎样?
系统会把新内容添加到已有日记中,不会删除原有内容。
什么是“Context Firewall”?
这是一条规则,确保一个项目的日记不会混入其他项目的信息,让各项目的内容相互独立、井井有条。
日记保存之后会发生什么?
AI 会把日记发送到 Notion 和 Obsidian,然后询问你是否要根据刚学到的内容更新你的综合笔记。
详情
作者的原始描述
Unified Diary System: A context-preserving automated logger for multi-project development.
热度
- GitHub 星标
- 48k
- 排名
- #6269
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。