AgentSkillsCN

session-end

以详尽的工作总结为当前会话画上圆满句号。适用于完成重要任务,或在当日工作告一段落后使用。

SKILL.md
--- frontmatter
name: session-end
description: End the current session with comprehensive summary of work done. Use when completing significant work or stopping for the day.
disable-model-invocation: true
allowed-tools: Bash(date:*),Read,Write

Context

  • Date and Time: !date -Idate -Ihours -Iminutes -Iseconds

Task

CRITICAL: NEVER modify or edit existing session content - ONLY append!

  1. Check .sessions/.current-session for the active session

  2. If no active session, inform user there's nothing to end

  3. If session exists, append a comprehensive summary including:

    • Session duration
    • Git summary:
      • Total files changed (added/modified/deleted)
      • List all changed files with change type
      • Number of commits made (if any)
      • Final git status
    • Todo summary:
      • Total tasks completed/remaining
      • List all completed tasks
      • List any incomplete tasks with status
    • Key accomplishments
    • All features implemented
    • Problems encountered and solutions
    • Breaking changes or important findings
    • Dependencies added/removed
    • Configuration changes
    • Deployment steps taken
    • Lessons learned
    • What wasn't completed
    • Tips for future developers
  4. Empty the .sessions/.current-session file (don't remove it, just clear its contents)

  5. Inform user the session has been documented

The summary should be thorough enough that another developer (or AI) can understand everything that happened without reading the entire session.