weekly-digests
ما الذي تفعله
ينشئ هذا الوكيل ملخصًا على شكل قصة لتاريخ المشروع، مقسّمًا أسبوعًا بأسبوع. يأخذ التاريخ كاملًا ويقسمه إلى أسابيع، وينشئ فصلًا لكل أسبوع، مع ضمان أن تتدفق القصة من أسبوع إلى الذي يليه.
متى تستخدمها
- ✓عندما تريد ملخصًا للمشروع مقسّمًا حسب الأسابيع.
- ✓لرؤية تطور المشروع عبر الزمن، كقصة.
- ✓إذا احتجت إلى فصول منفصلة لكل أسبوع من العمل على المشروع.
رابط المهارة
https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/weekly-digests/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أنشئ ملخصًا أسبوعيًا لمشروع 'MyProject'.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يقسّم أولًا تاريخ المشروع كاملًا إلى ملفات، ملف لكل أسبوع. ثم يقرأ كل أسبوع بالترتيب، مستخدمًا المعلومات من الأسبوع السابق لمتابعة القصة، وينشئ فصلًا لكل أسبوع.
المحتوى التقني (ملف 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
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
Agent Cost Report
101kيجعل وكيلك ينشئ تقارير تكلفة مفصلة لأنشطته. يوضح ما أُنفق على الرموز والخدمات.
claude-mem-install
101kيساعد وكيلك على إعداد Claude-Mem في بيئات مختلفة. يتيح اختيار عامل محلي أو بعيد وضبط المراقبة.
mem-search
101kيتيح لوكيلك البحث في الذكريات السابقة. مفيد لاسترجاع الحلول السابقة أو العمل من الجلسات القديمة.
host-observer
101kيساعد وكيلك على الاستجابة لمهام مراقب Claude-Mem. ينبغي أن يرد فقط بـ«skip_summary» أو بملاحظة XML كاملة.
مهارات مشابهة
obsidian-vault-maintainer
394kيساعد وكيلك على الحفاظ على خزنة ذاكرة متوافقة مع Obsidian، بروابط ويكي تعمل وخصائص متسقة وأقسام آلية آمنة.
wiki-maintainer
394kيساعد وكيلك على صيانة ويكي ذاكرة OpenClaw بصفحات قابلة للتكرار وكتل مُدارة آمنة، مع فحص التناقضات والثغرات.
obsidian
394kيتيح لوكيلك قراءة ملاحظات Obsidian ومهامها وروابطها وخصائصها والبحث فيها وإنشاؤها وتعديلها، عبر سطر أوامر Obsidian الرسمي.