/jieli:handofffrom Jieli
Create a paste-ready handoff/compress prompt for continuing the current Claude Code session in a fresh agent. Use when the user says handoff, hand over, compress, compact, summarize context, continue in a new session, or pass work to another agent.
Ships in Jieli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Write a handoff document so a fresh agent can continue the work. If a Jieli thread is available, include its id and URL for optional transcript lookup.
Resolve ../../scripts/jieli_helper.mjs relative to this SKILL.md file and run:
node <resolved-skill-dir>/../../scripts/jieli_helper.mjs handoff-info
Do not enumerate plugin cache directories, choose wrapper files, or sort installed helpers in this skill.
Include Jieli thread lines only when both thread_id and url are present. If metadata is missing or invalid, continue without a thread id and do not guess from recent transcripts.
You already hold the full conversation, so write the context yourself; do not call a model or read the full transcript. If the user passed arguments, treat them as the next session focus and tailor the handoff accordingly.
Use helper metadata such as cwd, repo_url, branch, and worktree_status only when useful. Prioritize facts, files, decisions, verification, risks, and next steps that help the next agent continue.
Do not duplicate content already captured in other artifacts such as PRDs, plans, ADRs, issues, commits, or diffs. Reference them by path or URL instead.
Consider what would be useful for the next agent based on My request. Questions that may be relevant:
Extract only what matters for the request. Focus on capabilities and behavior, not file-by-file changes. Avoid excessive implementation details unless critical.
Format: plain-text bullets, no markdown headers, no code fences. Include suggested skills only when the next agent should invoke them. Use workspace-relative paths only. List at most 10 relevant files or directories, most important first. Never invent files. Never include API keys, secrets, tokens, cookies, .env contents, full transcripts, large raw logs, or sensitive private data.
If the current thread was identified, assemble:
Continuing work from thread <THREAD_ID>.
When you lack specific information, use the read thread skill to read the thread.
Relevant files: <path1>, <path2>, <path3>
Suggested skills: <skill1>, <skill2>
<goal-filtered relevant information bullets>
My request: <next goal / text after the handoff request, or the inferred open follow-up>
Write the full handoff prompt to a temp file, but do not print it in your reply. Save to Node's os.tmpdir() as handoff-<THREAD_ID>.md when a thread id exists; otherwise use a short filename-safe slug from the next goal, falling back to handoff.md. Use a safe writer such as Node so prompt content cannot break shell quoting.
Reply only with the saved path, whether a thread id was included, the relevant files count/list, and the next goal. Print the full handoff only if the user explicitly asks.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jieliapp/jieli-plugins --plugin jieli3 skills in this plugin
Other plugins' skills for the same job