memory
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese<!-- groove:managed — do not edit; changes will be overwritten by groove update -->
<!-- groove:managed — 请勿编辑;修改内容会被groove更新覆盖 -->
memory
Memory
Two responsibilities in one skill: log (structured markdown memory files) and session (named, parallel session tracking with start/resume/end lifecycle).
一个技能兼具两项职责:日志(结构化Markdown记忆文件)和会话(支持命名、并行会话跟踪,包含启动/恢复/结束生命周期)。
Git Root Detection
Git根目录检测
Before running any command, detect the git root:
bash
git rev-parse --show-toplevelAll paths ( config value, log files) are relative to git root.
memory:运行任何命令前,先检测Git根目录:
bash
git rev-parse --show-toplevel所有路径(配置值、日志文件)均相对于Git根目录。
memory:Commands
命令
Log Commands
日志命令
| Command | Description |
|---|---|
| Write daily closeout log to |
| Roll up weekly memory from daily files |
| Roll up monthly memory from daily files |
| Write git summary to |
| 命令 | 描述 |
|---|---|
| 将每日收尾日志写入 |
| 从每日文件汇总每周工作记录 |
| 从每日文件汇总每月工作记录 |
| 将Git摘要写入 |
Session Commands
会话命令
| Command | Description |
|---|---|
| Start a new named session |
| Resume an existing active session |
| End a session and capture work done |
| Create an outcome spec |
| Create documentation |
| Review current work |
| 命令 | 描述 |
|---|---|
| 启动新的命名会话 |
| 恢复已有的活跃会话 |
| 结束会话并记录完成的工作 |
| 创建成果规格文档 |
| 创建说明文档 |
| 回顾当前工作 |
Other
其他命令
| Command | Description |
|---|---|
| Install configured sessions backend |
| 命令 | 描述 |
|---|---|
| 安装已配置的会话后端 |
$ARGUMENTS Routing
$ARGUMENTS 路由
| $ARGUMENTS | Action |
|---|---|
| → |
| → |
| → |
| → |
| → |
| → |
| → |
| → |
| → |
| → |
| → |
| → |
| → |
| (empty) | → |
| $ARGUMENTS | 操作 |
|---|---|
| → |
| → |
| → |
| → |
| → |
| → |
| → |
| → |
| → |
| → |
| → |
| → |
| → |
| (空) | → |
Bootstrap
初始化流程
If does not exist, create from before proceeding.
.groove/index.mdskills/groove/templates/index.mdIf the path does not exist, create the full directory structure:
memory:bash
mkdir -p <memory>/daily <memory>/weekly <memory>/monthly <memory>/git若不存在,需先从创建该文件,再继续后续操作。
.groove/index.mdskills/groove/templates/index.md若路径不存在,创建完整的目录结构:
memory:bash
mkdir -p <memory>/daily <memory>/weekly <memory>/monthly <memory>/gitFile Structure
文件结构
<memory>/ # default: .groove/memory/
├── daily/
│ └── YYYY-MM-DD.md
├── weekly/
│ └── YYYY-Www.md
├── monthly/
│ └── YYYY-MM.md
└── git/
└── YYYY-MM-DD-GIT-N.md
skills/memory/
├── SKILL.md
├── commands/
│ ├── log/
│ │ ├── daily.md
│ │ ├── weekly.md
│ │ ├── monthly.md
│ │ └── git.md
│ ├── session/
│ │ ├── start.md
│ │ ├── resume.md
│ │ ├── end.md
│ │ ├── spec.md
│ │ ├── doc.md
│ │ └── review.md
│ └── install.md
└── templates/
└── log/
├── daily.md
├── weekly.md
├── monthly.md
└── git.md<memory>/ # 默认路径: .groove/memory/
├── daily/
│ └── YYYY-MM-DD.md
├── weekly/
│ └── YYYY-Www.md
├── monthly/
│ └── YYYY-MM.md
└── git/
└── YYYY-MM-DD-GIT-N.md
skills/memory/
├── SKILL.md
├── commands/
│ ├── log/
│ │ ├── daily.md
│ │ ├── weekly.md
│ │ ├── monthly.md
│ │ └── git.md
│ ├── session/
│ │ ├── start.md
│ │ ├── resume.md
│ │ ├── end.md
│ │ ├── spec.md
│ │ ├── doc.md
│ │ └── review.md
│ └── install.md
└── templates/
└── log/
├── daily.md
├── weekly.md
├── monthly.md
└── git.md