Build a standalone executive HTML report, preview it on localhost, encrypt it into a self-decrypting page (AES-256-GCM, PBKDF2 in the browser), verify it with Playwright on phone/tablet/desktop, upload it for a year through x402 (bsv-storage on x402agency), and record the passphrase in the user's secrets store. Use when asked to share a report, audit, proposal or deck as a password-protected link, or to 'encrypt the html and upload it'.
Ships in sealed-report. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Works for any report: audit, proposal, board pack, pricing sheet. Nothing in it is tied to one company.
Turn a finished HTML report into a password-protected public link that costs about 1,000 sats to host for a year and needs no server, no account and no login for the reader. The reader opens the link, types the passphrase, and the report decrypts inside their browser.
/sealed-report <report.html> # seal, verify, upload, record
/sealed-report <report.html> --no-upload # seal and verify only
/sealed-report new <name> # start a report from the template first
Pipeline: report → seal.mjs → Playwright at 390/820/1280 px → brc31_helpers.py upload … bsv-storage → link, with the passphrase on the clipboard and in the user's secrets store.
| Need | Check |
|---|---|
| Node 20+ (WebCrypto) | node --version |
| x402 plugin (Claude Code) | /plugin marketplace add calgooon/x402 then /plugin install x402@calgooon-x402 |
| MetaNet Client wallet running, funded with a few thousand sats | curl -s -H "Origin: http://localhost" http://localhost:3321/isAuthenticated |
Playwright MCP (mcp__playwright__*) | tools present in the session |
| Somewhere to keep the passphrase | the user's password manager, or a secrets file with mode 600 (ask where if unsure) |
Skill files ($SKILL = this skill's directory):
scripts/seal.mjs — wraps any HTML in the self-decrypting loader; --gen makes a passphrase.scripts/verify.mjs — proves the passphrase opens it, a wrong one does not, and no plaintext leaked. No browser.templates/report.html — the executive report design (light/dark tokens, stat tiles, CSS bar chart, phase cards, findings tables, per-account <details>). Already responsive to 390 px.Do the steps in order. Every step has a check; do not skip to the upload.
templates/report.html if there is no report yet. Keep its CSS; replace the bracketed placeholders.<details> per account.cd <report dir> && python3 -m http.server 8787 --bind 127.0.0.1 # run_in_background
open http://127.0.0.1:8787/<report>.html
Resize to 390, 820 and 1280 px; also browser_emulate_media dark. At each width run:
({overflow: document.documentElement.scrollWidth - window.innerWidth, w: window.innerWidth})
overflow must be 0. Screenshot the top, the chart and the phases. Things that have broken before: <summary> rows with white-space:nowrap spans (6 px overflow at 390), SVG charts whose text shrinks to 5 px on phones (use the CSS bars in the template instead), a bar value label clipped at the right edge (put the "Today" value inside the bar: .bar-val.in).
S=$(mktemp -d)/pass # temporary passphrase file, deleted in step 4
node $SKILL/scripts/seal.mjs --in report.html --out report.enc.html --pass-file "$S" --gen \
--title "Q3 Cloud Cost Review" --eyebrow "Company name · confidential" --heading "Cloud Cost Review"
node $SKILL/scripts/verify.mjs --enc report.enc.html --pass-file "$S" --original report.html
verify.mjs must print "decrypts":true,"wrongPassphraseRejected":true,"matchesOriginal":true,"leakedSlices":0. A generated passphrase looks like word-word-word-word-NN (about 70 bits). If the user supplies their own, write it to the pass file instead of --gen; refuse anything under 12 characters.
Store it in the user's secrets store (password manager entry, or their secrets file), never anywhere else. Record shape:
## <Report name> passphrase (sealed <date>)
PASSPHRASE=<value>
URL=<filled in after upload>
Then pbcopy < "$S" so it is on the user's clipboard, and rm "$S". The passphrase does not go into chat, commit messages, logs or tool-call arguments. If the user asks to see it, show it once in a code block.
Serve the .enc.html on the same localhost server. At 390 px and 1280 px:
#pw, submit. Expect the #err text "That passphrase did not work. Check it and try again." and the input still focused.pbcopy already holds it, so browser_click on #pw, browser_press_key Meta+v, then Enter.h1, run the overflow check again, screenshot.Do not fetch the passphrase into the page from a localhost helper or navigator.clipboard.readText(); both hang on the hosted https page. Paste works everywhere.
Use the upload command from the x402 skill. Locate its helper once:
X402=$(ls -t ~/.claude/plugins/cache/calgooon-x402/x402/*/skills/x402/scripts/brc31_helpers.py | head -1)
python3 "$X402" upload report.enc.html bsv-storage 525600 --public-base https://files.x402agency.com/cdn
bsv-storage resolves through the x402agency registry (python3 "$X402" list shows it). 525600 minutes is one year. Last seen price: 1,000 sats, paid automatically; MetaNet Client may show an approval prompt.publicURL is https://files.x402agency.com/cdn/<base58 id>. If it comes back as …/cdn/cdn/<id> (seen 2026-10-21), collapse the doubled segment; the single-cdn URL is the real one.curl -sS -o /dev/null -w '%{http_code}\n' "$URL" # 200
curl -sS "$URL" | cmp - report.enc.html && echo identical
Then put the URL on the record's URL= line with (hosted 1 year from <date>, <sats> sats, bsv-storage via x402).
Open the public URL at 390 px: wrong passphrase → error; paste (Meta+v) → report renders, overflow 0. One screenshot of the opened report. The link is only done when this passes.
Message shape:
Hosted:
<URL>(one year). The passphrase is on your clipboard and in your secrets store. Send the link and the passphrase through two different channels.
Keep report.html, report.enc.html and the raw data beside each other in the project folder. Anyone with the link can download the ciphertext for a year, so the passphrase is the only protection: never reuse it, never send it in the same email as the link.
file:// in some browsers (no secure context), so test on a server.noindex, nofollow and the title you give it; the title and eyebrow are the only plaintext, so keep them generic for sensitive work.const {getRandomValues} = crypto throws ERR_INVALID_THIS; call it on globalThis.crypto (the scripts do).document.write of the decrypted HTML replaces the loader page in place; the report's own <link> to Google Fonts loads fine from there.browser_evaluate calls that await fetch to another origin or navigator.clipboard.readText() can hang forever on https pages; stop them with TaskStop and use paste.filename if you want them beside the report.upload returns 413, the paying wallet's coins carry heavy proofs; pay from a lighter wallet (X402_WALLET_URL=http://localhost:3322).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/sealed-report:sealed-reportfrom sealed-report
npx claudepluginhub calgooon/sealed-report --plugin sealed-report