ワンクリックで
generate-review-pdf
Generate a PDF of a documentation page for external teams to review before shipping
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Generate a PDF of a documentation page for external teams to review before shipping
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | generate-review-pdf |
| description | Generate a PDF of a documentation page for external teams to review before shipping |
| disable-model-invocation | true |
| argument-hint | [path-to-mdx-file] |
Convert a documentation .mdx page into a clean, styled PDF for external review (e.g. product managers, stakeholders). The PDF is saved to ~/Downloads/.
$ARGUMENTS should be the path to an .mdx file (relative or absolute). If not provided, ask the user which page to convert.
Read the .mdx file to get the full page content.
Generate an HTML file in /tmp/ that faithfully renders the page content with clean styling. Use the template structure from template.html as the base.
Content conversion rules — convert MDX components to their HTML equivalents:
| MDX Component | HTML Equivalent |
|---|---|
<Warning> | Yellow callout box with "WARNING" label |
<Note> | Blue callout box with "NOTE" label |
<Tip> | Green callout box with "TIP" label |
<Info> | Blue callout box with "INFO" label |
<Columns> + <Card> | CSS grid of styled card boxes |
<AccordionGroup> + <Accordion> | Fully expanded FAQ items — show question as header, answer as body. Accordions don't work in PDFs so all content must be visible. |
<Steps> + <Step> | Numbered list with step titles as bold headings |
<Tabs> + <Tab> | Show all tabs expanded with tab title as heading |
Supademo <iframe> | Cannot embed in PDF. Replace with a styled clickable link box pointing to the Supademo URL. Convert the embed URL from /embed/[ID] to /demo/[ID] for the link. Label it "Interactive Walkthrough (Supademo)" with the iframe's title attribute as the link text. |
<CardGroup> | CSS grid of linked card boxes |
| Markdown headings, lists, bold, links | Standard HTML equivalents |
Add a review banner at the top of the PDF with:
Convert HTML to PDF using Chrome headless:
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless --disable-gpu --print-to-pdf="$OUTPUT_PATH" "$HTML_PATH"
Clean up the temporary HTML file.
Tell the user the output path.
Derive the PDF name from the MDX filename:
user-level-authentication.mdx → User-Level-Authentication-Review.pdfquick-start-guide.mdx → Quick-Start-Guide-Review.pdfSave to ~/Downloads/.
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, ...)#5E43CE for Supademo link borders (matches the docs brand)#f8f8fc, subtle borderpage-break-inside: avoid on cards, callouts, and FAQ itemsprint-color-adjust: exact for print media