Codex Handoff
Roll an oversized or slow Codex task into a fresh user-visible task with compact...
Install
npx skills add zjp1997720/zhijian-skills --skill codex-handoff -g -a claude-code -y- Repository
- zjp1997720/zhijian-skills788
- Category
- Git and review
- Updated
- 9d ago
- License
- MIT
- Context cost
- Lightabout 604 tokens
- Runs scripts
- Yes, review before use
What it does
Roll an oversized or slow Codex task into a fresh user-visible task with compact continuity. Use only for an explicit handoff or context rollover; not for ordinary continuation, delegation, full-history forks, Git migration, or handoff files.
Codex Handoff
Preconditions
- Explicit invocation approves one user-owned task. Arguments set its focus; otherwise recover the current objective from verified context.
- Require
list_projectsandcreate_thread. If unavailable, stop; do not substitute a shell command or Markdown file.
Build the continuity prompt
Write a self-contained prompt of roughly 2,000, 4,000 Chinese characters or comparable size. Prefer smaller when links carry detail. Include:
- objective and first action;
- completed work and current state;
- decisions, constraints, and material rejected alternatives;
- authoritative files, plans, issues, commits, diffs, or URLs;
- verification performed and failures observed;
- remaining work, blockers, fragile state, and transient paths;
- relevant installed Skills.
Point to authoritative artifacts instead of reproducing them. Omit transcript history, large diffs or status output, repeated reasoning, secrets, credentials, and unrelated personal information. Mark transient paths as fragile. End with: read active instructions, verify current state, and begin the first action now.
Create the fresh task
- Resolve the current saved project with
list_projects; obey project and host environment rules. Never guess another project or silently fall back to projectless. If the target omits material uncommitted state, stop and state the risk. - Call
create_threadwith the compact prompt. Omit model and reasoning overrides unless explicitly requested. - For a ready
threadId, title it withset_thread_titleand take one boundedwait_threadssnapshot; do not wait for completion. For onlyclientThreadId, report setup as queued, not running. - Return a one-line summary and the created-task directive. Claim only the returned state.
- Stop work in the old task. Keep it as history; do not archive it or keep editing the shared workspace.

