share

GitHub

将 Claude Code 会话上传至 pastila.nl 并生成加密分享链接,支持当前会话或指定会话 ID、路径及项目。

.claude/skills/share/SKILL.md ClickHouse/ClickHouse

Trigger Scenarios

用户要求分享会话 用户请求获取对话链接 用户希望发布会话记录

Install

npx skills add ClickHouse/ClickHouse --skill share -g -y
More Options

Non-standard path

npx skills add https://github.com/ClickHouse/ClickHouse/tree/master/.claude/skills/share -g -y

Use without installing

npx skills use ClickHouse/ClickHouse@share

指定 Agent (Claude Code)

npx skills add ClickHouse/ClickHouse --skill share -a claude-code -g -y

安装 repo 全部 skill

npx skills add ClickHouse/ClickHouse --all -g -y

预览 repo 内 skill

npx skills add ClickHouse/ClickHouse --list

SKILL.md

Frontmatter
{
    "name": "share",
    "description": "Share a Claude Code session to pastila.nl and return a viewer link. Shares the current session by default, or a session specified as a transcript path, a session id, or a project. Use when the user asks to share, publish, or get a link to this conversation or to a session\/transcript.",
    "allowed-tools": "Bash",
    "argument-hint": "[session: path | session-id | project]",
    "disable-model-invocation": false
}

Share a Claude session

Upload a Claude Code session transcript to pastila.nl (encrypted) and return a .claude.jsonl link that renders it like the viewer at https://github.com/ClickHouse/alexeyprompts

Steps

  1. Run the bundled helper. It lives in the same directory as this SKILL.md — use its absolute path (here this is .claude/skills/share/share.py):

    python3 <skill-dir>/share.py [session]
    
    • No argument → shares the current session (identified strictly by $CLAUDE_CODE_SESSION_ID). If that variable is unset or its transcript cannot be found, the script errors out and asks for an explicit argument rather than guessing — it never falls back to "the newest transcript", so it cannot publish an unrelated session by mistake.
    • [session] → shares another session, given as one of:
      • a path to a .jsonl transcript,
      • a session id (uuid), or
      • a project path or its ~/.claude/projects directory name (shares the newest session in it).
  2. Report the URL the script prints to the user.

The script delegates the upload to pastila.py (encryption + INSERT), so that logic is not duplicated; it then inserts the .claude.jsonl extension before the # key anchor to produce the viewer link.

Notes

  • The link contains the decryption key in its # fragment — anyone with the link can read the session. Share it only intentionally.
  • Sessions include tool calls and results (file fragments, command output). Take a quick look before sharing potentially sensitive ones.
  • pastila.py (the encryption + upload script from the pastila repo) is bundled next to share.py in this skill, so the skill is self-contained. It still needs the Python packages requests and cryptography installed.

Version History

  • 6c8e5b1 Current 2026-08-20 11:04

Same Skill Collection

.claude/skills/alloc-profile/SKILL.md
.claude/skills/bisect/SKILL.md
.claude/skills/clickhouse-pr-description/SKILL.md
.claude/skills/close-flaky-issues/SKILL.md
.claude/skills/continue-pr-auto/SKILL.md
.claude/skills/continue-pr/SKILL.md
.claude/skills/cpu-profile/SKILL.md
.claude/skills/create-test-datasets/SKILL.md
.claude/skills/create-worktree/SKILL.md
.claude/skills/decompress-binary/SKILL.md
.claude/skills/edit-changelog/SKILL.md
.claude/skills/fix-sync/SKILL.md
.claude/skills/good-prs/SKILL.md
.claude/skills/perf-comparison/SKILL.md
.claude/skills/perf-report/SKILL.md
.claude/skills/review/SKILL.md
.claude/skills/update-contrib/SKILL.md
.claude/skills/diff-review/SKILL.md
.claude/skills/double-check-perf-tests/SKILL.md
.claude/skills/investigate-ci/SKILL.md
.claude/skills/keeper-stress-analysis/SKILL.md

Metadata

Files
0
Version
e149766
Hash
f066d7f2
Indexed
2026-08-20 11:04

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-02 06:05
浙ICP备14020137号-1 $bản đồ khách truy cập$