session-crosslink
БесплатноБез исполняемых скриптовНе проверенUse when an agent session ran outside the repo whose commits should record it — e.g. launched from a higher-level folder, a non-Entire repo, or one repo but…
от entireio★ 242 звезды на GitHubОб этом скилле
Session Crosslink
Response Format
Begin the first response to this skill invocation with the line:
Entire Session Crosslink:
followed by a blank line, then the content. Apply the header to the first response of the invocation only, not on follow-up turns and not on error / early-exit responses (no session resolved, no affected repos found, a CLI older than 0.11.5, an unrecognized plan).
STOP — Read these rules before doing ANYTHING
- Do NOT ask clarifying questions until the resolver/discovery steps have run. The session id and candidate repo list usually resolve from
entire session current --jsonplus what the user said. Only ask if both come back empty. - Do NOT run
entire session attach --forcewithout showing the preview table first. The whole point of this skill is preview-then-confirm.attachcan amend the target repo's HEAD; previewing wrong means amending the wrong commit. - Always
cdinto the target repo before runningentire session attach. The CLI resolves the repo from cwd. Use onecd … && GIT_TERMINAL_PROMPT=0 entire session attach …per call so each invocation hits the right repo. - Run every
entire session attachwithGIT_TERMINAL_PROMPT=0, and stop on output you don't recognize. Some agents run shell commands in a pseudo-terminal, where attach without--forceasksContinue?and waits instead of printing its plan.GIT_TERMINAL_PROMPT=0tells the CLI not to prompt. If a preview matches none of the shapes in Step 3, or attach prompts anyway, stop: answer nothing, run no--forcein any repo, and show the user what attach printed.
Required CLI: entire 0.11.5+, for the resolution field of entire session current --json and for entire session attach printing its plan without changing anything until --force. The flow checks the version first. The plan shapes in Step 3 match 0.12.2 and the 0.12.3 nightly of 2026-11-05.
Flow
Run entire version first. If it reports a version older than 0.11.5, stop and ask the user to upgrade: those releases write the checkpoint as soon as attach runs, before asking anything, so the Step 3 preview would attach the session everywhere without the user's go-ahead. If you can't tell the version, ask the user before running attach.
Step 1: Resolve the session id
Try each strategy in order until one returns a session id.
Strategy A: Entire-enabled cwd.
entire session current --json
If the output is valid JSON and has a non-empty session_id, check resolution before using it. Attach acts on the session, so the session must be this agent's own:
caller-envorancestry→ it is this agent's session. Readsession_idandagentand continue.worktreeorcaller-ambiguous→ it is a guess (the most recent session here, or one of several claimants). Continue only if the user confirms it, and label it as inferred in the Step 4 preview table.other-worktree→ it belongs to another worktree. Treat Strategy A as failed and fall through to B.
If the JSON parses but session_id is missing or empty, treat Strategy A as failed and fall through to B — don't proceed to attach with no session id.
With --json, a missing session prints nothing on stdout and exits non-zero. Outside a git repository, stderr only says not a git repository: fall through to B. When this agent's own session is not tracked, stderr says This command is running inside <agent> session <id>, but Entire has no session state for it. That <id> is this session's id and is exactly what entire session attach needs. If stderr instead says several sessions claim the command, do not pick one: fall through to B.
Strategy B: Entire-enabled repo the user named. If the user named a repo, or a folder of repos, cd into one of those repos that has a .entire/settings.json and rerun entire session current --json. Read the result with Strategy A's rules, including the stderr line: inside a repo, the CLI can name the calling session even when it has no state for it. The session state lives wherever the session was tracked.
Strategy C: Runtime-specific transcript directory. If neither A nor B works, the session was never recorded by Entire and you must read it from the agent runtime:
- Claude Code: transcripts live at
~/.claude/projects/<encoded-cwd>/<session-id>.jsonl. Encoded cwd is the launch directory with/→-. The most recent.jsonlfile directly in the project directory matching the agent's launch cwd is this session; skip subfolders such as<session-id>/subagents/, which hold subagent transcripts. Read the basename minus.jsonlassession_id. Setagenttoclaude-code. - Codex: check
$CODEX_HOME/sessions/or~/.codex/sessions/. Setagenttocodex. - Other runtimes: ask the user for the session id.
Record agent as the CLI's name for the agent, so Steps 3 and 5 can pass --agent <name> to attach. The JSON agent field and the stderr lin
Установить session-crosslink в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл session-crosslink?
Use when an agent session ran outside the repo whose commits should record it — e.g. launched from a higher-level folder, a non-Entire repo, or one repo but editing another — to attach the session to each affected Entire-enabled repo's HEAD commit.
Как установить скилл session-crosslink?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл session-crosslink запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic