mcpField
C
contract-generator

contract-generator

github.com/dkyazzentwatwaDocuments12475 installsUpdated 29w ago
Repository

About contract-generator

contract-generator creates formatted contracts from DOCX templates and supplied values for teams preparing individual or batch agreements. It supports conditional sections and required-field checks, but does not provide legal advice; generated contracts still need legal review.

Key features

  1. 01Built-in contract templates
  2. 02Placeholder substitution
  3. 03Variable-based conditional sections
  4. 04Formatted DOCX output
  5. 05Required-field validation
  6. 06CSV batch generation

Use cases

  1. 01Draft employment agreements and NDAs
  2. 02Prepare service contracts and SOWs
  3. 03Generate sales, lease, or partnership agreements in batches

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/dkyazzentwatwa/chatgpt-skills --skill contract-generator

After installing, type/contract-generatorin Claude Code to confirm it loaded.

Bundled filesscripts/contract_generator.pyscripts/requirements.txt

Details

From the project README

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

Comments

Markdown supported