Skip to content

kkfor30/kk-sessions / skills/kk-session-route

kk-session-route

Verified

新会话第一轮做会话归位:按工作区地图判断这次内容属于哪个分区和目录,建主题目录、切目录、按统一格式命名、归入侧栏分区。Claude Code 由启动钩子触发,先处理用户的请求、本轮结束前完成归位;Codex 的标题和分区由后台钩子自动完成,会话本身只负责把产物写到目标目录;用户说"路由一下""这个会话归到哪""重新归类"时也使用。支持 Claude Code 桌面端和 Codex 桌面端。不用于中途换话题时自动迁移;批量整理旧会话用 kk-session-tidy,首次生成地图用 kk-session-setup。

FileKindSize
SKILL.mdskill md9.0 KB
scripts/codex_route.pyscript28.3 KB
scripts/kit.pyscript979 B
scripts/restore.pyscript7.2 KB
scripts/session_start.pyscript1.8 KB
scripts/stop_check.pyscript2.8 KB
scripts/turn_hint.pyscript5.8 KB

scripts/kit.py

View on GitHub
"""把回退工具复制到 ~/.agent-rules/kk-sessions/restore/:卸载或停用插件后,用户照样能回退。

只在已有侧栏快照(kk-sessions 改过侧栏)时复制,文件没变就不动。
"""
import shutil
from pathlib import Path

HERE = Path(__file__).resolve().parent
BASE = Path.home() / ".agent-rules" / "kk-sessions"
FILES = {
    HERE / "restore.py": "restore.py",
    HERE / "codex_route.py": "codex_route.py",
    HERE.parent.parent / "kk-session-restore" / "SKILL.md": "RESTORE.md",
}


def keep_restore_kit():
    snaps = BASE / "snapshots"
    if not (snaps.is_dir() and any(snaps.glob("*.json"))):
        return
    dst = BASE / "restore"
    for src, name in FILES.items():
        out = dst / name
        try:
            if src.exists() and (not out.exists() or out.read_bytes() != src.read_bytes()):
                dst.mkdir(parents=True, exist_ok=True)
                shutil.copyfile(src, out)
        except OSError:
            pass
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