Skip to content

kkfor30/kk-sessions / skills/kk-session-tidy

kk-session-tidy

Verified

批量整理侧栏会话:按工作区地图补齐标题格式和分区,对很长且阶段明显变化的会话提出改名建议,列出需要用户手动拆出的嵌套会话和带 ⏳ 的待推进会话。用户说"整理会话""会话整理""kk-session-tidy"时使用。支持 Claude Code 桌面端和 Codex 桌面端。不用于单个新会话的归位(那是 kk-session-route),不置顶、不归档、不删除。

kk-session-tidy

输入

  • 工作区地图:~/.agent-rules/workspace-map.md(分区、标题格式、类型 emoji、嵌套规则、⏳ 规则)。先读它。
  • 六个动作和各 Agent 的做法见 kk-session-route 的「六个动作」「适配」两节,这里只用其中的列出全部会话、改标题、列出和新建分区、移入分区。

流程

  1. 列出未归档会话和分区,跳过当前会话。未归档会话超过 100 个时,默认只整理最近 30 天活动过的,先告诉用户范围,用户可以指定别的范围(如"整理全部""只整理最近 20 个")。当前 Agent 不支持列出全部会话时(如 Claude Code 命令行),说明后结束。
  2. 只看元数据(标题、分区、父会话、最后活动时间),不读聊天记录。逐个检查,只记录需要改的:
    • 标题格式:不符合 <类型emoji> <主题>|<这次做什么> 的,拟新标题;末尾已有的 ⏳ 保留。子会话沿用父会话的主题。
    • 阶段改名:会话很长(活动跨多天或轮次很多)且|后半段已明显不符合现在在做的事,拟一个新的 emoji 和后半段;主题不变。
    • 分区:没有分区的,按地图拟分区。子会话跟父会话走,不单独移动。
    • 拆出:子会话主题已和父会话不同的,列入"需要你手动拆出",写明拆出后该去的分区。
    • 待推进:列出标题带 ⏳ 的会话和最后活动时间,超过 7 天没动的标出来。用户说哪些已办完,就去掉那些标题末尾的 ⏳。
  3. 用一张表列出建议:会话、改什么、理由(一句)。当前 Agent 做不到的改动标"需手动"。没有要改的就说"侧栏已整齐"。
  4. 用户确认后,先按 kk-session-restore 的「快照」一节存快照(已有就跳过),再执行;用户事先说了"直接改"就直接执行格式和分区类改动,阶段改名仍逐条等用户确认。执行后报告改了几处。

边界

  • 不置顶、不归档、不删除:置顶由用户手动操作,归档交给应用。
  • 主题锁定:任何改名都不改主题。不改用户手动取的、已符合格式的标题;不移动用户手动放好的分区。
  • 地图里没有合适分区时,提议新分区名,等用户确认再建。
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: 471kUpdated 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