360 Secure SkillHub
360 安全技能中心

park

读取用户名、主机名、当前目录与 coding-agent 会话 ID,输出一行说明会话主题和下一步的备注,并附上恢复该会话的 shell 命令;随后用 pbcopy、wl-copy 或 xclip 原样复制,无可用工具时注明未复制。仅识别 Codex 与 Claude Code 的会话变量。

分类:自动化
wkentaro
热度 0.00
最近更新 2026-10-23 01:01:06

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add wkentaro/agent-skills/park
兼容性
Codex 或 Claude Code 专属
联网要求
不联网
数据出网
数据不出本机
Metadata
name
park
description
Print and copy a one-line reminder and the command for resuming the current coding-agent session.
disable-model-invocation
true

Park

Output one line naming the user and computer and what this session is doing, then the command that resumes it. Report the work without continuing it or checking external services.

Read the username with id -un, the computer name with hostname -s, and the current working directory with pwd. Read the session ID and build the resume command for the agent running this skill, not for whichever variable happens to be set; a nested session can inherit its parent's variable.

Agent Session ID Resume command
Codex CODEX_THREAD_ID codex resume <session ID>
Claude CLAUDE_CODE_SESSION_ID claude --resume <session ID>

Shell-quote the directory and session ID in the command. If the session ID is unavailable or the agent is not listed, state that instead of inventing a command or falling back to --last or --continue.

Copy the note to the clipboard exactly as output, through a quoted heredoc, with pbcopy on macOS, or wl-copy or xclip -selection clipboard elsewhere. If none is available, add one line after the note saying it was not copied.

Output only this note, without an outer code fence or additional commentary:

<username>@<computer name>: <topic and next step, under 15 words>

```sh
cd <absolute working directory> && <resume command>
```