# Send Ai Pdf Builder to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "ai-pdf-builder",
    "name": "Ai Pdf Builder",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/NextFrontierBuilds/ai-pdf-builder",
    "canonicalUrl": "https://clawhub.ai/NextFrontierBuilds/ai-pdf-builder",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/ai-pdf-builder",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ai-pdf-builder",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "ai-pdf-builder",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T03:26:34.240Z",
      "expiresAt": "2026-05-06T03:26:34.240Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ai-pdf-builder",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ai-pdf-builder",
        "contentDisposition": "attachment; filename=\"ai-pdf-builder-1.2.3.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "ai-pdf-builder"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/ai-pdf-builder"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/ai-pdf-builder",
    "downloadUrl": "https://openagent3.xyz/downloads/ai-pdf-builder",
    "agentUrl": "https://openagent3.xyz/skills/ai-pdf-builder/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ai-pdf-builder/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ai-pdf-builder/agent.md"
  }
}
```
## Documentation

### AI PDF Builder

YC-style docs in seconds. AI-powered PDF generator for legal documents, pitch decks, and professional reports.

Generate SAFEs, NDAs, term sheets, whitepapers, and memos from simple prompts. Works with Claude, GPT, Cursor, and AI coding agents. Perfect for:

Whitepapers & Litepapers
Term Sheets
SAFEs & NDAs
Memos & Reports
Legal Agreements

### What's New in v1.1.0

AI Content Generation - Generate documents from prompts using Claude
--company Flag - Inject company name directly via CLI
enhance Command - Improve existing content with AI
summarize Command - Generate executive summaries from documents
Content Sanitization - Automatic cleanup of AI-generated content

### Requirements

Option A: Local Generation (Free, Unlimited)

# macOS
brew install pandoc
brew install --cask basictex
sudo tlmgr install collection-fontsrecommended fancyhdr titlesec enumitem xcolor booktabs longtable geometry hyperref graphicx setspace array multirow

# Linux
sudo apt-get install pandoc texlive-full

Option B: Cloud API (Coming Soon)
No install required. Get API key at ai-pdf-builder.com

For AI Features:
Set your Anthropic API key:

export ANTHROPIC_API_KEY="your-key-here"

### Check System

npx ai-pdf-builder check

### Generate via CLI

# From markdown file
npx ai-pdf-builder generate whitepaper ./content.md -o output.pdf

# With company name
npx ai-pdf-builder generate whitepaper ./content.md -o output.pdf --company "Acme Corp"

# Document types: whitepaper, memo, agreement, termsheet, safe, nda, report, proposal

### AI Content Generation (New!)

# Generate a whitepaper from a prompt
npx ai-pdf-builder ai whitepaper "Write a whitepaper about decentralized identity" -o identity.pdf

# Generate with company branding
npx ai-pdf-builder ai whitepaper "AI in healthcare" -o healthcare.pdf --company "HealthTech Inc"

# Generate other document types
npx ai-pdf-builder ai termsheet "Series A for a fintech startup" -o termsheet.pdf
npx ai-pdf-builder ai memo "Q4 strategy update" -o memo.pdf --company "TechCorp"

### Enhance Existing Content (New!)

# Improve and expand existing markdown
npx ai-pdf-builder enhance ./draft.md -o enhanced.md

# Enhance and convert to PDF in one step
npx ai-pdf-builder enhance ./draft.md -o enhanced.pdf --pdf

### Summarize Documents (New!)

# Generate executive summary
npx ai-pdf-builder summarize ./long-document.md -o summary.md

# Summarize as PDF
npx ai-pdf-builder summarize ./report.pdf -o summary.pdf --pdf

### Generate via Code

import { generateWhitepaper, generateTermsheet, generateSAFE, aiGenerate, enhance, summarize } from 'ai-pdf-builder';

// AI-Generated Whitepaper
const aiResult = await aiGenerate('whitepaper', 
  'Write about blockchain scalability solutions',
  { company: 'ScaleChain Labs' }
);

// Whitepaper from content
const result = await generateWhitepaper(
  '# My Whitepaper\\n\\nContent here...',
  { title: 'Project Name', author: 'Your Name', version: 'v1.0', company: 'Acme Corp' }
);

if (result.success) {
  fs.writeFileSync('whitepaper.pdf', result.buffer);
}

// Enhance existing content
const enhanced = await enhance(existingMarkdown);

// Summarize a document
const summary = await summarize(longDocument);

// Term Sheet with company
const termsheet = await generateTermsheet(
  '# Series Seed Term Sheet\\n\\n## Investment Amount\\n\\n$500,000...',
  { title: 'Series Seed', subtitle: 'Your Company Inc.', company: 'Investor LLC' }
);

// SAFE
const safe = await generateSAFE(
  '# Simple Agreement for Future Equity\\n\\n...',
  { title: 'SAFE Agreement', subtitle: 'Your Company Inc.' }
);

### Document Types

TypeFunctionBest ForwhitepapergenerateWhitepaper()Technical docs, litepapersmemogenerateMemo()Executive summariesagreementgenerateAgreement()Legal contractstermsheetgenerateTermsheet()Investment termssafegenerateSAFE()SAFE agreementsndagenerateNDA()Non-disclosure agreementsreportgenerateReport()Business reportsproposalgenerateProposal()Business proposals

### Custom Branding

const result = await generateWhitepaper(content, metadata, {
  customColors: {
    primary: '#E85D04',    // Signal Orange
    secondary: '#14B8A6',  // Coordinate Teal
    accent: '#0D0D0D'      // Frontier Dark
  },
  fontSize: 11,
  margin: '1in',
  paperSize: 'letter'
});

### Agent Instructions

When a user asks to generate a PDF:

Check what type of document they need (whitepaper, term sheet, memo, etc.)
Determine if they want AI generation or have existing content
Get the content - either from their message, a file, or use AI to generate
Ask for metadata if not provided (title, author, company name)
Use --company flag to inject company branding
Check if Pandoc is installed: which pandoc
If Pandoc missing, provide install instructions or suggest cloud API
Generate the PDF using the appropriate function
Send the PDF file to the user

AI Commands Quick Reference:

ai <type> "<prompt>" - Generate new document from prompt
enhance <file> - Improve existing content
summarize <file> - Create executive summary
--company "Name" - Add company branding to any command

### Links

npm: https://www.npmjs.com/package/ai-pdf-builder
GitHub: https://github.com/NextFrontierBuilds/ai-pdf-builder

Built by @NextXFrontier & @DLhugly
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: NextFrontierBuilds
- Version: 1.2.3
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T03:26:34.240Z
- Expires at: 2026-05-06T03:26:34.240Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/ai-pdf-builder)
- [Send to Agent page](https://openagent3.xyz/skills/ai-pdf-builder/agent)
- [JSON manifest](https://openagent3.xyz/skills/ai-pdf-builder/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/ai-pdf-builder/agent.md)
- [Download page](https://openagent3.xyz/downloads/ai-pdf-builder)