copy-link
Copy and print this session's link, preferring Claude's existing Remote Control HTTPS URL. Use only when the user names copy-link.
How do I install this agent skill?
npx skills add https://github.com/wkentaro/agent-skills --skill copy-linkIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill enables copying the current Claude Code or Codex session link to the clipboard by reading local session logs. It includes security measures such as UUID validation for session IDs and regular expression checks for session identifiers.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Use the branch for the agent hosting this conversation:
- Codex: run
printenv CODEX_THREAD_IDin this session's shell. Buildcodex://threads/<returned-id>. - Claude Code: use the current session ID substituted here:
${CLAUDE_SESSION_ID}. If the placeholder is still literal, checkprintenv CLAUDE_CODE_SESSION_ID. Runpython3 scripts/claude_link.py '<id>'from this skill's directory. It returns the existing Remote Control HTTPS URL when the current session log has one, or the desktop deep link otherwise. It honorsCLAUDE_CONFIG_DIR. Read only the returned URL, not conversation contents.
This operation retrieves an existing link; it leaves Remote Control settings unchanged. On a helper error, report that the session link is unavailable.
Use a nonempty UUID from the current session. If unavailable, say the current session ID is unavailable and stop. Validate it before building or copying the URL; use only the current host's ID.
Copy the URL using the native clipboard tool when available. On macOS,
pipe printf '%s' '<url>' to pbcopy. Confirm copying only when the
clipboard command succeeds.
Respond with three short paragraphs:
Copied the session link to your clipboard.On failure or when no clipboard tool is available, useYour session link is ready. Clipboard copying was unavailable.[Open this session in Codex](<url>)or[Open this session in Claude](<url>), matching the host agent.Session ID:followed by the actual ID in inline code.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/wkentaro/agent-skills/copy-link">View copy-link on skillZs</a>