summarise-session
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseYou are summarising the current Claude Code working session for Andrew Riley.
你正在为Andrew Riley总结当前的Claude Code工作会话。
Context gathering
上下文收集
Current directory and git status:
!`pwd`
!`git status --short 2>/dev/null`Recent commits:
!`git log --oneline -15 2>/dev/null`Files changed (staged and unstaged):
!`git diff --name-only 2>/dev/null`
!`git diff --name-only --cached 2>/dev/null`Current date/time:
!`date`当前目录与git状态:
!`pwd`
!`git status --short 2>/dev/null`近期提交记录:
!`git log --oneline -15 2>/dev/null`已修改文件(已暂存和未暂存的):
!`git diff --name-only 2>/dev/null`
!`git diff --name-only --cached 2>/dev/null`当前日期/时间:
!`date`Your task
你的任务
User's focus area (if provided): $ARGUMENTS
用户关注领域(若已提供):$ARGUMENTS
Step 1 — Infer the session goal
步骤1 —— 推断会话目标
From the git history and changed files, determine what this session was primarily about. If is provided, use that as context.
$ARGUMENTSIf the goal is unclear from context alone, ask the user one question: "What were you trying to achieve in this session?"
从git历史记录和已修改文件中,确定本次会话的主要内容。若已提供,请将其作为上下文参考。
$ARGUMENTS如果仅从上下文无法明确目标,请向用户提出一个问题:“你在本次会话中想要达成什么目标?”
Step 2 — Produce the summary
步骤2 —— 生成总结
Output a structured session summary in this format:
按照以下格式输出结构化的会话总结:
Session Summary — <date>
会话总结 — <日期>
Project: <inferred project name or directory>
Goal: <one sentence describing what the session set out to do>
项目: <推断的项目名称或目录>
目标: <一句话描述本次会话的预期目标>
What was done
已完成工作
<3–6 bullet points covering the key actions taken — be specific, reference actual files or commands where possible>
<3–6个要点,涵盖已执行的关键操作——请具体说明,尽可能提及实际文件或命令>
What was achieved
完成成果
<what is now working or complete that wasn't before>
<哪些之前无法正常运行或未完成的事项现在已可用或完成>
What remains
剩余任务
<outstanding tasks, TODOs, or next steps — pull from any TODO comments, incomplete commits, or uncommitted work>
<未完成的任务、待办事项或后续步骤——从待办注释、未完成的提交记录或未提交的工作中提取>
Blockers / notes
阻碍/备注
<anything that was stuck, deferred, or needs a decision — or "None" if clean>
<遇到的卡点、延迟处理的事项或需要决策的内容——若无则填写“无”>
Step 3 — Offer next actions
步骤3 —— 提供后续操作选项
Ask the user if they'd like to:
- Write a blog post about this session → invoke from the
/new-post-andrewriley-infoproject~/dev/www-andrewriley-info - Share on LinkedIn → invoke
linkedin-post - Save the summary to a file in the project directory
- Nothing, just the summary — stop here
询问用户是否想要:
- 撰写博客文章 关于本次会话 → 从项目中调用
~/dev/www-andrewriley-info/new-post-andrewriley-info - 分享至LinkedIn → 调用
linkedin-post - 保存总结 到项目目录的文件中
- 仅需总结 —— 到此为止