### Quick start commands Source: https://github.com/8dvibes/bangerpdf/blob/main/README.md Commands to verify installation, convert HTML to PDF, scaffold a bid package, build all tiers, run QA, and create a review bundle. ```bash # Verify everything installed cleanly bangerpdf doctor # Convert any HTML file to a print-ready PDF bangerpdf convert brochure.html --embed-assets # Scaffold a bid package from the starter bangerpdf init bid-package ./acme-bid # Build all three tiers cd ./acme-bid bangerpdf build --tier all # Run the QA checker bangerpdf qa # Wrap it as a Review Bundle for client approval bangerpdf review init . --from . bangerpdf review build ``` -------------------------------- ### Quick Start Commands Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/packs_data/mgm-strategy-plan/README.md Initialize a new project from this pack, validate data.json, and build all documents. ```bash # Initialize a new project from this pack bangerpdf init mgm-strategy-plan ./my-strategy # Edit data.json with your client's data bangerpdf validate ./my-strategy # Build all documents bangerpdf build ./my-strategy ``` -------------------------------- ### Global preferences YAML example Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/design-memory.md Example preferences.yaml with design, workflow, layout, and QA defaults. Comments explain each option. ```yaml # ~/.config/bangerpdf/preferences.yaml # Global defaults for all bangerpdf projects. # Design defaults default_vibe: "bold" # corporate | bold | editorial | minimal default_tier: "desktop" # desktop | digital-press | commercial | all default_font_heading: "Inter" # Google Font name default_font_body: "Inter" # Google Font name default_accent: "#0D9488" # Hex color for accent when no brand is loaded # Workflow defaults auto_interview: true # Run the design interview for new projects auto_visual_generation: true # Generate images for visual vibes (Bold/Editorial) always_full_bleed_covers: true # Use full-bleed cover pages by default # Layout defaults footer_position: "bottom_fixed" # bottom_fixed | bottom_relative | none page_size: "letter" # letter | a4 page_numbers: true # Show page numbers in footer page_number_format: "page_of_total" # page_of_total | page_only | none # QA defaults qa_strict: false # Run QA in strict mode by default qa_check_links: false # Validate URLs in QA by default ``` -------------------------------- ### Quick Start Commands Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/packs_data/briefing-package/README.md Initializes, validates, and builds a briefing package using the bangerpdf CLI. ```bash bangerpdf init briefing-package ./my-briefing bangerpdf validate ./my-briefing bangerpdf build ./my-briefing ``` -------------------------------- ### Example Merge of Configuration Layers Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/design-memory.md Shows a concrete example of how values from all four layers merge, with the result listing each final value and its source. Demonstrates that later layers override earlier ones. ```text Global preferences: default_vibe=corporate, default_font_heading=Inter Pack default (bid): full_bleed_cover=true Project brand-kit: primary=#B77729, accent=#F5A600, heading=Helvetica Neue CLI: --tier all Result: vibe = corporate (global, not overridden) font_heading = Helvetica Neue (project overrides global) full_bleed_cover = true (pack default, not overridden) primary = #B77729 (project) tier = all (CLI overrides everything) ``` -------------------------------- ### Gallery & Patterns Commands Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/SKILL.md Show reference examples and list layout patterns. ```bash bangerpdf gallery show [vibe] # Reference examples (corporate/bold/editorial/minimal) bangerpdf patterns list # Layout pattern library ``` -------------------------------- ### Quick Start Commands for Invoice Starter Pack Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/packs_data/invoice/README.md Commands to initialize, validate, and build the invoice starter pack. Run these in order to set up and generate the invoice. ```bash bangerpdf init invoice ./my-invoice bangerpdf validate ./my-invoice bangerpdf build ./my-invoice ``` -------------------------------- ### Quick Start Commands for report-package Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/packs_data/report-package/README.md Commands to initialize, validate, and build a report using the report-package starter pack. Run these in order to create and process a new report project. ```bash bangerpdf init report-package ./my-report bangerpdf validate ./my-report bangerpdf build ./my-report ``` -------------------------------- ### Skills Management Commands Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/SKILL.md List, install, and force-install skills. ```bash bangerpdf skills list bangerpdf skills install bangerpdf skills install --force ``` -------------------------------- ### Quick Start Commands for proposal-package Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/packs_data/proposal-package/README.md Initialize, validate, and build the proposal package using bangerpdf CLI. Run these commands in order to create and process the project. ```bash bangerpdf init proposal-package ./my-proposal bangerpdf validate ./my-proposal bangerpdf build ./my-proposal ``` -------------------------------- ### Quick Start Commands for one-pager Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/packs_data/one-pager/README.md Run these commands in order to initialize, validate, and build a one-pager project. The commands assume a target directory named 'my-one-pager'. ```bash bangerpdf init one-pager ./my-one-pager bangerpdf validate ./my-one-pager bangerpdf build ./my-one-pager ``` -------------------------------- ### Quick Start Commands for bid-package Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/packs_data/bid-package/README.md Commands to initialize, validate, and build a bid package project. Run 'bangerpdf init bid-package ./my-bid' to create a new project, then edit data.json and replace logo.png. Validate with 'bangerpdf validate ./my-bid' and build with 'bangerpdf build ./my-bid'. ```bash # Initialize a new project from this pack bangerpdf init bid-package ./my-bid # Edit data.json with your real project data # Replace logo.png with your company logo # Validate your data against the schema bangerpdf validate ./my-bid # Build all documents bangerpdf build ./my-bid ``` -------------------------------- ### Design Interview Command Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/SKILL.md Starts the design interview process. ```bash bangerpdf design ``` -------------------------------- ### Install bangerpdf with pip Source: https://github.com/8dvibes/bangerpdf/blob/main/README.md Install the package using pip. If you encounter an externally-managed-environment error (e.g., with Homebrew Python on macOS), use the --break-system-packages flag or create a virtual environment. ```bash pip install bangerpdf ``` ```bash pip install bangerpdf --break-system-packages ``` ```bash python3 -m venv ~/.bangerpdf-venv && ~/.bangerpdf-venv/bin/pip install bangerpdf ``` -------------------------------- ### @page size examples Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/reference.md Shows how to set page size using the @page rule: letter, A4, landscape, and custom dimensions. ```css @page { size: letter; } /* 8.5in x 11in */ @page { size: A4; } /* 210mm x 297mm */ @page { size: letter landscape; } /* Landscape orientation */ @page { size: 6in 9in; } /* Custom size */ ``` -------------------------------- ### Agentic Workflow Integration Example Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/packs_data/mgm-strategy-plan/README.md Example Python workflow that generates data.json and runs bangerpdf validate and build commands. ```python # Example: Claude workflow outputs data.json import json, subprocess data = generate_strategy_plan(client_brief) # your AI workflow with open("./my-plan/data.json", "w") as f: json.dump(data, f, indent=2) subprocess.run(["bangerpdf", "validate", "./my-plan"]) subprocess.run(["bangerpdf", "build", "./my-plan"]) ``` -------------------------------- ### Passing Reference Images with image_input Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/visuals-guide.md Use the image_input parameter to provide reference images for generation. The example shows a command that passes a prompt file, output path, aspect ratio, resolution, and the reference image. ```bash python ~/.claude/skills/nano-banana-2/generate_image.py \ /tmp/mockup-prompt.json \ ./assets/logo-on-shirt.png \ "4:3" "2K" \ --image-input ./assets/company-logo.png ``` -------------------------------- ### @page margin examples Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/reference.md Shows how to set page margins using the @page rule: uniform, shorthand for top/bottom and left/right, and individual sides. ```css @page { size: letter; margin: 0.75in; /* All sides */ margin: 0.5in 0.75in; /* Top/bottom, left/right */ margin: 0.5in 0.75in 1in 0.75in; /* Top, right, bottom, left */ } ``` -------------------------------- ### Initialize, validate, and build a letter with bangerpdf CLI Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/packs_data/letter/README.md Run these commands in order to create a new letter project, validate its configuration, and build the final PDF. The commands assume the bangerpdf CLI is installed. ```bash bangerpdf init letter ./my-letter bangerpdf validate ./my-letter bangerpdf build ./my-letter ``` -------------------------------- ### List saved brands with bangerpdf brand list Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/design-memory.md Lists all saved brand profiles with their descriptions and save dates. The output format is shown in the example. ```bash # List all saved brands bangerpdf brand list # Output: # carhartt Bold, warm earth tones (saved 2026-04-10) # wilson-mechanical Corporate, navy blue (saved 2026-04-08) # acme-plumbing Minimal, green accent (saved 2026-04-05) ``` -------------------------------- ### Scrape with Firecrawl CLI (firecrawl scrape --formats html) Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/brand-discovery.md Use the firecrawl CLI to scrape a URL and return HTML, which is cleaner for JavaScript-heavy sites. Requires firecrawl to be installed and configured (e.g., with FIRECRAWL_API_KEY). The extraction logic remains the same as the raw urllib scraper. ```bash # firecrawl gives cleaner HTML for JS-heavy sites firecrawl scrape --url "https://example.com" --formats html ``` -------------------------------- ### Build a Multi-Document Pack Workflow Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/SKILL.md Initialize a bid package, edit data.json, build all tiers, and run strict QA. ```bash bangerpdf init bid-package ./my-bid --brand "Acme Corp" --primary "#2B5EA7" cd ./my-bid # Edit data.json with project details bangerpdf build --tier all bangerpdf qa --strict ``` -------------------------------- ### Initialize Bid Package Template Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/examples.md Initializes a new bid package project with the specified brand name and primary color, then customizes templates for a look-book layout. ```bash bangerpdf init bid-package ./carhartt-bid --brand "Carhartt Custom" --primary "#B77729" # Customized templates for look-book layout ``` -------------------------------- ### Review Bundle Workflow Commands Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/SKILL.md Initialize a review bundle, build it, revise after client feedback, and approve. ```bash bangerpdf review init ./client-review --from ./my-bid bangerpdf review build # Client reviews v1, provides feedback bangerpdf review revise bangerpdf review approve ``` -------------------------------- ### Fresh Bid Package from Scratch Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/examples.md Complete workflow for creating a bid package from scratch using bangerpdf CLI. Includes scaffolding with bangerpdf init, editing data.json, validating with bangerpdf validate, building all tiers with bangerpdf build --tier all, running QA with bangerpdf qa, creating a review bundle, and handling client feedback with bangerpdf review commands. ```bash # 1. Scaffold the bid-package starter bangerpdf init bid-package ./acme-bid --brand "Acme Plumbing" --primary "#0D1B2A" --logo ./logo.png # 2. Edit the data cd ./acme-bid # Open data.json and fill in: # - bidder info (name, license, contact) # - project details (client, location, scope) # - schedule of values (line items with quantities, rates, amounts) # - local comparable data (optional, strengthens the bid) # 3. Validate your data against the schema bangerpdf validate # 4. Build all three tiers bangerpdf build --tier all # Output: # pdfs/desktop/01_Cover_Letter.pdf ... 05_Thank_You_Email.pdf # pdfs/digital-press/01_Cover_Letter.pdf ... (with crop marks) # pdfs/commercial/01_Cover_Letter.pdf ... (CMYK + PDF/X-4) # 5. Run the QA checker bangerpdf qa pdfs/desktop/ --expected "01_Cover_Letter.pdf=2,02_Bid_Proposal.pdf=7" # Expected output: all checks clean # 6. Create a Review Bundle for client approval bangerpdf review init ./client-review --from . bangerpdf review build --preview # Opens the review bundle in your browser # 7. After client feedback, revise and re-approve bangerpdf review annotate 02_Bid_Proposal.pdf --page 3 --note "Tighten SOV table" bangerpdf build # rebuild with fixes bangerpdf review revise bangerpdf review approve ``` -------------------------------- ### Global Preferences Commands Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/SKILL.md Set and show global preferences. ```bash bangerpdf preferences set # Set a global default bangerpdf preferences show # Show all preferences ``` -------------------------------- ### Generate Proofs and Send to Printer Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/examples.md Generates 300 DPI proofs for the print shop and then sends brochure.pdf along with the proofs to the printer. ```bash bangerpdf proof brochure.pdf --dpi 300 # 4. Send brochure.pdf + the 300dpi proofs to your printer ``` -------------------------------- ### Scaffold bid package and create assets directory Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/visuals-guide.md Initializes a new bid package with bangerpdf, changes into the directory, and creates an assets folder for generated images. ```bash bangerpdf init bid-package ./wilson-bid --brand "Wilson Electric" --primary "#1B4332" cd ./wilson-bid ``` ```bash mkdir -p assets ``` -------------------------------- ### Build and QA Bid Package Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/examples.md Builds all tiers and runs strict QA on the desktop PDFs. The result is 5 PDFs with all 17 checks passing. ```bash bangerpdf build --tier all bangerpdf qa pdfs/desktop/ --strict # Result: 5 PDFs, all 17 checks passing ``` -------------------------------- ### Build the pack Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/visuals-guide.md Builds the pack with all tiers. WeasyPrint resolves relative paths from the pack root. ```bash bangerpdf build --tier all ``` -------------------------------- ### Generate Product Mockup with Nano Banana 2 Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/examples.md Generates a product mockup of the AI Build Lab logo on a Carhartt K87 using the Nano Banana 2 skill with the BANANAS 7-layer architecture. The command specifies input prompt JSON, output path, aspect ratio, and resolution. ```bash # AI Build Lab logo on Carhartt K87 -- product mockup python ~/.claude/skills/nano-banana-2/generate_image.py \ /tmp/k87-mockup-prompt.json \ ./assets/k87-logo-mockup.png \ "4:3" "2K" ``` -------------------------------- ### bangerpdf Base Design System CSS Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/design-taste.md Complete base stylesheet for bangerpdf PDFs. Override the CSS variable values per project. Includes @page setup with page numbers, color palette, typography, spacing, print color forcing, base element styles, tables, callouts, lists, dividers, page break utilities, and cover page layout. ```css /* ============================================================ bangerpdf — Base Design System ============================================================ */ /* --- Page Setup --- */ @page { size: letter; margin: 1in 1.5in 1.25in 1.5in; /* top right bottom left */ @bottom-center { content: counter(page) " / " counter(pages); font-size: 8pt; font-family: var(--font-body); color: var(--color-muted); border-top: 0.5pt solid var(--color-border); padding-top: 6pt; } } @page :first { margin-top: 0; margin-bottom: 0; @bottom-center { content: none; } } /* --- Color Palette --- */ :root { /* Brand — override per project */ --color-primary: #2563EB; --color-accent: #0D9488; /* Neutrals */ --color-bg: #FFFFFF; --color-bg-subtle: #FAFAFA; --color-bg-muted: #F0F0F0; --color-text: #111827; --color-text-secondary: #374151; --color-muted: #6B7280; --color-border: #E5E7EB; --color-border-strong: #CBD5E1; /* Semantic */ --color-success: #059669; --color-warning: #D97706; --color-error: #DC2626; --color-info: #2563EB; } /* --- Typography --- */ :root { --font-heading: 'Inter', 'Helvetica Neue', sans-serif; --font-body: 'Inter', 'Helvetica Neue', sans-serif; /* Perfect Fourth scale (1.333) from 11pt base */ --text-display: 34pt; --text-h1: 26pt; --text-h2: 19pt; --text-h3: 15pt; --text-body: 11pt; --text-small: 9pt; } /* --- Spacing Scale (4pt base) --- */ :root { --space-xs: 4px; --space-s: 8px; --space-m: 16px; --space-l: 24px; --space-xl: 32px; --space-xxl: 48px; --space-xxxl: 64px; } /* --- Print Color Forcing --- */ * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; color-adjust: exact !important; } /* --- Base Elements --- */ body { font-family: var(--font-body); font-size: var(--text-body); line-height: 1.45; color: var(--color-text); background: var(--color-bg); orphans: 3; widows: 3; } h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); page-break-after: avoid; break-after: avoid; margin-top: 0; } h1 { font-size: var(--text-h1); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: var(--space-l); } h2 { font-size: var(--text-h2); font-weight: 700; line-height: 1.15; margin-bottom: var(--space-m); } h3 { font-size: var(--text-h3); font-weight: 600; line-height: 1.2; margin-bottom: var(--space-s); } h4 { font-size: var(--text-body); font-weight: 600; line-height: 1.3; margin-bottom: var(--space-xs); } p { margin: 0 0 var(--space-m) 0; max-width: 38em; /* ~66 chars at 11pt */ } /* --- Tables --- */ table { width: 100%; border-collapse: collapse; font-size: var(--text-body); margin-bottom: var(--space-l); } thead th { background: var(--color-bg-muted); font-weight: 600; text-align: left; padding: var(--space-s) var(--space-m); border-bottom: 1.5pt solid var(--color-border-strong); font-size: var(--text-small); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-secondary); } td { padding: var(--space-s) var(--space-m); border-bottom: 0.5pt solid var(--color-border); vertical-align: top; } tr { break-inside: avoid; } /* Zebra striping */ tbody tr:nth-child(even) { background: var(--color-bg-subtle); } /* --- Callout Box --- */ .callout { background: var(--color-bg-subtle); border-left: 3pt solid var(--color-primary); padding: var(--space-m); margin: var(--space-l) 0; border-radius: 2px; break-inside: avoid; } .callout-warning { border-left-color: var(--color-warning); } .callout-error { border-left-color: var(--color-error); } .callout-success { border-left-color: var(--color-success); } /* --- Lists --- */ ul, ol { padding-left: var(--space-l); margin: 0 0 var(--space-m) 0; } li { margin-bottom: var(--space-xs); line-height: 1.45; } li + li { margin-top: var(--space-xs); } /* --- Dividers --- */ hr { border: none; border-top: 0.5pt solid var(--color-border); margin: var(--space-xl) 0; } /* --- Page Break Utilities --- */ .page-break { page-break-before: always; break-before: page; } .no-break { page-break-inside: avoid; break-inside: avoid; } .keep-with-next { page-break-after: avoid; break-after: avoid; } /* --- Cover Page --- */ .cover { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 100vh; padding: var(--space-xxxl); } ``` -------------------------------- ### Initialize, validate, and build certificate with bangerpdf CLI Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/packs_data/certificate/README.md Run these commands in order to create a new certificate project, validate its configuration, and build the final PDF. The commands are executed from the terminal. ```bash bangerpdf init certificate ./my-cert bangerpdf validate ./my-cert bangerpdf build ./my-cert ``` -------------------------------- ### bangerpdf MGM schema contract workflow: init, copy data, build Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/SKILL.md Three sequential commands that initialize a project from the mgm-strategy-plan starter pack, copy a workflow output into the data.json location, and build all tiers. Requires a valid data.json matching data.schema.json. ```bash bangerpdf init mgm-strategy-plan ./output cp workflow-output.json ./output/data.json cd ./output && bangerpdf build --tier all ``` -------------------------------- ### Skill location paths Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/visuals-guide.md Shows the paths to the Nano Banana 2 script, both in the local skills directory and in the Founders Lounge repo. ```bash ~/.claude/skills/nano-banana-2/generate_image.py ``` ```bash ~/GitHub/AI-Build-Lab-Founders-Lounge/.claude/skills/nano-banana-2/generate_image.py ``` -------------------------------- ### Key Commands Summary Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/examples.md A summary of essential BangerPDF CLI commands for brand discovery, project scaffolding, building tiers, QA, and brand management. ```bash bangerpdf brand discover https://carhartt.com # Auto-discover brand bangerpdf init bid-package ./carhartt-bid # Scaffold pack bangerpdf build --tier all # Build 3 tiers bangerpdf qa pdfs/desktop/ --strict # QA all PDFs bangerpdf brand save carhartt-merch # Save for reuse bangerpdf brand load carhartt-merch # Load saved brand ``` -------------------------------- ### CLI reference Source: https://github.com/8dvibes/bangerpdf/blob/main/README.md Full list of bangerpdf commands and their options. Run 'bangerpdf --help' for full options. ```bash bangerpdf convert [--embed-assets] [--size letter|a4] [--output-dir DIR] bangerpdf proof [--dpi 300] bangerpdf init [--brand NAME] [--primary HEX] [--logo PATH] bangerpdf build [--tier desktop|digital-press|commercial|all] [--watch] bangerpdf qa [--strict] [--diff] [--json] bangerpdf review init --from bangerpdf review build|revise|approve|annotate bangerpdf brand show|set bangerpdf list-packs bangerpdf skills install|uninstall|path bangerpdf doctor bangerpdf --version ``` -------------------------------- ### Read brand colors from brand-kit.yaml Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/visuals-guide.md Displays the contents of the brand-kit.yaml file to show the configured brand colors. ```bash cat brand-kit.yaml # -> primary: "#1B4332", secondary/accent as configured ``` -------------------------------- ### Pipeline summary diagram Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/visuals-guide.md ASCII diagram showing the flow from brand-kit.yaml through image generation, template integration, build, and QA. ```text brand-kit.yaml --> extract colors/fonts | v prompt.json ------> generate_image.py --> assets/visual-name.png | v template.html ---> | v bangerpdf build --> WeasyPrint resolves from pack root --> PDF | v bangerpdf qa -----> checks for broken images ``` -------------------------------- ### Manage preferences with bangerpdf preferences Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/design-memory.md Shows how to view all preferences, set individual preferences (default_vibe, auto_interview, default_font_heading), and reset all preferences to defaults. ```bash # View all preferences bangerpdf preferences show # Set a preference bangerpdf preferences set default_vibe editorial bangerpdf preferences set auto_interview false bangerpdf preferences set default_font_heading "Playfair Display" # Reset all preferences to defaults bangerpdf preferences reset ``` -------------------------------- ### Load a saved brand with bangerpdf brand load Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/design-memory.md Loads a saved brand into a new project. Copies brand-kit.yaml, assets/, and applies custom-styles.css if present. Supports --target to specify a directory and can be combined with bangerpdf init bid-package using --brand-profile. ```bash # Load a saved brand into a new project bangerpdf brand load carhartt # What happens: # 1. Copies brand-kit.yaml from saved profile to project root # 2. Copies assets/ (logo, images) to project assets/ # 3. Applies custom-styles.css if present # 4. Prints a summary of what was loaded # Load into a specific directory bangerpdf brand load carhartt --target ./new-project # Load brand + init a pack in one command bangerpdf init bid-package ./new-bid --brand-profile carhartt ``` -------------------------------- ### Generate project timeline visual Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/visuals-guide.md Creates a JSON prompt for a project timeline and runs the generate_image.py script to produce a 16:9 image at 2K resolution. ```bash cat > /tmp/timeline-prompt.json << 'PROMPT' { "prompt": "Clean horizontal project timeline for a construction bid. White background. Four phases from left to right connected by a thin green (#1B4332) line: Phase 1 'Rough-In' (Weeks 1-3), Phase 2 'Wiring' (Weeks 4-6), Phase 3 'Fixtures' (Weeks 7-8), Phase 4 'Final Test' (Week 9). Each phase is a circle with the phase number inside, labeled below. Current progress marker at Phase 1. Professional, minimal, suitable for a printed business proposal. Sans-serif font, clean edges.", "negative_prompt": "3D, isometric, decorative, busy, photos, clip art", "settings": { "resolution": "2K", "style": "flat corporate diagram", "lighting": "flat", "quality": "crisp text, vector-like edges" } } PROMPT ``` ```bash python ~/.claude/skills/nano-banana-2/generate_image.py \ /tmp/timeline-prompt.json \ ./assets/project-timeline.png \ "16:9" "2K" ``` -------------------------------- ### Diagnostics Commands Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/SKILL.md Run diagnostics and check version. ```bash bangerpdf doctor bangerpdf --version ``` -------------------------------- ### @page selectors (WeasyPrint supported) Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/reference.md Shows how to apply styles to specific pages using :first, :left, :right, and :blank selectors. ```css @page :first { margin-top: 1in; } /* First page only */ @page :left { margin-right: 1in; } /* Left-side pages (even) */ @page :right { margin-left: 1in; } /* Right-side pages (odd) */ @page :blank { /* blank page styles */ } ``` -------------------------------- ### Convert HTML to PDF Commands Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/SKILL.md Convert HTML to PDF with optional asset embedding and tier selection. ```bash bangerpdf convert input.html --embed-assets bangerpdf convert input.html --embed-assets --tier commercial ``` -------------------------------- ### Run QA on Existing PDFs Commands Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/SKILL.md Run QA on PDFs with optional expected page counts, headline checks, link checks, and strict mode. ```bash bangerpdf qa ./pdfs/ bangerpdf qa ./pdfs/ --expected "proposal.pdf=7,summary.pdf=1" bangerpdf qa ./pdfs/ --headlines "total=$445000,client=Acme" bangerpdf qa ./pdfs/ --check-links --strict ``` -------------------------------- ### Generate image with Nano Banana 2 Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/visuals-guide.md Runs the Nano Banana 2 script to generate an image from the prompt JSON, saving it to the pack's assets directory with specified aspect ratio and resolution. ```bash python ~/.claude/skills/nano-banana-2/generate_image.py \ /tmp/hero-prompt.json \ /path/to/my-pack/assets/hero-header.png \ "17:5" \ "2K" ``` -------------------------------- ### Download Assets from SanMar CDN Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/examples.md Creates an assets directory and downloads product images from SanMar CDN. Lifestyle images are generated via Nano Banana 2 with Carhartt brand colors. ```bash mkdir -p assets # Product images from SanMar CDN curl -o assets/k87-desert.png "https://cdn.sanmar.com/..." curl -o assets/a18-black.png "https://cdn.sanmar.com/..." # Lifestyle images for section dividers # (generated via Nano Banana 2 with Carhartt brand colors) ``` -------------------------------- ### CLI commands for preferences Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/design-memory.md Commands to set, view, and reset global preferences via the bangerpdf CLI. ```bash # Set a single preference bangerpdf preferences set default_vibe bold # View all preferences bangerpdf preferences show # Reset to defaults bangerpdf preferences reset ``` -------------------------------- ### Read brand kit Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/visuals-guide.md Displays the brand-kit.yaml file to extract hex codes and font family for visual consistency. ```bash cat brand-kit.yaml ``` -------------------------------- ### Generate cover page header image Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/visuals-guide.md Creates a JSON prompt file for the cover header and runs the generate_image.py script to produce a 17:5 aspect ratio image at 2K resolution. ```bash cat > /tmp/cover-prompt.json << 'PROMPT' { "prompt": "Professional cover page header background for an electrical contractor bid document. Wide horizontal composition. Deep forest green (#1B4332) on the left 40% with subtle electrical circuit trace patterns at 10% opacity. Clean transition to white (#f8fafc) on the right 60%. Thin accent line in medium green along the transition boundary. Matte finish, corporate, sophisticated. No text, no people, no photos of electrical work. Abstract and clean.", "negative_prompt": "text, logos, people, tools, wires, bright colors, neon, 3D, busy patterns", "settings": { "resolution": "2K", "style": "modern corporate design", "lighting": "flat ambient", "quality": "smooth gradients, print-ready" } } PROMPT ``` ```bash python ~/.claude/skills/nano-banana-2/generate_image.py \ /tmp/cover-prompt.json \ ./assets/cover-header.png \ "17:5" "2K" ``` -------------------------------- ### Create MGM data.json and build PDF with bangerpdf Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/examples.md This bash script creates a JSON data file matching the MGM schema, initializes a bangerpdf project, copies the data, and runs validate, build, and QA commands. The workflow is designed for zero human intervention. ```bash cat > /tmp/growers-data.json << 'EOF' { "meta": {"plan_date": "2026-04-09", "planner": "Market Maven Agent", "version": "1.0"}, "client": {"name": "Growers Solution", "industry": "Agriculture", "stage": "Growth", "arr": 450000}, "market": { "tam": 5000000000, "sam": 150000000, "som": 7500000, "competitors": [ {"name": "FarmFresh Direct", "strength": "Brand recognition", "weakness": "No tech stack", "threat_level": "medium"}, {"name": "AgriTech Solutions", "strength": "Full automation", "weakness": "Premium pricing", "threat_level": "high"} ], "trends": ["Direct-to-consumer growth", "Sustainability premium", "Climate-adaptive varieties"] }, "strategy": { "positioning": "Technology-enabled local agriculture with direct consumer relationships", "pillars": ["Local-first distribution", "Data-driven crop planning", "Community partnerships"], "differentiators": ["Same-day harvest to table", "Transparent pricing", "Seasonal subscription model"], "risks": [ {"name": "Weather dependency", "likelihood": "high", "impact": "high", "mitigation": "Greenhouse expansion + crop insurance"}, {"name": "Labor shortage", "likelihood": "medium", "impact": "medium", "mitigation": "Automation investment + apprentice program"} ] }, "execution": { "phases": [ {"name": "Foundation", "duration_weeks": 8, "deliverables": ["Market research", "Brand identity", "Website"], "owner": "Tyler"}, {"name": "Launch", "duration_weeks": 12, "deliverables": ["First harvest", "CSA signups", "Farmers market presence"], "owner": "Operations"}, {"name": "Scale", "duration_weeks": 24, "deliverables": ["Restaurant partnerships", "Online store", "Second location assessment"], "owner": "Growth"} ], "budget": 125000 }, "kpis": [ {"name": "Monthly Revenue", "target": "$37,500", "baseline": "$0", "measurement_cadence": "monthly"}, {"name": "CSA Subscribers", "target": "200", "baseline": "0", "measurement_cadence": "weekly"}, {"name": "Restaurant Partners", "target": "15", "baseline": "0", "measurement_cadence": "monthly"}, {"name": "Customer Satisfaction", "target": "4.8/5", "baseline": "N/A", "measurement_cadence": "quarterly"} ] } EOF # 2. Scaffold and inject the data bangerpdf init mgm-strategy-plan /tmp/growers-plan cp /tmp/growers-data.json /tmp/growers-plan/data.json # 3. Validate + build + QA (three commands, zero human intervention) cd /tmp/growers-plan bangerpdf validate && bangerpdf build --tier all && bangerpdf qa pdfs/desktop/ --strict # 4. Ship it # The PDFs are ready to email, print, or upload to a client portal. ``` -------------------------------- ### Write prompt JSON Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/visuals-guide.md Creates a prompt JSON file in /tmp using the Dense Narrative format for most PDF visuals. Includes prompt, negative_prompt, and settings. ```bash cat > /tmp/hero-prompt.json << 'PROMPT' { "prompt": "Professional business document header background. Abstract geometric pattern of overlapping translucent navy (#0D1B2A) and blue (#2B5EA7) angular shapes on a clean white (#f8fafc) background. Subtle depth created by layered transparency at 15-25% opacity. Clean, modern, corporate aesthetic. No text, no people, no objects. Horizontal composition suitable for a document header bar. Flat lighting, matte digital finish, crisp vector-quality edges. The pattern should be denser on the left side and fade to near-white on the right, creating a natural reading flow.", "negative_prompt": "text, words, letters, people, faces, photos, busy patterns, gradients that look like default PowerPoint, clip art, 3D renders, metallic textures, drop shadows", "settings": { "resolution": "2K", "style": "modern corporate design", "lighting": "flat, even, no dramatic shadows", "quality": "crisp edges, vector-like precision, print-ready clarity" } } PROMPT ``` -------------------------------- ### Create assets directory Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/visuals-guide.md Creates the assets directory at the pack root, as bangerpdf packs do not ship with one by default. ```bash cd /path/to/my-pack mkdir -p assets ``` -------------------------------- ### Run QA Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/visuals-guide.md Runs QA on the generated PDFs with strict mode to catch broken images. ```bash bangerpdf qa pdfs/desktop/ --strict ``` -------------------------------- ### Directory listing of asset naming convention Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/visuals-guide.md Shows the recommended kebab-case naming convention for image assets, indicating content and placement. ```text assets/ hero-header.png # Cover page header background process-flow-4step.png # 4-step process diagram kpi-dashboard-q3.png # Q3 KPI infographic panel comparison-before-after.png section-divider-navy.png # Decorative section divider market-tam-sam-som.png # TAM/SAM/SOM visualization ``` -------------------------------- ### Product Mockup Prompt JSON for AI Build Lab Logo on Carhartt K87 Tee Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/visuals-guide.md Use this JSON structure to generate a product mockup with the BANANAS 7-layer architecture. It specifies the subject, composition, style, and negative prompt. Pass brand colors from brand-kit.yaml as hex codes directly into the prompt. ```json { "prompt": "Product mockup photograph of a Carhartt K87 Workwear Pocket T-Shirt in desert color (#DEB887). The shirt is laid flat on a clean white background. On the left chest pocket, a small embroidered logo reading 'AI Build Lab' in navy thread (#1A1A2E) with a subtle circuit-board pattern below the text in gold thread (#F5A600). The embroidery is 2.5 inches wide, realistic thread texture visible at close inspection. Clean product photography lighting, slight shadow beneath the shirt, no wrinkles, no background distractions. Shot from directly above (flat lay). The Carhartt logo tag is visible on the pocket.", "negative_prompt": "wrinkled, messy, dark background, people wearing the shirt, mannequin, clip art, illustration, cartoon, text overlay, watermark", "settings": { "resolution": "2K", "style": "product photography, flat lay, e-commerce", "lighting": "soft studio lighting, slight shadow, white background", "quality": "crisp detail, print-ready, realistic fabric texture" } } ``` -------------------------------- ### Brand Discovery & Management Commands Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/SKILL.md Commands for discovering a brand from a URL, saving/loading brand profiles, listing saved brands, showing the current brand kit, and setting a brand property. ```bash bangerpdf brand discover # Auto-research a brand from URL bangerpdf brand save # Save current brand profile bangerpdf brand load # Load a saved brand profile bangerpdf brand list # List all saved brands bangerpdf brand show # Show current brand-kit bangerpdf brand set primary "#1F4E79" # Set a brand property ``` -------------------------------- ### Convert with embedded assets Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/visuals-guide.md Converts a standalone HTML document to PDF, embedding images as base64 data URIs using --embed-assets. ```bash bangerpdf convert document.html --embed-assets --tier desktop ``` -------------------------------- ### Visual treatment prompt instructions Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/visuals-guide.md Table of prompt instructions for common visual treatments: rounded corners, drop shadows, flat design, bordered sections, and gradient headers. Each instruction specifies exact values to match the document's style. ```text "Rounded rectangle containers with 8px corner radius" ``` ```text "Minimal drop shadow on card elements, 2px offset, 10% opacity" ``` ```text "No drop shadows, flat design, 2D only" ``` ```text "Thin 1px border in (#e2e8f0) around each panel" ``` ```text "Linear gradient from (#0D1B2A) to (#2B5EA7) left to right" ``` -------------------------------- ### Check Gemini API availability with 1Password CLI Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/visuals-guide.md Quick test to verify the Gemini API key can be retrieved via 1Password CLI. Exits with code 1 and prints 'UNAVAILABLE: 1Password cannot retrieve Gemini API key' if the retrieval fails. ```bash # Quick test: can we reach the Gemini API? python -c " import subprocess, sys result = subprocess.run( ['/opt/homebrew/bin/op', 'read', 'op://Gigawatt-Secrets/Google Gemini API Credentials/credential'], capture_output=True, text=True, timeout=10 ) if result.returncode != 0: print('UNAVAILABLE: 1Password cannot retrieve Gemini API key') sys.exit(1) print('OK: Gemini API key available') " ``` -------------------------------- ### @page margin boxes (headers and footers) Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/reference.md Shows how to add headers and footers using margin boxes: @top-center, @bottom-center, and @bottom-right. Includes page counters and styling. ```css @page { @top-center { content: "Document Title"; font-size: 9pt; color: #94a3b8; } @bottom-center { content: "Company Name | Page " counter(page) " of " counter(pages); font-size: 8pt; color: #94a3b8; border-top: 0.5pt solid #cbd5e1; padding-top: 6pt; } @bottom-right { content: counter(page) " / " counter(pages); font-size: 8pt; } } ``` -------------------------------- ### 4-Layer Merge Diagram Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/design-memory.md ASCII diagram showing the flow of configuration layers from global preferences down to CLI overrides. Each layer can override values from the layer below it. ```text Layer 1: Global Preferences (~/.config/bangerpdf/preferences.yaml) | v Layer 2: Pack Default (built into the starter pack) | v Layer 3: Project brand-kit.yaml (project-specific brand identity) | v Layer 4: CLI Overrides (--primary "#1B4332" --tier commercial) ``` -------------------------------- ### Scrape Brand Data with urllib (Web Scrape Fallback) Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/brand-discovery.md Scrape a homepage for brand signals (colors, fonts, logo, name) using only the standard library. Requires network access and a URL; sets a custom User-Agent and a 15-second timeout. The extracted data is returned as a dict with a 'source' of 'web-scrape'. ```python import urllib.request from html.parser import HTMLParser def scrape_brand(url: str) -> dict: """Scrape homepage for brand signals. Zero external dependencies.""" req = urllib.request.Request(url, headers={ "User-Agent": "bangerpdf-brand-discovery/2.0" }) with urllib.request.urlopen(req, timeout=15) as resp: html = resp.read().decode("utf-8", errors="replace") # Parse HTML for brand signals colors = extract_colors_from_css(html) fonts = extract_fonts_from_css(html) logo_url = extract_logo_url(html, url) brand_name = extract_brand_name(html) return { "colors": colors, "fonts": fonts, "logo_url": logo_url, "brand_name": brand_name, "source": "web-scrape", "source_url": url } ``` -------------------------------- ### Export brand profile command Source: https://github.com/8dvibes/bangerpdf/blob/main/bangerpdf/skills_data/bangerpdf/design-memory.md Planned command to export a brand profile to a tar.gz file. Not yet implemented. ```bash bangerpdf brand export carhartt > carhartt-brand.tar.gz ```