legal-writer

Generate and verify legal documents in DOCX format using test-driven methodology.

6|4|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/kortix-ai/kortix-registry --skill legal-writer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: legal-writer
Source: https://github.com/kortix-ai/kortix-registry/tree/main/files/skills/legal-writer
Command: npx skills add https://github.com/kortix-ai/kortix-registry --skill legal-writer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the drafting of complex legal documents, ensuring accuracy, consistency, and adherence to legal writing standards through a test-driven development (TDD) approach.

Core Features & Use Cases

  • Document Generation: Drafts contracts, memos, briefs, complaints, and more in DOCX format.
  • Test-Driven Workflow: Verifies each section against predefined rules before proceeding, ensuring quality.
  • Legal Research Integration: Connects to CourtListener and eCFR APIs for case law and regulation lookups.
  • Use Case: A lawyer needs to draft a complex service agreement. This Skill guides them through structuring the document, writing each clause, verifying citations, and ensuring all legal requirements are met, outputting a polished, verified DOCX file.

Quick Start

Use the legal-writer skill to draft a service agreement between Acme Corporation and Jane Smith Consulting LLC.

Frequently Asked Questions about legal-writer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate legal drafting and output verified contracts in DOCX?

Automate legal drafting by using a test-driven methodology that generates contracts, memos, and briefs, verifying each section against predefined rules before outputting a polished DOCX file.

What is test-driven legal document generation and how does it ensure compliance?

Test-driven legal document generation is a workflow that verifies each document section against predefined legal rules before proceeding, ensuring strict adherence to legal writing standards and jurisdiction-specific formatting.

Can I use CourtListener and eCFR APIs for legal research and citation lookups during document generation?

Yes, document generation integrates directly with CourtListener and eCFR APIs, enabling automated case law and regulation lookups to verify citations within the drafting workflow.

How do I draft jurisdiction-specific legal briefs and complaints?

Draft jurisdiction-specific briefs and complaints by guiding the structuring process, writing and verifying each clause against legal requirements, and ensuring strict jurisdiction-specific formatting in the final output.

Does python-docx support strict legal writing standards for DOCX output?

Yes, python-docx generates DOCX files while the test-driven workflow enforces strict adherence to legal writing standards, verifying each section against predefined rules before finalizing the document.

When should I not use a test-driven approach for legal document generation?

Avoid test-driven legal document generation for rapid, unstructured drafting where predefined legal rules are unavailable, as the workflow requires verifying each section against specific criteria before proceeding.