Get the FREE Ultimate OpenClaw Setup Guide →

contract-generator

Scanned
npx machina-cli add skill dkyazzentwatwa/chatgpt-skills/contract-generator --openclaw
Files (1)
SKILL.md
1.7 KB

Contract Generator

Generate professional legal contracts and agreements from templates with variable substitution, formatting, and validation.

Purpose

Contract generation for:

  • Employment agreements and NDAs
  • Service contracts and SOWs
  • Sales and purchase agreements
  • Lease and rental contracts
  • Partnership and operating agreements

Features

  • Template System: Pre-built contract templates
  • Variable Substitution: Replace placeholders with actual values
  • Conditional Sections: Include/exclude based on variables
  • Formatting: Professional DOCX output
  • Validation: Check for missing required fields
  • Batch Generation: Create multiple contracts from CSV

Quick Start

from contract_generator import ContractGenerator

# Generate from template
generator = ContractGenerator()
generator.load_template('templates/nda.docx')
generator.set_variables({
    'party1_name': 'Acme Corp',
    'party2_name': 'John Smith',
    'effective_date': '2024-03-14',
    'jurisdiction': 'California'
})
generator.save('nda_acme_smith.docx')

CLI Usage

# Generate single contract
python contract_generator.py --template nda.docx --vars vars.json --output contract.docx

# Batch generate from CSV
python contract_generator.py --template nda.docx --csv parties.csv --output-dir contracts/

Limitations

  • Templates must be in DOCX format
  • Not a substitute for legal review
  • Does not provide legal advice
  • Complex conditional logic may require custom templates

Source

git clone https://github.com/dkyazzentwatwa/chatgpt-skills/blob/main/contract-generator/SKILL.mdView on GitHub

Overview

Contract Generator creates professional legal contracts from DOCX templates by substituting placeholders with actual values. It supports conditional sections, formatting, and batch generation from CSV, making it ideal for employment agreements, NDAs, service contracts, leases, and more.

How This Skill Works

Load a DOCX template, provide a map of variables, and the system replaces placeholders accordingly. It evaluates conditional sections, formats the final document for professional output, and can batch generate multiple contracts from a CSV file.

When to Use It

  • Creating employment agreements and NDAs for new hires or partners
  • Generating service contracts and SOWs with client-specific terms
  • Drafting sales and purchase agreements with dynamic dates and amounts
  • Producing lease or rental contracts tailored to jurisdiction and parties
  • Building partnership or operating agreements from standardized templates

Quick Start

  1. Step 1: Load a DOCX template with ContractGenerator
  2. Step 2: Set variables for placeholders (e.g., party names, dates, jurisdiction)
  3. Step 3: Save the generated contract to DOCX or run batch generation from a CSV

Best Practices

  • Use DOCX templates with clearly named placeholders
  • List all required fields before running a generation task (especially in batch mode)
  • Leverage conditional sections to tailor clauses per contract
  • Run the validation step to catch missing or mismatched fields
  • Review generated contracts for jurisdiction-specific requirements and counsel approval

Example Use Cases

  • NDA between Acme Corp and John Doe
  • Remote-work employment agreement for a software engineer
  • Software services agreement with a defined SOW and milestones
  • Sales and purchase agreement for equipment with delivery terms
  • Office lease agreement with governing law and rent escalation terms

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers