AgentSkillsCN

session-update

为当前会话添加备注与进度记录。适用于追踪变更、问题或阶段性成果时使用。

SKILL.md
--- frontmatter
name: session-update
description: Add notes and progress to the current session. Use when tracking changes, issues, or accomplishments.
argument-hint: [notes]
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 if .sessions/.current-session exists to find the active session
  2. If no active session, inform user to start one with /session:session-start
  3. If session exists, append to the session file with:
    • Current timestamp
    • The update: $ARGUMENTS (or if no arguments, summarize recent activities)
    • Git status summary:
      • Files added/modified/deleted (from git status --porcelain)
      • Current branch and last commit
    • Todo list status:
      • Number of completed/in-progress/pending tasks
      • List any newly completed tasks
    • Any issues encountered
    • Solutions implemented
    • Code changes made
    • Documentation updates
    • Online resources or references used

Keep updates concise but comprehensive for future reference.

Example format:

code
### Update - 2025-06-16 12:15 PM

**Summary**: Implemented user authentication

**Git Changes**:
- Modified: app/middleware.ts, lib/auth.ts
- Added: app/login/page.tsx
- Current branch: main (commit: abc123)

**Todo Progress**: 3 completed, 1 in progress, 2 pending
- ✓ Completed: Set up auth middleware
- ✓ Completed: Create login page
- ✓ Completed: Add logout functionality

**Details**: [user's update or automatic summary]