brain-pdf

Render a brain page markdown file into a publication-quality PDF.

5|1|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/GYF0311/lorekit --skill brain-pdf-gyf0311
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: brain-pdf
Source: https://github.com/GYF0311/lorekit/tree/main/brain/skills/brain-pdf
Command: npx skills add https://github.com/GYF0311/lorekit --skill brain-pdf-gyf0311

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Turning a long, frontmatter-heavy brain page into a shareable, print-ready document is slow and formatting is error-prone.

Core Features & Use Cases

  • Publication-quality rendering: Converts a brain markdown page into a clean PDF via the gstack make-pdf binary.
  • Brain-first truth model: Treats the brain page as the source of truth and renders the PDF strictly as a rendering artifact.
  • Clean output hygiene: Strips YAML frontmatter to avoid dumping metadata into page content and sanitizes emoji so characters render correctly.
  • Deliverable-oriented defaults: Applies running headers and page numbers and keeps cover/TOC off by default to avoid corporate-looking clutter.

Quick Start

Ask the AI to render the brain page at media/books/this-book-personalized into a PDF for sharing.

Frequently Asked Questions about brain-pdf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a markdown knowledge base page into a printable PDF?

To convert a markdown knowledge base page into a printable PDF, you render the specified brain page file directly. The process treats the markdown page as the source of truth and outputs a publication-quality PDF artifact suitable for sharing.

How do I strip YAML frontmatter when rendering markdown to PDF?

Stripping YAML frontmatter when rendering markdown to PDF prevents metadata from cluttering the document content. This rendering process automatically sanitizes the source page by removing frontmatter and emoji before generating the final output.

Do I need a specific binary to render brain pages into PDF documents?

Yes, rendering brain pages into PDF documents requires the gstack make-pdf binary. You must also confirm the source page exists in your knowledge base before initiating the rendering process to ensure successful file generation.

Can I generate PDF reports from long-form markdown without corporate clutter?

You can generate PDF reports from long-form markdown without corporate clutter by using deliverable-oriented defaults. The rendering applies running headers and page numbers while keeping covers and tables of contents off by default for a clean document.

What is a brain page rendering artifact for document publishing?

A brain page rendering artifact for document publishing is a non-primary PDF output generated from the primary markdown source. It serves as a portable archive or shareable report while the original brain page remains the strict source of truth.

Why does emoji formatting break when converting markdown to PDF and how is it fixed?

Emoji formatting breaks when converting markdown to PDF due to character encoding mismatches in the rendering engine. This process sanitizes emoji characters automatically to ensure they render correctly in the final output document.