groove-utilities-memory-log-git
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesegroove-utilities-memory-log-git
groove-utilities-memory-log-git
Outcome
输出结果
<memory>/git/YYYY-MM-DD-GIT-N.md<memory>/git/YYYY-MM-DD-GIT-N.mdAcceptance Criteria
验收标准
- File created at with correct N
<memory>/git/YYYY-MM-DD-GIT-N.md - Content includes commits since midnight, git status, and diff stats
- N does not collide with existing files for the same date
- File is suitable for inclusion in the same commit it describes
- 在路径创建文件,且N的取值正确
<memory>/git/YYYY-MM-DD-GIT-N.md - 文件内容包含午夜以来的提交记录、git status状态以及diff统计信息
- 同一日期下N不会与已有文件重复
- 文件适合被包含在它所描述的同一次提交中
Constraints
约束条件
- Use path from
memory:frontmatter.groove/index.md - Always list existing files in before writing to determine correct N
<memory>/git/ - N starts at 1 for the first file of the day, increments for subsequent
- Git data to include:
- for commits
git log --since=midnight --oneline - for current state
git status --short - for changed files summary
git diff --stat HEAD
- Use template at for file structure
skills/groove-utilities-memory-log-git/templates/git.md - If no git changes since midnight, still write the file noting no changes
- 使用前置元数据中的
.groove/index.md路径memory: - 在写入文件前,必须先列出目录下的所有已有文件,以确定正确的N值
<memory>/git/ - 当天的第一个文件N从1开始,后续文件依次递增
- 需要包含的Git数据:
- 用于提交记录的
git log --since=midnight --oneline - 用于当前状态的
git status --short - 用于变更文件摘要的
git diff --stat HEAD
- 用于提交记录的
- 使用中的模板来构建文件结构
skills/groove-utilities-memory-log-git/templates/git.md - 即使午夜以来没有Git变更,仍需写入文件并标注无变更