Session digest

From hua-bang/pulse-agent · View interactive version

Session digest is an AI agent skill from the GitHub repository hua-bang/pulse-agent. Summarize sessions across a multi-day range by paging session_summary in chunks, output bilingual, and write back stable soul traits.

How to use this skill

Skill file

Session Digest Skill

Summarize sessions over a long date range without blowing context by paging session_summary in windows and aggregating the results.

When to Use

Inputs (JSON)

{
  "days": 30,
  "chunkDays": 7,
  "scope": "owner",
  "includeUserMessages": true,
  "includeAssistantMessages": true,
  "maxMessagesPerSession": 120,
  "focus": "optional: emphasize PRs, configs, incidents, or product decisions",
  "format": "themes"
}

Required Execution Flow

  1. Compute totalDays from input (default 7).
  2. Compute chunkDays (default 7, clamp 1..30).
  3. For each window index i = 0..:

```json

{

"days": windowDays,

"offsetDays": offsetDays,

"scope": "owner",

"includeUserMessages": true,

"includeAssistantMessages": true,

"maxMessagesPerSession": 120

}

```

  1. Aggregate across windows:
  1. Produce bilingual output (EN + ZH) with the format below.
  2. Soul writeback (no read):

Output Format

Example:

Date Range (UTC): 2025-03-01 to 2025-03-07

EN
Overall:
- ...
- ...
Per-window:
- 2025-03-07: ...
- 2025-03-06: ...
Notable:
- ...

ZH
总体:
- ...
- ...
分段:
- 2025-03-07: ...
- 2025-03-06: ...
要点:
- ...

Output Rules

Example Invocation

/skills session-digest {"days": 30, "chunkDays": 7, "scope": "owner"}
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.