npx skills add ...
npx skills add ailabs-393/ai-labs-claude-skills --skill business-document-generator
npx skills add ailabs-393/ai-labs-claude-skills --skill business-document-generator
This skill should be used when the user requests to create professional business documents (proposals, business plans, or budgets) from templates. It provides PDF templates and a Python script for generating filled documents from user data.
Generate professional business documents (Project Proposals, Business Plans, Annual Budgets) from high-quality PDF templates. Use the bundled Python script to fill templates with user-provided data and output polished PDF documents ready for distribution.
Activate this skill when the user asks to:
This skill supports three types of professional business documents:
Project Proposal - Professional proposals for client projects
assets/templates/Professional Proposal Template.pdfBusiness Plan - Comprehensive business planning documents
assets/templates/Comprehensive Business Plan Template.pdfAnnual Budget - Detailed budget planning documents
assets/templates/Annual Budget Plan Template.pdfGather information from the user about:
Create a JSON file with the document data. Reference the data schemas in references/document_schemas.md for field requirements.
Example for Proposal:
Note: Check assets/examples/ for complete example JSON files:
proposal_example.jsonbusiness_plan_example.jsonbudget_example.jsonThe generation script requires Python packages. Install them:
Run the generation script:
Parameters:
<document_type>: One of proposal, business_plan, or budget<data_file>: Path to JSON file with document data--templates-dir: Directory containing PDF templates (default: assets/templates)--output-dir: Where to save generated PDFs (default: output)--output-filename: Optional custom filenameExample:
The script outputs a PDF file in the specified output directory. Verify the document was generated successfully and inform the user of the file location.
Collect proposal information:
Create a JSON data file with proposal fields (see references/document_schemas.md)
Run the script:
Output: Professional PDF proposal with cover page and content sections
Collect business plan information:
Create a JSON data file with business plan fields
Run the script:
Output: Comprehensive business plan PDF template
Collect budget information:
Create a JSON data file with budget fields
Run the script:
Output: Annual budget plan PDF with tables and projections
The scripts/generate_document.py script:
The script currently fills in cover page information (titles, names, dates). The template body content serves as a professional framework that users can follow when creating their documents manually or through other PDF editing tools.
To fill additional fields beyond the cover page, the script can be enhanced to:
Modify scripts/generate_document.py to add more sophisticated PDF manipulation as needed.
For detailed information about required and optional fields for each document type, consult:
references/document_schemas.md - Complete data structure documentationFind complete working examples in assets/examples/:
proposal_example.json - Sample project proposal databusiness_plan_example.json - Sample business plan databudget_example.json - Sample budget plan dataUse these as starting templates when creating new documents.
Import errors when running the script:
pip install pypdf reportlabTemplate not found:
--templates-dir points to assets/templatesGenerated PDF is blank or missing data:
references/document_schemas.md)Need to customize templates:
assets/templates/TEMPLATE_MAP in the scriptContains the Python script for document generation:
generate_document.py - Main document generation script with CLI interfaceThis script can be executed directly without loading into context for token efficiency. It may be read if modifications or debugging are needed.
Documentation to reference while working:
document_schemas.md - Complete JSON data structure for all document typesFiles used in the document generation output:
templates/ - Professional PDF templates for each document type
Professional Proposal Template.pdfComprehensive Business Plan Template.pdfAnnual Budget Plan Template.pdfexamples/ - Sample JSON data files demonstrating proper structure
proposal_example.jsonbusiness_plan_example.jsonbudget_example.jsonThese templates and examples are not loaded into context but referenced during generation.
pip install pypdf reportlabpython3 scripts/generate_document.py <document_type> <data_file> \
--templates-dir assets/templates \
--output-dir <output_directory>python3 scripts/generate_document.py proposal my_proposal_data.json \
--templates-dir assets/templates \
--output-dir ./generated_docs