---
id: gh-recap
name: "recap"
url: https://skills.yangsir.net/skill/gh-recap
author: rohitg00
domain: ai-agent-memory-knowledge
tags: ["agent-memory", "session-summary", "project-recap", "context-management", "ai-agent"]
install_count: 12100
rating: 4.50 (120 reviews)
github: https://github.com/rohitg00/agentmemory/tree/main/plugin/skills/recap
---

# recap

> 此技能用于总结智能体在当前项目的最近N次会话，按日期分组并突出显示关键观察结果。它能帮助用户快速回顾项目进展，理解智能体的工作上下文，从而提高决策效率和项目管理能力。特别适用于需要快速了解智能体近期活动或项目状态的场景。

**Stats**: 12,100 installs · 4.5/5 (120 reviews)

## Before / After 对比

### 项目会话回顾效率

**Before**:

在没有此技能之前，用户需要手动回顾和整理过去的项目会话记录，耗时且容易遗漏关键信息，导致对项目进展的理解不全面，决策效率低下。

**After**:

该 Skill 能自动汇总指定数量的近期智能体项目会话，按日期分组并突出显示重要观察，大幅节省回顾时间，确保信息完整性，从而提升决策质量。

| Metric | Before | After | Change |
|---|---|---|---|
| 回顾时长 | 120分钟 | 5分钟 | -95.83% |
| 信息完整度 | 50% | 95% | +90% |

## Readme

The user wants a recap. Time window args: $ARGUMENTS

## Quick start

```json
memory_sessions { "limit": 30 }
```

Then per surviving session: `memory_recall { "query": "<top concepts>", "limit": 3 }`.

Expected output:

```text
2026-06-07
  7f3a9c2 · "Auth refresh rework" · 14 obs · completed
    - [8] Rotate refresh tokens on every use
3 sessions across 2 days, 41 observations.
```

## Why

Only summarize sessions and observations the tools returned. An empty window is
a real answer, not a prompt to invent activity.

## Workflow

1. Parse `$ARGUMENTS`: `today` = current local date; `this week` = last 7 days;
   `last <n>` or bare numeric = most recent N; empty = `last 10`.
2. Call `memory_sessions`, filter to the current project (match `cwd` against the
   working directory), apply the window, sort by `startedAt` descending.
3. Group survivors by local calendar date (YYYY-MM-DD).
4. Per session list id (first 8), title or first prompt, observation count,
   status. Indent 2-3 highlights (importance >= 7) from `memory_recall`.
5. End with "N sessions across M days, K observations."

## Anti-patterns

WRONG: window is empty, so you summarize "a productive week of auth work" from
memory of the conversation.

RIGHT: "No sessions in the last 7 days for this project."

## Checklist

- Window parsed correctly from the argument.
- Sessions filtered to the current project's cwd.
- Highlights come from `memory_recall`, not paraphrase.
- Totals line reflects the actual counts shown.

## See also

- `handoff`, `session-history`, `recall`: same session data, different lens.

## Troubleshooting

See ../_shared/TROUBLESHOOTING.md if `memory_sessions` or `memory_recall` is not available.


---
*Source: https://skills.yangsir.net/skill/gh-recap*
*Markdown mirror: https://skills.yangsir.net/api/skill/gh-recap/markdown*