weekly-digests
它能做什么
这个智能体会把一个项目的历史记录整理成一份像故事一样的总结,并按周拆分。它会读取完整的历史,按周切分,为每一周写一个章节,并确保故事从一周自然地衔接到下一周。
适用场景
- ✓当你想按周查看项目总结时。
- ✓当你想像读故事一样了解项目的演变过程时。
- ✓当你需要为项目中每一周的工作分别写出独立章节时。
技能链接
https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/weekly-digests/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“为“MyProject”项目生成一份按周划分的摘要。”
每周 5 个新技能,1 分钟读完。
工作原理
它会先把整个项目的历史拆分成文件,每周一个文件。然后按时间顺序逐周阅读,利用前一周的信息接续故事,为每一周写一个章节。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Weekly Digests
Produce a serial, multi-chapter narrative digest of a project's complete claude-mem history. Differs from timeline-report (one long report) — this generates one digest per ISO week, with each subagent reading the prior week's carry-forward block so the story stays coherent.
The chapter count equals the number of ISO weeks the timeline covers. A project with 2 weeks of data produces 2 chapters; one with 30 weeks produces 30. There is no fixed length — count the weeks first, then drive the pipeline off that count.
When to Use
Trigger when the user asks for:
- "Weekly digests"
- "Week-by-week story"
- "Serial timeline"
- "Story chapters of [project]"
- "Run a digest for each week"
- "Continue the story week by week"
If the user wants a single sweeping report, use timeline-report instead. This skill is for serial chapter format.
Prerequisites
- claude-mem worker running
- Project has at least one ISO week of observations (the pipeline degenerates gracefully — even N=1 works)
- A clean output directory the user is comfortable writing into
Resolve the worker port (do this once, reuse $WORKER_PORT):
WORKER_PORT="${CLAUDE_MEM_WORKER_PORT:-$(node -e "const fs=require('fs'),p=require('path'),os=require('os');const uid=(typeof process.getuid==='function'?process.getuid():77);const fallback=String(37700+(uid%100));try{const s=JSON.parse(fs.readFileSync(p.join(os.homedir(),'.claude-mem','settings.json'),'utf-8'));process.stdout.write(String(s.CLAUDE_MEM_WORKER_PORT||fallback));}catch{process.stdout.write(fallback);}" 2>/dev/null)}"
Workflow
Step 1: Determine the Project Name
Same worktree-detection pattern as timeline-report. In a worktree, the data source is the parent project:
git_dir=$(git rev-parse --git-dir 2>/dev/null)
git_common_dir=$(git rev-parse --git-common-dir 2>/dev/null)
if [ "$git_dir" != "$git_common_dir" ]; then
parent_project=$(basename "$(dirname "$git_common_dir")")
else
parent_project=$(basename "$PWD")
fi
echo "$parent_project"
Step 2: Fetch the Full Timeline and Save It
mkdir -p .scratch
curl -s "http://localhost:${WORKER_PORT}/api/context/inject?project=PROJECT_NAME&full=true" \
> .scratch/cm-timeline.md
wc -l .scratch/cm-timeline.md
Sanity-check: confirm the file is non-empty and has the expected structure (preamble, then date headers like ### Mon DD, YYYY, then numeric observation lines <id> <time> <emoji> <title> and session boundary lines S<n> <prompt> (Mon DD at HH:MMpm)).
Step 3: Split the Timeline Into Per-ISO-Week Files
Write a Python script to .scratch/split-timeline.py that:
- Parses date headers (
### Mon DD, YYYY). - Groups days into ISO weeks via
date.isocalendar()(Monday-start). - Emits one file per week to
docs/timeline-weeks/<YYYY>-W<NN>-<MonDD>-to-<MonDD>.md, preserving each day's section verbatim. - Runs a dual-pass sanity check: total observations distributed must equal the count in the source file.
Output structure (filenames illustrative):
docs/timeline-weeks/
README.md # weekly index table
YYYY-W<NN>-MonDD-to-MonDD.md # one per ISO week the timeline covers
...
Each weekly file should preserve the original daily sections verbatim. Do not paraphrase at this stage — the digest agents need raw fidelity.
Count the resulting files before launching the pipeline. That count is TOTAL and drives every subsequent step. Empty weeks (zero observations between active weeks) should be skipped — the pipeline only operates on weeks that have content.
Step 4: Build the Weekly Index README
Write docs/timeline-weeks/README.md with a markdown table: Week | Dates | Observations | Sessions | File. This becomes the operator's roadmap and helps the agents understand pacing (peak weeks vs trough weeks).
Step 5: Run the Consecutive Subagent Pipeline
Critical: subagents run sequentially, NOT in parallel. Each agent receives the prior agent's carry-forward block. This is the entire point of the skill — without it you have N disjoint summaries; with it you have an N-chapter serial narrative.
Create the output directory:
mkdir -p docs/timeline-weeks/digests
…
常见问题
总结会有多少个章节?
章节数量正好等于项目历史中有记录活动的周数。
如果某一周没有任何活动会怎样?
没有记录活动的周会被跳过,不会生成章节,让故事只聚焦于真正发生过的事情。
为什么这些周是依次处理,而不是一次性全部处理?
这样可以保证故事的连贯性。每一周都会“接续”前一周的内容,智能体因此能够收束未完结的线索,写出一条完整的叙事线,就像实时跟踪这个项目一样。
详情
作者的原始描述
Generate a serial week-by-week narrative digest of a project's full claude-mem timeline. Splits the timeline into per-ISO-week files, then runs one consecutive subagent per week — each receiving the prior week's carry-forward block — to produce one chapter per ISO week of data. Use when asked for "weekly digests", "week-by-week story", "serial timeline", or "narrative chapters" of a project's hist
repo: thedotmack/claude-mem
热度
- GitHub 星标
- 101k
- 排名
- #1283
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
Agent Cost Report
101k让你的智能体生成其活动的详细成本报告。显示在 token 和服务上花费了多少。
claude-mem-install
101k帮助你的智能体在不同环境中设置 Claude-Mem。你可以选择使用本地或远程工作进程,并配置观察功能。
mem-search
101k让你的智能体搜索过去的记忆。适合回忆之前的解决方案,或旧会话中的工作内容。
host-observer
101k帮助你的智能体响应 Claude-Mem 观察者任务。它只能回复“skip_summary”或完整的 XML 观察记录。