Skip to content

dongshuyan/compass-skills / skills/session-handoff-prompt

session-handoff-prompt

Verified

Create a concise continuation prompt that a fresh agent session can paste in to resume a long or degraded session. Use when the user asks for a handoff prompt, restart prompt, continuation prompt, context transfer, fresh-session resume, or a compact summary for opening a new session. Do not use for ordinary summaries, task-forest maintenance, durable user-profile updates, automatic session creation, code execution, or external publishing.

scripts/local_paths.py

View on GitHub
#!/usr/bin/env python3
"""Shared local-path detection helpers for session handoff scripts."""

from __future__ import annotations

import re


_PATH_BODY = r"[^\s`'\"\)\]]+"
_UNC_SEGMENT = r"[^\\/\s`'\"\)\]]+"

LOCAL_PATH_PATTERNS: list[re.Pattern[str]] = [
    re.compile(rf"(?<!\w)/(Users|home|Volumes|private|tmp)/{_PATH_BODY}"),
    re.compile(rf"(?<!\w)/var/folders/{_PATH_BODY}"),
    re.compile(rf"(?<!\w)/mnt/[A-Za-z]/{_PATH_BODY}"),
    re.compile(rf"(?<!\w)~/(?:\.codex|\.claude)(?:/{_PATH_BODY})?"),
    re.compile(rf"\\\\\?\\[A-Za-z]:\\{_PATH_BODY}"),
    re.compile(rf"[A-Za-z]:\\{_PATH_BODY}"),
    re.compile(rf"\\\\{_UNC_SEGMENT}(?:\\{_UNC_SEGMENT}){{1,}}"),
]


def contains_local_path(text: str) -> bool:
    return any(pattern.search(text) for pattern in LOCAL_PATH_PATTERNS)


def redact_local_paths(text: str, replacement: str = "<LOCAL_PATH>") -> str:
    for pattern in LOCAL_PATH_PATTERNS:
        text = pattern.sub(replacement, text)
    return text
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