brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
lov-claude-account-migrateClaude 桌面版换号后,把旧账号的 Code 与 Cowork 会话复制到当前账号继续使用,并防止记录被 30 天清理; Use when switching Claude accounts, “换号后找回 session”, or to migrate Claude sessions.
Independent GitHub snapshot · Automated classification · Original documentation governs
换了 Claude 账号后,把旧账号在本机留下的 Code 会话和 Cowork 会话复制到当前 账号的侧边栏里,点开即可继续;同时识别已经丢失对话记录的空壳会话,并把记录 保留期调到足够长,避免再被自动清理。
claude --resume 跟着新路径走:交给 lov-cc-mv。claude-code-sessions/,Cowork 会话在 local-agent-mode-sessions/。换号只是换了
读取的目录,旧会话仍在磁盘上。细节见 references/desktop-storage.md。projects/ 下,所有账号共用;
Cowork 会话的对话记录在各自会话目录里的 .claude/,跟着会话目录走。cleanupPeriodDays)。被清掉的会话在侧边栏
只剩标题,无法恢复;Cowork 会话使用独立配置,不继承用户全局设置。Read skill.yaml and the shared user-profile/v1 Profile at the start of every
run, including skills.lov-claude-account-migrate.records. Supported records:
records.retention_days — preferred cleanupPeriodDays for migrated Cowork sessions.records.include_orphans — whether title-only sessions should also be copied.When the user directly states one of these as a lasting preference, save it with
scripts/profile_store.py record ... --confirm and report the saved path. Never
store emails, account UUIDs, tokens, or credentials in the Profile. See
references/user-profile.md.
Read references/skill-composition.md before routing to an adjacent capability.
lov-cc-mv and session analysis Skills are optional, separate handoffs.
export SKILL_DIR="${SKILL_DIR:-<installed lov-claude-account-migrate directory>}"
# A function, not a string variable: zsh does not word-split an unquoted $CAM.
CAM() { python3 "$SKILL_DIR/scripts/claude_account_migrate.py" "$@"; }
The script defaults to the macOS desktop data directory and to $CLAUDE_CONFIG_DIR
or the home .claude directory for transcripts. On other platforms pass
--data-dir; if the store is missing, stop and report the expected path.
CAM scan
Report per account: whether it is current, the activity date range, Code session count with how many still have transcripts, Cowork session count, and archived count. Emails are shown only when unambiguous; otherwise identify the old account by date range, counts, and a few session titles. Ask one focused question only if the source account remains ambiguous.
CAM migrate --from <old account uuid | prefix | email>
--to defaults to the desktop app's current account. Explain the plan in plain
terms: how many sessions will be copied, how many are already present, and how
many are title-only orphans. Orphans are skipped by default because they cannot
be opened or resumed; copy them only when the user wants the titles, using
--include-orphans.
CAM migrate --from <old account> --apply
The copy is additive: existing target files are never overwritten, the source account folder is never modified, and credentials or app configuration are never touched. No backup is needed for this step. Repeat Step 2 and Step 3 for each old account the user wants to keep.
to copy 0 for every org.archived-sessions.idx from each session's isArchived
flag, so archived state survives.cleanupPeriodDays is unset or 30 days or less,
tell the user that older transcripts will be deleted and recommend raising it in
the user's Claude Code settings.json; change it only with the user's consent.migrate already sets cleanupPeriodDays (default 3650) inside every copied
Cowork session. For Cowork sessions that already belong to an account:CAM retention --account current # plan
CAM retention --account current --apply # write
State, per source account: sessions copied, already present, orphans skipped or copied, Cowork retention updates, and whether the app shows them. Also state:
None beyond Python 3.9+ standard library. scripts/profile_store.py is the
standard Profile helper.
python3 scripts/validate_skill.py .