session-summary
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSession Summary
Session Summary
每次 session 结束时自动生成结构化中文总结,持久化保存到项目目录。
Automatically generate a structured Chinese summary at the end of each session, and persist it to the project directory.
触发方式
Trigger Method
通过 hook 自动触发,无需手动调用。
SessionEnd安装后需要将 hooks 配置合并到 ,详见 。
~/.claude/settings.jsonreferences/setup.md实现说明: 由于的SessionEnd类型 hook 存在静默失败 bug(anthropics/claude-code#40010), 改用agenthook 调用command,脚本内部通过scripts/summarize.sh异步完成总结。claude -p
Automatically triggered via the hook, no manual call required.
SessionEndAfter installation, you need to merge the hooks configuration into , see for details.
~/.claude/settings.jsonreferences/setup.mdImplementation Note: Since thetype hook ofagenthas a silent failure bug (anthropics/claude-code#40010), switch to theSessionEndhook to callcommand, and the script asynchronously completes the summary viascripts/summarize.shinternally.claude -p
去重机制
Deduplication Mechanism
- 同一 session 只生成一次()
once: true - 文件名包含 session_id 前 8 位,重复触发时覆写而非新建
- 对话轮数少于 3 轮自动跳过
- Only generated once for the same session ()
once: true - The file name contains the first 8 characters of session_id, and it will be overwritten instead of creating a new one when triggered repeatedly
- Automatically skipped if the number of conversation rounds is less than 3
总结格式
Summary Format
参考 ,输出 5 个字段:
templates/summary.md.template- 核心目标 — 本次 session 想解决什么
- 完成内容 — 实际做了什么,产物在哪里
- 关键决策 — 做了哪些值得记录的判断
- 待续事项 — 下次需要接着做的事
- 使用的 skill — 调用了哪些 skill
Refer to , output 5 fields:
templates/summary.md.template- Core Goal — What problem this session intends to solve
- Completed Content — What was actually done, where the outputs are located
- Key Decisions — What judgments worth recording have been made
- Pending Items — Tasks that need to be continued next time
- Skills Used — Which skills were called
手动触发
Manual Trigger
在对话中说"生成本次会话总结"即可手动触发,输出路径同自动触发。
Say "Generate a summary of this session" in the conversation to trigger manually, the output path is the same as that of automatic trigger.
Position in ark-skills
Position in ark-skills
- 公开角色:会话记录与上下文持久化
- 工作目录:
<project_root>/.claude/summaries/ - 推荐搭配:
- 配合 使用,记录每条产线的执行状态
wechat-pipeline - 配合 使用,记录每次定位决策
ai-workflow-brand
- 配合
- Public role: Conversation recording and context persistence
- Working directory:
<project_root>/.claude/summaries/ - Recommended collocations:
- Use with to record the execution status of each production line
wechat-pipeline - Use with to record each positioning decision
ai-workflow-brand
- Use with