thedotmack/claude-mem/weekly-digests
Claude Code and agent skill by thedotmack/claude-mem
- community
Checking that the SKILL.md file is still in the repository.
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 history.
Install
npx vskill@latest install thedotmack/claude-mem/weekly-digestsSKILL.md
The same SKILL.md was published earlier as thedotmack/claude-mem/weekly-digests.
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):
Workflow
Step 1: Determine the Project Name
Same worktree-detection pattern as timeline-report. In a worktree, the data source is the parent project:
Step 2: Fetch the Full Timeline and Save It
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):
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:
For each week, in chronological order, dispatch a Task subagent (general-purpose) with this prompt template. Wait for each agent to complete before launching the next. Capture the carry-forward block from the result and inject it as STORY_SO_FAR into the next prompt.
Subagent Prompt Template
Narrative Budget by Observation Count
Scale narrative length proportionally to the week's volume:
| Obs count | Narrative section budget | |
|---|---|---|
| < 100 | 200–400 words | |
| 100–500 | 300–600 words | |
| 500–1,500 | 500–900 words | |
| 1,500–3,000 | 700–1,100 words | |
| 3,000+ | 800–1,300 words |
Pad these into the {BUDGET} slot of the prompt for each week.
The First Week
For Week 1, pass an empty STORY_SO_FAR_BLOCK and an instruction noting it's the origin chapter — the agent should establish initial cast, tone, and arcs for everyone after.
The Final Week
The final week gets a different ending: no carry-forward block. Instead, instruct the agent to write a ## Where We Are section (~250 words) naming what's still open at the moment of writing. Tell the agent the project is ongoing — the digest stops; the story doesn't. Don't give the story a false ending.
When N = 1 (single-week project)
Apply BOTH treatments to the same chapter: empty STORY_SO_FAR_BLOCK AND ## Where We Are instead of a carry-forward block. The agent is writing both the origin and the close in one pass. Don't reference prior or future chapters that don't exist.
Step 6: Rename Files for Sortable Order
The agents write digests with names like YYYY-W<NN>-digest.md. These already sort chronologically by ISO week (until a project crosses a year boundary inside one project name), but add a zero-padded numeric prefix so the order is unambiguous to humans browsing or scripting against the directory:
Result for N=30: 00-...md through 29-...md. For N=4: 00-...md through 03-...md. For N=120: 000-...md through 119-...md. Always zero-pad — 1-...md and 10-...md sort wrong without it.
Do NOT also prepend the order number to the digest title line inside each file. The filename prefix is for sorting; the title stays clean: # Week N (W##): Date — Subtitle.
Step 7: Report Completion
Tell the user:
- Total weeks digested (N)
- Output directory path
- Date range covered
- Any silent/trough weeks worth flagging
- A one-sentence capstone summarizing the arc — written by the final-chapter agent, or composed by the operator from the final agent's
## Where We Aresection.
Pipeline Discipline
These rules emerged from running the pipeline end-to-end. Encode them every time:
- Sequential, not parallel. The whole point is the carry-forward chain. Parallelism breaks it.
- Carry-forward is bounded. It will bloat without active pruning. Tell every agent: cap ~350 words, drop dormant arcs, drop absent cast.
- Track register evolution explicitly. The user's prompt-style across weeks is a story arc. Frustration markers shift over time (whatever they happen to be in this project's data). Name the shifts.
- Treat components as characters. Whatever recurring named systems show up in the observations are this project's villains and co-stars. Stable cast across weeks builds narrative coherence.
- Honor silence. Trough weeks (10–100 obs) are real chapters. Name what didn't happen. Don't pad.
- Don't manufacture drama. Just observe the data. If the project is reflexive, the recursion is the drama; you don't need to add more.
- Final week: no false ending. The digest stops; the project doesn't. Write
## Where We Are, not "the end."
Error Handling
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugin/skills/weekly-digests/SKILL.md
Popularity
- Repository stars
- 94,726
- Repository forks
- 8,378
- Repository npm downloads, 7 days
- 10,240
- 7-day trend score
- 80
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 26 Sep 2026, 2 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/thedotmack/claude-mem/weekly-digests)