Skip to content
Back to skills

Contract Generator

ASecurity

Use when asked to generate legal contracts, agreements, or documents from templates with variable substitution and formatting.

  • 99 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added February 7, 2026
data-aipythonbash

Works with

  • cli

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add dkyazzentwatwa/chatgpt-skills --skill contract-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Contract Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Contract Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dkyazzentwatwa-contract-generator/badge)](https://www.skillsdirectory.com/skills/dkyazzentwatwa-contract-generator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: contract-generator
description: Use when asked to generate legal contracts, agreements, or documents from templates with variable substitution and formatting.
---

# 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

```python
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

```bash
# 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

Files in this skill

  • SKILL.md1.7 KB
  • scripts/contract_generator.py5 KB
  • scripts/requirements.txt34 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.