一键导入
save
Mid-session checkpoint (log, database, commit, push) without closing
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Mid-session checkpoint (log, database, commit, push) without closing
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Brain package manager — install, update, list skills from registries
Project-first session management — activate, create, search projects in wiki/
Session closing (log, commit, push)
Devil's advocate — tear apart any idea, plan, or decision without mercy
| name | save |
| description | Mid-session checkpoint (log, database, commit, push) without closing |
| user-invocable | true |
| argument-hint | [note] |
Mid-Session Checkpoint - Save progress without ending the session
Alias: /checkpoint
If a log for today + current project already exists, append to it. Otherwise create new.
import os, glob
existing = glob.glob(f'diary/2026/2026-MM-DD-{project}-*.md')
if existing:
# Append: ## Checkpoint HH:MM
pass
else:
from brain_writer import create_log
create_log('YYYY-MM-DD', '{project}-checkpoint', """
## Work Done (checkpoint)
- [bullet points of work so far]
## Status
In progress - session continues
""", tags=['session', 'checkpoint', '{project}'], project='{project}')
Status: Always open (session is still active).
| What | Where it goes | Where it does NOT go |
|---|---|---|
| Current status | index.md — ONE line, REPLACE | Don't append timeline |
| Dated events | diary/YYYY/ with project tag | NOT in index.md |
| Issue tracking | {project}/issues.md | NOT in index.md |
ls -t .claude.json.backup.* 2>/dev/null | tail -n +3 | xargs rm -f 2>/dev/null
git add -A && git commit -m "Checkpoint: {project} - {brief summary}
Co-Authored-By: Claude <noreply@anthropic.com>"
git push origin $(git branch --show-current)
Quick estimate of the session SO FAR — same 4 dimensions as /bye but lighter:
Include in the checkpoint log as a brief line:
EWAF partial: E6 W7 F3 A5 — shipping features, good flow, minor friction on hooks
No database save — EWAF partial is logged in the diary only. The final /bye rating is the one that gets persisted to brain.sqlite.
~/.tmux/set-pane-title.sh "EMOJI project / phase"
Still pending:
- [item 1] — [why it's open]
- [item 2] — [why it's open]
(or: nothing pending)
Checkpoint saved
diary/2026/2026-MM-DD-project-desc.md (updated)
Project: wiki/projects/{project}/index.md (updated)
Pushed to {branch}
$ARGUMENTS