📄

AI一键生成YC风格法律文档与商业PDF

Ai Pdf Builder · v1.2.3
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
专业技能 安全 S 级 作者 nextfrontierbuilds 公开目录收录
5.9k 下载 1 安装 26.7k 收藏 87 浏览

简介

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、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/ai-pdf-builder/
Codex CLI~/.codex/skills/ai-pdf-builder/
DeepSeek Harness~/.agents/skills/ai-pdf-builder/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心功能

AI PDF Builder 是一款面向创业者、投资人和技术团队的专业文档生成工具,核心能力是将简单文本提示转化为格式规范的PDF文档。支持八大文档类型:白皮书/技术文档、投资条款书(Term Sheet)、SAFE协议、保密协议(NDA)、商业备忘录、法律合同、商业报告和商业提案。

AI集成能力是该工具的最大亮点。用户可通过自然语言提示直接生成完整文档,如 ai whitepaper "AI in healthcare",系统会自动调用Claude API生成结构化内容并渲染为专业PDF。此外还提供enhance命令改进现有内容、summarize命令生成执行摘要,形成完整的AI辅助文档工作流。

显著优点

  1. YC风格的专业排版:针对硅谷创业场景优化,SAFE、Term Sheet等模板符合行业惯例
  2. 无缝AI工具链集成:原生支持Claude Code、Cursor、GPT、Copilot等主流AI编码助手,开发者可在熟悉的IDE环境中直接调用
  3. 灵活的部署选项:支持本地免费模式(依赖Pandoc+LaTeX)和即将推出的云端API,满足不同安全合规需求
  4. 品牌定制化:支持注入公司名称、自定义配色方案、调整字体和页边距
  5. 零代码使用门槛:CLI界面简洁,非技术人员也能快速上手

潜在局限

  • 外部依赖较重:本地模式需要安装Pandoc和完整LaTeX环境(约4GB),对Windows用户支持未明确说明
  • AI功能受限:内容生成完全依赖Anthropic API,需用户自行配置API key,且产生额外成本
  • 法律文档风险:自动生成的SAFE、NDA等具有法律效力,工具本身不提供法律审查,存在合规隐患
  • 来源可信度:当前为个人开发者维护的社区项目(T3),尚未建立成熟的商业支持体系

适合人群

  • 早期创业团队:快速生成投资人材料、法律文件
  • 技术写作者:高效产出白皮书、技术文档
  • AI原生开发者:需要将文档生成集成到AI工作流
  • 咨询顾问:批量生成格式统一的提案和报告

常规风险

风险类别 说明
法律合规 自动生成合同条款需人工审核,不建议直接用于正式签署
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

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"

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

When a user asks to generate a PDF:

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

正文来自原始仓库, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

原始仓库

作者的项目地址:https://github.com/sundial-org/awesome-openclaw-skills

标签

pdf-generatorlegal-docsstartup-toolsdocument-automationclaudeai-writingmcpycombinatorsafe-agreementterm-sheet

同类 Skill