/gbrain:publish runs instead · from gbrain
Shares brain pages as self-contained, password-protected HTML files using AES-256-GCM encryption. Strips private metadata and generates local output with no server or LLM calls.
This skill never runs in Claude Code
It ships in gbrain at plugin/, but /gbrain:publish (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Share brain pages as beautiful, self-contained HTML documents. Optionally password-protected with client-side AES-256-GCM encryption. No server needed.
This is a code + skill pair: the deterministic code (gbrain publish) does
the stripping, encrypting, and HTML generation. This skill tells you when and
how to use it. See Thin Harness, Fat Skills
for the architecture philosophy.
https://...) are preserved; only internal brain paths are stripped.Brain content is private. Default to password-protected unless the user explicitly says "open", "no password", or "public".
If no password is specified, auto-generate one. Share the password via a different channel than the URL.
# Basic publish (outputs local HTML file)
gbrain publish brain/companies/acme.md
# Password protected (auto-generate password)
gbrain publish brain/companies/acme.md --password
# Password protected (specific password)
gbrain publish brain/companies/acme.md --password "secret123"
# Custom title
gbrain publish brain/companies/acme.md --password --title "Acme -- Deal Analysis"
# Custom output path
gbrain publish brain/companies/acme.md --out /tmp/acme-share.html
# Stripped markdown for another renderer (brain-pdf uses this)
gbrain publish brain/companies/acme.md --markdown --out /tmp/acme-clean.md
The publish command automatically removes all private/internal data:
| Stripped | Example | Why |
|---|---|---|
| YAML frontmatter | title:, type:, tags: | Internal metadata |
[Source: ...] citations | All formats | Provenance is internal |
| Confirmation numbers | ABC123DEF -> "on file" | PII/booking data |
| Brain cross-links | [Jane](../people/jane.md) -> Jane | Internal paths |
| Timeline section | From the first ## Timeline / ## History heading (any level, with or without a --- above it) or timeline sentinel to the end of the page | Raw evidence log |
| gbrain fences | ## Facts / ## Takes blocks and other <!-- gbrain:...:begin --> blocks | Private fact rows, internal structure |
| HTML comments | <!-- note --> | Hidden, never meant to be read |
| "See also" lines | Internal references | Brain navigation |
Preserved: external URLs (https://...), all other content.
Stripping fails closed: anything after a section that never closes (a fence or comment with no end marker) is dropped too, and a page whose frontmatter never closes is refused. A guest page saved from gbrain get keeps its [outside guest · …] warning line above the frontmatter; publish drops that line and strips the frontmatter as usual. Any other text above frontmatter in the first five non-blank lines (the quote fence a paged gbrain get prints) is refused with invalid_frontmatter: save the page with plain gbrain get <slug> or delete those lines. An early horizontal rule followed by - Label: value items or a sentence YAML reads as a key and value is refused the same way: reword those lines or move the rule. An --out that names the page itself (same path, link or case variant) is refused with invalid_params and writes nothing. Publish whole pages only: a gbrain get --lines slice that starts below the opening --- holds frontmatter keys publish cannot recognize. Read the output before sharing when a page has a prose History section: it is dropped with everything after it.
gbrain publish brain/people/jane-doe.md --password --out ~/Desktop/jane-briefing.html
Share the HTML file via email, Slack, Airdrop. Share the password separately.
# Publish locally first
gbrain publish brain/companies/acme.md --password "secret" --out /tmp/acme.html
# Upload to Supabase Storage
gbrain files upload /tmp/acme.html --page shares/acme
# Get a signed URL (1-hour expiry)
gbrain files signed-url shares/acme/acme.html
Share the signed URL + password. URL expires in 1 hour. Re-generate as needed.
Upload the HTML file to any static hosting service. The file is self-contained, no server logic needed. Password-protected files work entirely client-side via Web Crypto API.
gbrain publish brain/trips/japan-2026.md --out trip.html
# Upload to a GitHub Gist or Pages repo
When encrypted, the published HTML contains ONLY ciphertext. The plaintext is not present anywhere in the file.
Re-run the publish command with the same output path:
gbrain publish brain/companies/acme.md --password "same-password" --out shares/acme.html
Same file, same URL (if hosted), updated content.
Delete the file. If using signed URLs, the URL expires automatically (1 hour). If using static hosting, remove the file from the host.
Follow the agent operator protocol for any gbrain error code, exit code, [AGENT] block or notice block. Specific to this skill:
page_not_found: resolve the real slug first; never publish a guessed page.gbrain files upload / gbrain files signed-url fails (storage not configured, bucket_not_found): tell the user publishing needs storage and run gbrain doctor --json; do not paste private page content instead.gbrain publish exists.PUBLISHED: [page title]
========================
File: [output path]
Encrypted: [yes (AES-256-GCM) / no]
Password: [auto-generated password / user-provided / none]
Size: [file size]
Share the file via: [email / Slack / Airdrop / cloud upload]
Share the password via: [a different channel]
gbrain publish -- deterministic HTML generation (no LLM calls)gbrain files upload -- upload to cloud storage (optional)gbrain files signed-url -- generate access links (optional)What SKILL.md sets; muted values are Claude Code's defaults
Use when the user asks: "share this page", "publish page", "create shareable link".
148 skills in this plugin
/academic-verifyVerify a research claim or academic citation by tracing it through publication → methodology → raw data → independent replication. Routes through perplexity-research for the actual web lookup, then formats results as a citation-checked brain page. Use when a book/article/conversation cites a study and you want to confirm the claim is real, replicated, and accurately characterized./archive-crawlerUniversal archivist for personal file archives (Dropbox/B2/Gmail-takeout/local-mount/hard-drive-dump). Filters for high-value content (the user's own writing, ideas, relationships) and surfaces it interactively. REFUSES TO RUN without an explicit gbrain.yml `archive-crawler.scan_paths:` allow-list./article-enrichmentTransform raw article text dumps in the brain into structured pages with executive summary, verbatim quotes, key insights, why-it-matters, and cross-references. Replaces walls-of-text with quotable, actionable brain pages./ask-userReusable pattern for presenting the user with explicit choices and gating
execution until they respond. Used by other skills when a decision point
requires human input before proceeding. Platform-agnostic — works on
Telegram (inline buttons), Discord, CLI, or any agent with a message tool.
/blog-ingestFeed and whole-publication ingestion: turn an entire blog, newsletter, or
RSS/Atom archive into brain source pages. Covers feed discovery, pagination
walking, normalization to a common article shape, canonical-URL dedup,
idempotent re-runs, 429 pacing, and empty-husk repair. This is the
PUBLICATION-scope skill — a single article URL routes to idea-ingest
instead. Per-article enrichment hands off to the brain-ingest-gate skill;
public posts only (gated content is skipped, never worked around).
/book-mirrorTake any book (EPUB/PDF), produce a personalized chapter-by-chapter analysis. Each chapter is summarized with brief quotes (The Chapter) and mirrored back to the reader's actual life (The Mirror) using brain context. The mirror observes and resonates — a friend pointing out parallels, NOT a consultant rearranging the reader's life, NOT a therapist assigning homework. The reader decides what to do about it. Layout is a top-aligned HTML table or stacked sections, never a bare markdown pipe table (pipe tables center-misalign uneven columns). Output is a single brain page at media/books/<slug>-personalized.md plus an optional PDF via brain-pdf.2 plugins ship this exact skill · first indexed Nov 24, 2026
npx claudepluginhub garrytan/gbrain --plugin gbrainOther plugins' skills for the same job