AI一键生成YC风格法律文档与商业PDF
简介
AI PDF生成工具,一键生成SAFE协议、NDA、投资条款书等专业法律/商业文档,支持Claude等AI模型驱动内容创作。
原始描述
AI-powered PDF generator for legal docs, pitch decks, and reports. SAFEs, NDAs, term sheets, whitepapers. npx ai-pdf-builder. Works with Claude, Cursor, GPT, Copilot.
通过你的 Agent 添加
安装目录:ai-pdf-builder/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心功能
AI PDF Builder 是一款面向创业者、投资人和技术团队的专业文档生成工具,核心能力是将简单文本提示转化为格式规范的PDF文档。支持八大文档类型:白皮书/技术文档、投资条款书(Term Sheet)、SAFE协议、保密协议(NDA)、商业备忘录、法律合同、商业报告和商业提案。
AI集成能力是该工具的最大亮点。用户可通过自然语言提示直接生成完整文档,如 ai whitepaper "AI in healthcare",系统会自动调用Claude API生成结构化内容并渲染为专业PDF。此外还提供enhance命令改进现有内容、summarize命令生成执行摘要,形成完整的AI辅助文档工作流。
显著优点
- YC风格的专业排版:针对硅谷创业场景优化,SAFE、Term Sheet等模板符合行业惯例
- 无缝AI工具链集成:原生支持Claude Code、Cursor、GPT、Copilot等主流AI编码助手,开发者可在熟悉的IDE环境中直接调用
- 灵活的部署选项:支持本地免费模式(依赖Pandoc+LaTeX)和即将推出的云端API,满足不同安全合规需求
- 品牌定制化:支持注入公司名称、自定义配色方案、调整字体和页边距
- 零代码使用门槛:CLI界面简洁,非技术人员也能快速上手
潜在局限
- 外部依赖较重:本地模式需要安装Pandoc和完整LaTeX环境(约4GB),对Windows用户支持未明确说明
- AI功能受限:内容生成完全依赖Anthropic API,需用户自行配置API key,且产生额外成本
- 法律文档风险:自动生成的SAFE、NDA等具有法律效力,工具本身不提供法律审查,存在合规隐患
- 来源可信度:当前为个人开发者维护的社区项目(T3),尚未建立成熟的商业支持体系
适合人群
- 早期创业团队:快速生成投资人材料、法律文件
- 技术写作者:高效产出白皮书、技术文档
- AI原生开发者:需要将文档生成集成到AI工作流
- 咨询顾问:批量生成格式统一的提案和报告
常规风险
风险类别
说明
法律合规
自动生成合同条款需人工审核,不建议直接用于正式签署
API密钥安全
环境变量存储API key存在泄露风险,建议配合密钥管理工具
内容准确性
AI生成内容可能出现事实错误,关键数据需人工核验
依赖维护
LaTeX宏包版本冲突可能导致本地构建失败
- 外部依赖较重:本地模式需要安装Pandoc和完整LaTeX环境(约4GB),对Windows用户支持未明确说明
- AI功能受限:内容生成完全依赖Anthropic API,需用户自行配置API key,且产生额外成本
- 法律文档风险:自动生成的SAFE、NDA等具有法律效力,工具本身不提供法律审查,存在合规隐患
- 来源可信度:当前为个人开发者维护的社区项目(T3),尚未建立成熟的商业支持体系
适合人群
- 早期创业团队:快速生成投资人材料、法律文件
- 技术写作者:高效产出白皮书、技术文档
- AI原生开发者:需要将文档生成集成到AI工作流
- 咨询顾问:批量生成格式统一的提案和报告
常规风险
风险类别
说明
法律合规
自动生成合同条款需人工审核,不建议直接用于正式签署
API密钥安全
环境变量存储API key存在泄露风险,建议配合密钥管理工具
内容准确性
AI生成内容可能出现事实错误,关键数据需人工核验
依赖维护
LaTeX宏包版本冲突可能导致本地构建失败
| 风险类别 | 说明 |
|---|---|
| 法律合规 | 自动生成合同条款需人工审核,不建议直接用于正式签署 |
| API密钥安全 | 环境变量存储API key存在泄露风险,建议配合密钥管理工具 |
| 内容准确性 | AI生成内容可能出现事实错误,关键数据需人工核验 |
| 依赖维护 | LaTeX宏包版本冲突可能导致本地构建失败 |
安全认证显示该Skill为纯文档型(T-MD),无可执行代码,安全等级S,来源可信度T3。
技能正文
name: ai-pdf-builder
description: Generate professional PDFs from Markdown using Pandoc and LaTeX with AI-powered content generation. Creates whitepapers, term sheets, memos, agreements, SAFEs, NDAs, and more.
version: 1.1.0
AI PDF Builder
Generate professional PDFs from Markdown with AI-powered content generation. 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
--company Flag - Inject company name directly via CLIenhance Command - Improve existing content with AIsummarize Command - Generate executive summaries from documentsOption 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"
Usage
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
Type
Function
Best For
whitepaper
generateWhitepaper()
Technical docs, litepapers
memo
generateMemo()
Executive summaries
agreement
generateAgreement()
Legal contracts
termsheet
generateTermsheet()
Investment terms
safe
generateSAFE()
SAFE agreements
nda
generateNDA()
Non-disclosure agreements
report
generateReport()
Business reports
proposal
generateProposal()
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
# 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
# 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
Type
Function
Best For
whitepaper
generateWhitepaper()
Technical docs, litepapers
memo
generateMemo()
Executive summaries
agreement
generateAgreement()
Legal contracts
termsheet
generateTermsheet()
Investment terms
safe
generateSAFE()
SAFE agreements
nda
generateNDA()
Non-disclosure agreements
report
generateReport()
Business reports
proposal
generateProposal()
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
# 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
# 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
Type
Function
Best For
whitepaper
generateWhitepaper()
Technical docs, litepapers
memo
generateMemo()
Executive summaries
agreement
generateAgreement()
Legal contracts
termsheet
generateTermsheet()
Investment terms
safe
generateSAFE()
SAFE agreements
nda
generateNDA()
Non-disclosure agreements
report
generateReport()
Business reports
proposal
generateProposal()
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
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.' }
);
| Type | Function | Best For |
|---|---|---|
whitepaper |
generateWhitepaper() |
Technical docs, litepapers |
memo |
generateMemo() |
Executive summaries |
agreement |
generateAgreement() |
Legal contracts |
termsheet |
generateTermsheet() |
Investment terms |
safe |
generateSAFE() |
SAFE agreements |
nda |
generateNDA() |
Non-disclosure agreements |
report |
generateReport() |
Business reports |
proposal |
generateProposal() |
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
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'
});
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
--companyflag 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 promptenhance <file>- Improve existing contentsummarize <file>- Create executive summary--company "Name"- Add company branding to any command
Links
原始仓库
作者的项目地址:https://github.com/sundial-org/awesome-openclaw-skills