Skip to content

majiayu000/spellbook / skills/recap

回顾最近 N 天的 Claude Code 使用记录——扫描原始会话数据,按主题分组汇总"我都做了什么",并从个人操作系统视角输出模式、风险与增删建议。当用户说 /recap、"看看我这几天做了什么"、"回顾一下我最近的会话"、"这两天我用 claude 干了啥"、"活动回顾" 时使用。

FileKindSize
SKILL.mdskill md5.7 KB
scripts/extract_sessions.pyscript6.5 KB
scripts/sync_remote_sessions.shexecutablescript1018 B

scripts/sync_remote_sessions.sh

View on GitHub
#!/usr/bin/env bash
# Sync remote ~/.claude/projects session transcripts into
# ~/.claude/remote-sessions/<host>/projects so recap can scan them.
#
# Usage: sync_remote_sessions.sh <ssh-host> [<ssh-host>...]
#        RECAP_SYNC_HOSTS="starlight agentos" sync_remote_sessions.sh
set -uo pipefail

hosts=("$@")
if [ ${#hosts[@]} -eq 0 ] && [ -n "${RECAP_SYNC_HOSTS:-}" ]; then
  read -r -a hosts <<<"$RECAP_SYNC_HOSTS"
fi
if [ ${#hosts[@]} -eq 0 ]; then
  echo "usage: $0 <ssh-host>... (or set RECAP_SYNC_HOSTS)" >&2
  exit 1
fi

dest_base="$HOME/.claude/remote-sessions"
failed=0
for h in "${hosts[@]}"; do
  dest="$dest_base/$h/projects"
  mkdir -p "$dest"
  if rsync -az --timeout=30 \
      --include='*/' --include='*.jsonl' --exclude='*' \
      --prune-empty-dirs \
      "$h:.claude/projects/" "$dest/"; then
    n=$(find "$dest" -name '*.jsonl' | wc -l | tr -d ' ')
    echo "[recap-sync] $h ok: $n transcripts"
  else
    echo "[recap-sync] $h FAILED (ssh/rsync error)" >&2
    failed=1
  fi
done
exit $failed
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall