شعار Session Recap

Session Recap

المجتمع
jbdamask
session-recap

Reconstruct where a coding session left off by reading the latest .pass-along document if one exists, then gathering context from git history, planning docs, task trackers, and past agent chat logs from any supported harness (Claude Code, Codex CLI, Amp, opencode, Grok CLI), then summarizing it as recent activity, current state, active tasks, and likely next steps. Use when the user asks "where were we?", "what were we working on?", "recap the session", "catch me up", "what did I do yesterday", or otherwise returns to a project and needs to resume. Also use when a new conversation looks like a continuation of earlier work.

نظرة عامة

الناشرjbdamask
المستودعjohn-claude-skills
اسم المهارةsession-recap
النجوم
29
التفريعات
3
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها jbdamask على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Session Recap في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/jbdamask/john-claude-skills/tree/main/plugins/john-skills/skills/session-recap
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jbdamask/john-claude-skills.git /tmp/john-claude-skills
mkdir -p .claude/skills
cp -r /tmp/john-claude-skills/plugins/john-skills/skills/session-recap .claude/skills/session-recap
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Session Recap في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Session Recap تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Session Recap بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Session Recap

Reconstruct the state of a project so the user can get back to work fast. Gather from several sources, then summarize. Do not guess — report only what you actually find.

1. Check for a pass-along first

If the previous session wrote one, it beats every other source — it carries intent, not just artifacts.

bash
ls .pass-along/*-PASS-ALONG.md 2>/dev/null | sort | tail -1

Filenames sort chronologically, so the last one is the newest. Read it in full. Then find out what changed after it was written, using the HEAD_SHA in its frontmatter:

bash
git log --oneline <HEAD_SHA>..HEAD
git status --short

If that range is empty and the tree is clean, the pass-along is still accurate — report it as described under "Surfacing a pass-along" below, and stop. Skip the rest of this skill; you're done.

If work landed after the pass-along, the pass-along is your baseline and the sources below fill the gap. Say plainly which parts of your recap came from the pass-along and which you reconstructed, since the reconstructed parts are the less reliable half.

Older pass-alongs form a chain via their PREDECESSOR field. Follow it back only when the newest one leaves a real gap — don't read the whole folder by default.

Surfacing a pass-along

You are reporting to whoever directs the next session — the user, or an orchestrating agent. Your job is to put the previous session's findings in front of them as input to a decision they own, not to act on those findings yourself.

  • Open loops (OPEN_LOOPS, the "Open threads" section): report all of them. Mark which were in scope for that session and went unfinished, versus discoveries and deferred extras.
  • RECOMMENDED_NEXT and "Recommended next": surface it, always, and attribute it — "the previous session recommended X, because Y." Carry the reasoning and any stated consequence of skipping it; that's the part the orchestrator can't reconstruct. Never restate it as your own conclusion or as a settled plan, and never start executing it. If SCOPE_COMPLETE: false, say so — unfinished in-scope work is the case where that recommendation carries the most weight.
  • ## Stated direction: if the user said something about what comes next, that outranks the recommendation. Lead with it, and name the conflict if there is one.
  • "May have moved since I stopped": turn each item into a concrete thing to verify now. Where you can check cheaply (a PR's status, a CI run), check it and report the current answer rather than the stale worry.

Then stop and let them choose. A recap that quietly adopts the previous session's plan defeats the point of writing it down.

2. Gather Context

Only if there's no pass-along, or it's stale. Run the cheap checks in parallel; stop early once you have a clear picture. Not every source exists in every project.

Git

bash
git log --oneline -10
git status
git diff --stat HEAD~5
git branch -a

Recently changed files (git diff --name-only HEAD~5) point at what was being worked on. Read the two or three most relevant ones if the commit messages aren't enough.

Planning and documentation files

Check for whichever of these exist: DEVLOG.md, CHANGELOG.md, PLAN.md, .claude/plan.md, .claude/plans/, CLAUDE.md, README.md. The devlog and plan files usually carry the most signal about intent.

Task trackers

  • TODO.md
  • .beads/ or beads.db — run bd list to see current tasks
  • .github/ — issue and PR templates, workflow context
  • .linear/ or linear.json
  • Issue references in recent commit messages (#123, JIRA-456)

Agent chat history

Do not assume the last session was Claude Code. Six harnesses keep local transcripts, and a repo can have several of them in its history. If a pass-along is present, its HARNESS and SESSION_ID name the exact one — read that and skip the search.

Fastest way to find what exists: the companion pass-along skill's gather script, which is read-only and already resolves all six. It sits beside this skill, in the same plugin:

bash
bash "<this skill's directory>/../pass-along/scripts/gather.sh"

Under Claude Code the line below works too — the plugin-root placeholder in it is replaced with an absolute path when this file loads. It is not a shell variable, and no other harness expands it; if it reaches a shell intact the path collapses to /skills/... and fails.

bash
bash "${CLAUDE_PLUGIN_ROOT}/skills/pass-along/scripts/gather.sh"

Its SESSION and OTHER_AGENT_SESSIONS blocks print a transcript: path per harness. Two bounds to know: it reports only the newest session per harness, and its codex scan stops at the 600 newest rollout files. For anything older, search by hand with the table below.

HarnessWhere this repo's sessions live (env override wins)Format
Claude Code~/.claude/projects/<cwd with / as ->/<id>.jsonl — CLAUDE_CONFIG_DIR relocates all of it; Windows %USERPROFILE%\.claudeJSONL, one record per line
Codex CLI${CODEX_HOME:-~/.codex}/sessions/YYYY/MM/DD/rollout-*-<id>.jsonlJSONL; not keyed by cwd — match on the session_meta line
Amp~/.local/share/amp/threads/T-*.json (synced), else ~/.cache/amp/logs/threads/<id>.log (live)single JSON doc; repo is in env.initial.trees[].uri
opencode$XDG_DATA_HOME/opencode/opencode.db (SQLite, ≥1.18), or OPENCODE_DB; Windows %LOCALAPPDATA%\opencode\data. Legacy installs use storage/session/*/ses_*.jsonDB: message text in part.data. Legacy: one JSON file per message, text in a separate tree
Grok CLI${GROK_HOME:-~/.grok}/sessions/<percent-encoded cwd>/<id>/chat_history.jsonlJSONL; dir name is the unquoted cwd
Cursor CLI${CURSOR_HOME:-~/.cursor}/chats/<workspace-hash>/<chat-id>/ — meta.json gives cwd and titlestore.db is SQLite; JSON blobs in a blobs table, model on providerOptions.cursor.modelName

The home directories and env overrides above are vendor-documented; the layouts inside them are not — they were read off live installs and have already moved once (opencode's JSON tree became SQLite). If a harness looks unused for a repo you know it worked in, suspect the layout before concluding there is no history. On Windows this all assumes Git Bash or WSL, and WSL sessions are a separate set from native-Windows ones.

Only two of the six are tail-able (Cursor is SQLite, like opencode). Read the tail, grep for specifics, and never dump a whole session into context.

bash
# Claude Code — newest transcript for this directory
ls -t ~/.claude/projects/$(pwd | tr '/' '-')/*.jsonl | head
tail -n 60 <file> | python3 -c '
import sys, json
for l in sys.stdin:
    try: d = json.loads(l)
    except: continue
    if d.get("type") not in ("user", "assistant"): continue
    c = (d.get("message") or {}).get("content")
    if isinstance(c, list): c = " ".join(b.get("text","") for b in c if isinstance(b, dict) and b.get("type") == "text")
    if c and str(c).strip(): print(d["type"].upper(), ":", str(c).replace("\n", " ")[:200])'

# Codex — find this repo's rollouts, then read one
grep -l "\"cwd\":\"$(pwd)\"" $(ls -t ${CODEX_HOME:-~/.codex}/sessions/*/*/*/rollout-*.jsonl | head -200) 2>/dev/null | head
tail -n 80 <rollout> | python3 -c '
import sys, json
for l in sys.stdin:
    try: d = json.loads(l)
    except: continue
    p = d.get("payload") or {}
    if p.get("type") != "message": continue
    t = " ".join(c.get("text","") for c in (p.get("content") or []) if isinstance(c, dict))
    if t.strip(): print(str(p.get("role","?")).upper(), ":", t.replace("\n", " ")[:200])'

# Grok — records key on "type", NOT "role"; "reasoning" and "tool_result" are noise
python3 -c '
import json, sys
rows = []
for l in open(sys.argv[1], errors="replace"):
    try: d = json.loads(l)
    except: continue
    if d.get("type") not in ("user", "assistant"): continue
    c = d.get("content")
    if isinstance(c, list): c = " ".join(b.get("text","") for b in c if isinstance(b, dict))
    if c and str(c).strip(): rows.append(d["type"].upper() + ": " + str(c).replace("\n", " ")[:200])
print("\n".join(rows[-30:]))' <chat_history.jsonl>

# Amp — one JSON doc; user and assistant text are both content[].text
python3 -c '
import json, sys
d = json.load(open(sys.argv[1], errors="replace"))
print("title:", d.get("title"))
for m in (d.get("messages") or [])[-20:]:
    c = m.get("content")
    if isinstance(c, list): c = " ".join(b.get("text","") for b in c if isinstance(b, dict) and b.get("type") == "text")
    if c and str(c).strip(): print(str(m.get("role","?")).upper(), ":", str(c).replace("\n", " ")[:200])' <T-*.json>

# opencode (>=1.18) — sessions live in SQLite; read it read-only
python3 -c '
import sqlite3, json, sys, os
db = os.path.expanduser("~/.local/share/opencode/opencode.db")
c = sqlite3.connect("file:%s?mode=ro" % db, uri=True, timeout=2)
for sid, d, t in c.execute("select id, directory, title from session order by time_updated desc limit 10"):
    print(sid, "|", d, "|", t)'          # pick the session whose directory is this repo
python3 -c '
import sqlite3, json, sys, os
db = os.path.expanduser("~/.local/share/opencode/opencode.db")
c = sqlite3.connect("file:%s?mode=ro" % db, uri=True, timeout=2)
for mid, data in c.execute("select id, data from message where session_id=? order by time_created desc limit 20", (sys.argv[1],)):
    m = json.loads(data)
    txt = []
    for (pd,) in c.execute("select data from part where message_id=? order by time_created", (mid,)):
        p = json.loads(pd)
        if p.get("type") == "text" and p.get("text"): txt.append(p["text"])
    if txt: print(str(m.get("role","?")).upper(), ":", " ".join(txt).replace("\n", " ")[:200])' ses_XXXX

# opencode (legacy json storage) — metadata and text are in two different trees
python3 -c '
import json, glob, os, sys
ses = sys.argv[1]  # ses_...
st = os.path.expanduser("~/.local/share/opencode/storage")
for f in sorted(glob.glob(os.path.join(st, "message", ses, "msg_*.json")), key=os.path.getmtime)[-20:]:
    m = json.load(open(f, errors="replace"))
    txt = []
    for pf in sorted(glob.glob(os.path.join(st, "part", m["id"], "prt_*.json"))):
        p = json.load(open(pf, errors="replace"))
        if p.get("type") == "text" and p.get("text"): txt.append(p["text"])
    if txt: print(str(m.get("role","?")).upper(), ":", " ".join(txt).replace("\n", " ")[:200])' ses_XXXX

Traps, all hit for real:

  • The opencode JSON storage/ tree is stale on any current install. opencode moved to SQLite around 1.18; the JSON directory is left behind at whatever version last wrote it, so reading only that tree reports "no opencode sessions" for a repo that has plenty. Check opencode.db first, and fall back to JSON only if it is absent.
  • opencode holds no text on the message record. In both layouts the words live in a separate part — part.data in the DB, storage/part/<msg_id>/prt_*.json on disk. Reading only the message record returns metadata and looks like an empty session.
  • Grok has no role field. Filter on type; reasoning records carry encrypted_content and are unreadable, so skip them rather than treating the session as opaque.
  • Amp's synced thread store lags a live session badly — the newest threads/T-*.json can be months old while a thread is running. A live thread exists only as ~/.cache/amp/logs/threads/<id>.log, which has the title and agent mode but no model.
  • Codex rollouts are date-partitioned, not cwd-partitioned. Every match requires opening files, so bound the scan and say so if you do.
  • $CLAUDE_CODE_SESSION_ID is inherited by subshells. If you shell out to inspect another harness, it is still set — do not read it as evidence about that harness.

3. Report

Four sections, tight:

  1. Recent Activity — what the last few commits and sessions accomplished
  2. Current State — branch, uncommitted changes, work in progress
  3. Active Tasks — open TODOs, beads, issues, unfinished plans
  4. Open threads — what's unfinished, unranked. If a pass-along supplied a recommendation, present it here as the previous session's view with its reasoning, clearly attributed and clearly still open. Without a pass-along, offer what the work seems to have been heading toward, labeled as your inference. Either way it's a suggestion for the orchestrator to accept or redirect — don't act on it unprompted.

Keep it short and actionable. The user wants to resume work, not read a report. If the project is new or has no history, say so plainly in a sentence.

If no pass-along existed and the session had real substance worth preserving, mention that the pass-along skill can write one at the end of this session so the next recap is a single file read instead of an excavation.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Session Recap؟

Reconstruct where a coding session left off by reading the latest .pass-along document if one exists, then gathering context from git history, planning docs, task trackers, and past agent chat logs from any supported harness (Claude Code, Codex CLI, Amp, opencode, Grok CLI), then summarizing it as recent activity, current state, active tasks, and likely next steps. Use when the user asks "where were we?", "what were we working on?", "recap the session", "catch me up", "what did I do yesterday", or otherwise returns to a project and needs to resume. Also use when a new conversation looks lik...

لماذا تستخدم Session Recap على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Session Recap عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Session Recap في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/jbdamask/john-claude-skills/tree/main/plugins/john-skills/skills/session-recap. يقرأ TypingMind ملف SKILL.md الخاص بها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Session Recap؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Session Recap؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Session Recap معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Session Recap مجانية؟

نعم. نشرها jbdamask على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇