share

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

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.

agentmods
npx agentmods add commands/theclaymethod/artifacture/share
Clone the repo
git clone --depth 1 https://github.com/theclaymethod/artifacture
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 1,053 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01053
Opus 5 $0.00000 $0.00526
Sonnet 5 $0.00000 $0.00211
Haiku 4.5 $0.00000 $0.00105

Measured yesterday against content hash e14bce4308e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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 · 99 lines

How it starts

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

Share Visual Explainer Page

Share a visual explainer HTML file. Uses sharehtml when team sharing is configured; otherwise falls back to the public Vercel preview path.

Source/artifact contract. Share generated HTML artifacts. If the user gives a .mdx or .tsx source file, export it first:

npm run ve:export -- <source.mdx|source.tsx> --out ~/.agent/diagrams/<slug>.html

Then share the generated .html. Do not deploy MDX/TSX source directly.

Clarify. This is a Tier 2 command per ./references/clarify.md — it operates on an existing file and has no creative choices. Do not ask questions; just deploy.

Usage

/share <file-path>

Arguments:

  • file-path - Path to the generated HTML file to share, or an MDX/TSX source file that should be exported before sharing (required)

Examples:

/share ~/.agent/diagrams/my-diagram.html
/share /tmp/visual-explainer-output.html

Backend Decision

Situation Backend
VE_SHAREHTML_URL exists sharehtml
~/.config/visual-explainer/share.json exists sharehtml
Neither exists Vercel fallback

Use sharehtml for private team review, stable update-in-place URLs, and comments. Use Vercel fallback for zero-setup public previews. Vercel can be partially gated only after the deployment is claimed into a Vercel project and Deployment Protection is enabled.

How It Works

  1. If VE_SHAREHTML_URL is set, or ~/.config/visual-explainer/share.json exists, runs sharehtml deploy <file>.
  2. In sharehtml mode, updates the same document URL in place and keeps the page private by default behind the configured access layer.
  3. If sharehtml is not configured, copies the HTML file to a temp directory as index.html.
  4. Deploys via the vercel-deploy skill and returns a public, claimable Vercel preview URL.

Requirements

  • sharehtml CLI for team sharing. Install with bun install -g sharehtml or put your repo checkout's CLI on PATH.
  • sharehtml hosting for team-gated sharing. See docs/TEAM-SHARING.md: Cloudflare account, Workers Paid plan for Durable Objects, pnpm run setup, Cloudflare Access scoped to the team email domain, optional custom domain, then VE_SHAREHTML_URL or ~/.config/visual-explainer/share.json.
  • vercel-deploy skill for fallback public preview sharing. If missing: pi install npm:vercel-deploy

Read the full file on GitHub · 99 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. yesterday 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 (2 stars, last pushed 9d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,053 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.