Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

brain-pdf

Skill by garrytan

Renders a brain page into a publication-quality PDF using the gstack make-pdf binary. It is meant for people who keep knowledge in gbrain and want a clean file to share or archive.

  • Score 93
  • 34k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install brain-pdf

Built from the published package, never by AI.

git clone --depth 1 https://github.com/garrytan/gbrain /tmp/gbrain && mkdir -p ~/.claude/skills && cp -r /tmp/gbrain/skills/brain-pdf ~/.claude/skills/brain-pdf

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install brain-pdf in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

brain-pdf takes a brain page, which is markdown with frontmatter, and turns it into a PDF. First it confirms the page exists with gbrain get. Then it runs gbrain publish --markdown to remove private content such as the Timeline, fact and takes blocks, comments, citations and brain links. Finally it calls the gstack make-pdf binary to render the file. The source describes running headers, page numbers and emoji sanitization.

The skill treats the brain page as the source of truth and the PDF only as a rendering. By default it adds no cover and no table of contents, and it adds them only when the user asks. It depends on gstack being installed, and it expects certain fonts. The skill suits users who want to share, archive or print a personal knowledge page in a portable format.

Written from the project's SKILL.md and checked against it.

What it can do

  • Page checkConfirms the brain page exists with gbrain get before rendering.
  • Private section strippingRemoves private sections the way gbrain publish does before the PDF is made.
  • PDF renderingRenders the cleaned markdown to PDF with the gstack make-pdf binary.
  • Running headers and page numbersApplies running headers and page numbers, as stated in the description.
  • Emoji sanitizationSanitizes emoji so they do not appear as blank boxes in the PDF.
  • Optional cover, TOC and watermarkAdds a cover, table of contents, DRAFT watermark or custom title and author when requested.

What you need

  • gstack installed, with the make-pdf binary at $HOME/.claude/skills/gstack/make-pdf/dist/pdf
  • fonts-liberation font package
  • fonts-noto-cjk font package for CJK characters
  • gbrain CLI for page lookup and publish stripping

Try asking

  • Make a PDF from my brain page on the Q3 planning notes
  • Convert this brain page to PDF as a draft with a watermark
  • Export my reading playbook brain page as a PDF with a custom author

Good to know

  • Requires gstack to be installed; the skill cannot run without the make-pdf binary.
  • A PDF is rendered only from an existing brain page; no standalone PDF is produced.
  • No cover or table of contents by default.
  • The source says a future v0.26+ may add a fallback renderer; for v0.25.1 gstack is a soft prerequisite.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/brain-pdf/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB
  • routing-eval.jsonl589 B

Alternatives to brain-pdf

All alternatives →

Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr

brain-pdf: common questions

Does the PDF include private sections from the brain page?

The skill runs gbrain publish --markdown first, which removes frontmatter, the Timeline, fact and takes blocks, comments, citations and brain links.

Does brain-pdf need gstack?

Yes. It calls the gstack make-pdf binary, and the source says the skill cannot run if that binary is absent.

Can brain-pdf add a cover page or table of contents?

Yes, but only when the user explicitly asks. Both are off by default because the source says they look corporate and waste space.

How do I install brain-pdf?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is brain-pdf free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is brain-pdf safe to use?

It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to brain-pdf?

Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.

brain-pdf Install

Add to stack

Loading.