share

share is a command for Claude Code from theclaymethod/artifacture. It costs 0 tokens per session (631 once invoked), scanned A, original, MIT.

A command for sharing a visual explainer as an HTML web page. It can first convert an MDX or TSX source file into HTML, then use a private team-sharing service or a public preview fallback.

In plain words
What is it for?
It helps publish an existing HTML explainer, or export and publish an MDX or TSX explainer for review by teammates or others.
Why use it?
It removes the manual steps needed to export a source file and choose a sharing destination. The result is a link to the rendered page rather than the source code.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the visual-explainer plugin — 1 skill, 13 commands, 11 agents shipped together

Good fit It helps publish an existing HTML explainer, or export and publish an MDX or TSX explainer for review by teammates or others.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/theclaymethod/artifacture/share
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/theclaymethod/artifacture

Made for: Claude Code.

Or install visual-explainer, the plugin that ships this one along with the rest of its 1 skill, 13 commands, 11 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for share

README.md
[![agentmods](https://agentmods.dev/badge/commands/theclaymethod/artifacture/share/github.svg)](https://agentmods.dev/commands/theclaymethod/artifacture/share)
Your own site
<a href="https://agentmods.dev/commands/theclaymethod/artifacture/share"><img src="https://agentmods.dev/badge/commands/theclaymethod/artifacture/share/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for share

Your own site · 80×15
<a href="https://agentmods.dev/commands/theclaymethod/artifacture/share"><img src="https://agentmods.dev/badge/commands/theclaymethod/artifacture/share.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 631 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00631
Opus 5.5 $0.00000 $0.00252
Sonnet 5.5 $0.00000 $0.00126
Haiku 4.5 $0.00000 $0.00063

Measured 1mo ago against content hash 5e28b32a88b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

share scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/visual-explainer/commands/share.md · 54 lines

How it starts

The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Share an artifact

/share <file-path>

Share the requested HTML file to the authorized destination. If given MDX/TSX, export it first; do not deploy source files directly:

npm run ve:export -- <source.mdx|source.tsx> --out ~/.agent/diagrams/<slug>.html
bash {{skill_dir}}/scripts/share.sh <file>

Use the session's existing authorization. This command has no creative choices; resolve a missing target or destination through references/clarify.md only when needed.

Select the backend

Configuration Backend
VE_SHAREHTML_URL is set sharehtml
~/.config/visual-explainer/share.json exists sharehtml
Neither exists Public Vercel preview

sharehtml updates a stable document URL behind the configured access layer and supports comments. Its privacy depends on that layer. The Vercel fallback creates a new public, claimable preview URL each time. Anyone with the URL can view it; gating requires claiming it into a Vercel project and enabling Deployment Protection.

Setup

For sharehtml, install the CLI with bun install -g sharehtml or put the checkout's CLI on PATH. Team hosting requires a Cloudflare account, Workers Paid for Durable Objects, pnpm run setup, and Cloudflare Access scoped to the team. Configure VE_SHAREHTML_URL or ~/.config/visual-explainer/share.json; a custom domain is optional. See docs/TEAM-SHARING.md.

The public fallback uses the vercel-deploy skill. If absent, install it with pi install npm:vercel-deploy. Fallback previews need no Vercel account, Cloudflare account, or API keys. The script copies the HTML to a temporary index.html, deploys it, and returns a preview URL plus a claim URL for later transfer to a Vercel account.

Output and limits

sharehtml prints its CLI output and a mode hint:

Sharing my-diagram.html via sharehtml...
Share mode: private team link, stable update-in-place URL

Vercel prints the public and claim URLs, plus JSON:

{"previewUrl":"https://...","claimUrl":"https://...","deploymentId":"...","projectId":"..."}

Read the full file on GitHub · 54 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -45 lines 5e28b32a88b3
  2. 1mo ago First seen · 99 lines · 0 tokens per session scan A e14bce4308e6

Subscribe to this mod's changes

share is a command published in the GitHub repository theclaymethod/artifacture (3 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 631 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.