session-summary

Generate structured Chinese session summaries saved to .claude/summaries.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/Trree/ark-skills --skill session-summary-trree
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-summary
Source: https://github.com/Trree/ark-skills/tree/main/skills/session-summary
Command: npx skills add https://github.com/Trree/ark-skills --skill session-summary-trree

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires claude, python3, and includes scripts (resource) and references (resource) components.

What problem does it solve?

在 Claude Code session 结束时自动生成中文会话总结,并将其保存到 .claude/summaries/,用于记录对话历史、生成工作日志或回顾上下文。

Core Features & Use Cases

  • 自动在会话结束时生成结构化摘要并持久化到项目目录
  • 支持基于模板格式化输出,便于后续查阅与再利用
  • 提供去重机制,确保同一 session 只生成一次并可覆盖旧记录
  • 可与其他技能配合使用以增强工作流的可观察性与可追踪性
  • 适用于需要会话记录、工作日志和上下文回顾的场景

Quick Start

Trigger the session-summary skill at the end of a Claude Code session to generate and save a structured Chinese summary to the project's .claude/summaries directory.

Frequently Asked Questions about session-summary

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically generate a work log when a Claude Code session ends?

To automatically generate a work log when a Claude Code session ends, this Skill triggers via the SessionEnd hook to produce a structured Chinese summary and saves it directly to the project directory.

Can I save Claude Code conversation history to my project directory?

Yes, you can save Claude Code conversation history to your project directory. The Skill automatically stores structured context summaries as markdown files under the .claude/summaries path.

Does session-summary work with Python3 and Claude for preserving context?

Yes, session-summary works with Python3 and Claude to preserve context. It requires both dependencies to execute its scripts and generate structured conversation logs at session end.

What is the best way to keep a structured record of Claude Code conversations?

The best way to keep a structured record of Claude Code conversations is using a template-based formatting mechanism. This approach provides per-session deduplication, ensuring each session generates only one summary record.

How do I manually trigger a session summary generation in Claude Code?

You can manually trigger a session summary generation in Claude Code by using specific prompts. This invokes the Skill to process the current conversation history and output a formatted markdown file to your project.

Will duplicate conversation summaries overwrite existing work logs?

Duplicate conversation summaries are handled by a per-session deduplication mechanism. This ensures that the same session only generates a summary once, preventing duplicate work logs while allowing overwrites of old records.