본문으로 건너뛰기
Skillpedia
글쓰기101k · #1283

weekly-digests

하는 일

이 에이전트는 프로젝트 역사를 주 단위로 나눈 이야기형 요약을 만듭니다. 전체 역사를 가져와 주 단위로 나누고, 각 주에 대한 장을 만듭니다. 이야기가 한 주에서 다음 주로 자연스럽게 이어지도록 합니다.

사용하는 경우

  • ✓주 단위로 나눈 프로젝트 요약을 원할 때.
  • ✓프로젝트가 시간에 따라 어떻게 발전했는지 이야기처럼 보고 싶을 때.
  • ✓프로젝트 작업의 주별 장이 각각 필요할 때.

스킬 링크

https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/weekly-digests/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/weekly-digests/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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:

  1. Parses date headers (### Mon DD, YYYY).
  2. Groups days into ISO weeks via date.isocalendar() (Monday-start).
  3. Emits one file per week to docs/timeline-weeks/<YYYY>-W<NN>-<MonDD>-to-<MonDD>.md, preserving each day's section verbatim.
  4. 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬