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.
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-pdfRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/garrytan/gbrain /tmp/gbrain && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/gbrain/skills/brain-pdf ~/.gemini/antigravity-cli/skills/brain-pdfAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
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.
