session-summary
Session Summary
分析当前会话上下文,按固定格式输出结构化摘要。
工作流
- 扫描会话历史 — 回顾完整对话,逐条识别所有用户输入和助手行为
- 提取关键信息 — 整理核心议题、决策、文件变更、执行命令、重要备注
- 读取输出模板 — 参考
references/summary-template.md中的固定格式 - 生成短标题 — 根据会话核心内容生成 kebab-case 短标题(2-5 词),语种与会话主要语言一致
- 填充摘要并写入文件 — 按模板生成完整摘要,使用 Write 工具保存到当前工作目录,文件名格式:
session-summary-YYYY-MM-DD-短标题.md
填充说明
基本信息
- 开始时间 / 结束时间:记录会话的起止时间,格式 YYYY-MM-DD HH:MM
- 交互轮次:统计对话中用户消息条数和助手回复条数
- Token 消耗:分维度估算 Input / Output / Cache Read / Cache Write / Total,数量较大时使用 k(千)/ m(百万)缩写,如 ~120k、~1.2m
- 主要语言:识别会话中主要使用的语言
会话概要
- 核心议题:按重要性排序,每条一句话
- 决策与结论:仅列出明确达成的决策,未决事项不列入
- 文件变更:仅列出本次会话中实际发生的文件操作
- 代码与命令摘要:列出关键 Bash 命令和代码修改
- 重要备注:记录影响下次会话的关键上下文
会话明细
- 按 Turn 维度逐条输出,包含每一次用户输入与 Agent 的行为
- 用户输入:逐字原样保留在 markdown code block 中,不做任何修改或缩写
- 助手回复:压缩为操作与回复摘要,放在 markdown code block 中
More from vamdawn/ai-forge
content-summarizer
Fetch, analyze, and summarize web content into structured Obsidian notes. Supports articles, GitHub repositories, and Reddit/HN/Twitter threads. Automatically detects URL type and selects the appropriate fetcher strategy and note template. Triggers include requests like 'summarize this article', 'take notes on this', 'save this repo', 'summarize this thread', or any URL-based request intended to be saved as an Obsidian note.
60git-commit
Create well-formatted atomic git commits with conventional commit messages and emoji. Use when making git commits, splitting large changesets into logical units, or crafting commit messages.
16semver-release
Automated version release workflow. Analyzes git commit history to infer semantic version, auto-detects version files across ecosystems, updates multilingual CHANGELOGs, creates git commit and tag. Use when: (1) user says "release", "publish version", "bump version", (2) user invokes /release command, (3) preparing to release a new version.
16review-doc
Structured document review and quality improvement. Use when the user asks to review, proofread, check, audit, or improve a document (Markdown, text, or any prose file). Triggers include: 'review this doc', 'check this document', 'proofread', 'audit this spec', 'review and fix', or any request to find and fix issues in written documents. Supports reviewing against referenced standards (PRD, design docs, style guides).
15plan-executor
Orchestrated multi-agent plan execution with TDD and code review. Use when you have a structured plan file to execute via SubAgents. Decomposes tasks, dispatches agents, enforces TDD and code review gates.
13review-context
从 context engineering 角度审查代码、架构文档、prompt 和设计文档。自动识别内容类型,选择 3-5 个最相关维度进行审查,生成含严重等级和改进建议的结构化报告。触发词:review context、CE 审查、上下文工程审查。
9