Docs / Claude Code Skill

Share a Claude Code conversation as a public preview page

Install the optional share-claude-code-chat skill, render local Claude Code JSONL conversations as high-fidelity HTML pages, and deploy them to PreviewShip as public URLs.

Updated 2026-07-08Built for SEO and GEO citation workflows

Answer First

The share-claude-code-chat skill is a companion workflow for Claude Code conversations. It reads local Claude Code JSONL history, reconstructs visible user and assistant messages, keeps tool activity in readable collapsible timelines, hides reasoning text and unsafe raw tool outputs, then deploys the generated HTML with PreviewShip so teams can share research trails, implementation records, and review context.

Deploy build artifacts, not source-code zips.

If you upload a zip, build the project first and zip the static output folder such as dist, build, out, or public with index.html and assets. Do not zip raw React/Vue/Next source folders with package.json and node_modules. Single .html files are supported directly by console upload, pasted HTML, CLI, MCP, and the VS Code/Cursor extension.

Key takeaways

This is an optional conversation-sharing workflow, not a requirement for normal PreviewShip deploys.
It targets Claude Code local JSONL history and handles Claude Code event shapes separately from Codex transcripts.
Tool activity is preserved as readable, collapsible timelines near the relevant assistant message.
Reasoning text, raw tool outputs, attachments, and secret-looking values are filtered or summarized before sharing.

Recommended workflow

1

Install globally with `npx skills add blockdancez/PreviewShip --skill share-claude-code-chat -a codex -g --yes`, or install locally from a project root without `-g`.

2

Make sure PreviewShip CLI is authenticated with `npx previewship login`, or set `PREVIEWSHIP_API_KEY` for the environment.

3

In Codex, run `$share-claude-code-chat 分享 Claude Code 对话` and choose the current or target Claude Code conversation.

4

Review the generated HTML page, especially if the Claude Code session touched private repos, customer context, screenshots, or credentials.

5

Share the PreviewShip URL returned by the skill.

Comparison snapshot

Questionshare-claude-code-chat skillNormal PreviewShip deploy
Primary inputClaude Code JSONL conversation historyHTML, Markdown, or static build output
Best forSharing agent research and tool tracesSharing frontend artifacts
Tool handlingSummarized collapsible timelinesNo chat timeline processing
Privacy boundaryHides reasoning and raw tool outputPublishes the provided artifact

Why Claude Code needs its own sharing skill

Claude Code stores conversation history, message types, tool calls, and intermediate events differently from Codex. Reusing a Codex-specific parser would either miss useful activity or put tool timelines in the wrong place.

The Claude Code skill treats the conversation as a separate source format. It reconstructs user and assistant messages, attaches tool activity to the surrounding assistant turn, and renders the result as a self-contained HTML page that is easier to review than screenshots or pasted terminal output.

What the shared page includes

The generated page focuses on visible collaboration: user requests, assistant responses, safe status summaries, and tool activity that explains what the agent did.

It is designed to keep the page readable even when a Claude Code session includes many web fetches, shell steps, file reads, or intermediate progress events.

Global install: `npx skills add blockdancez/PreviewShip --skill share-claude-code-chat -a codex -g --yes`.
Project-local install: `npx skills add blockdancez/PreviewShip --skill share-claude-code-chat -a codex --yes`.
Codex usage: `$share-claude-code-chat 分享 Claude Code 对话`.

Privacy and review expectations

The renderer is intentionally conservative: hidden reasoning text is not published, raw tool outputs are not dumped into the page, and secret-looking values are redacted.

Because Claude Code conversations often include private repository paths, URLs, screenshots, and operational context, users should still inspect the generated preview before making it public.

FAQ

Is share-claude-code-chat the same as share-codex-chat?

No. They share the same PreviewShip publishing goal, but Claude Code and Codex store different local transcript formats. The Claude Code skill has its own parser and tool-timeline handling.

Does the skill publish Claude Code reasoning?

No. It is designed to hide reasoning text and show only safe, visible conversation content plus summarized tool activity.

Can it show tool calls without overwhelming the page?

Yes. Tool activity is grouped into collapsible timelines so readers can expand the process when they need it and keep the main answer readable.

Does it require a PreviewShip API key?

Yes for deployment. If the CLI is not authenticated, run `npx previewship login` or configure `PREVIEWSHIP_API_KEY` before sharing.