legal-writer

Draft legal documents into DOCX with per-section verification and citations.

7|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/KrishavRajSingh/computer --skill legal-writer-krishavrajsingh
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: legal-writer
Source: https://github.com/KrishavRajSingh/computer/tree/main/sandbox/opencode/skills/legal-writer
Command: npx skills add https://github.com/KrishavRajSingh/computer --skill legal-writer-krishavrajsingh

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Drafting legal documents is time-consuming and error-prone without a structured, verifiable workflow that ensures accuracy and proper citations.

Core Features & Use Cases

  • End-to-end legal document drafting in DOCX format (contracts, memos, briefs, complaints, demand letters, opinions, and more).
  • Built-in Bluebook citation support, court and regulatory lookups (CourtListener API and eCFR), with per-section verification and test-driven quality checks.
  • Guided workflow from scaffold to final verification, including per-section drafting, cross-references, terminology consistency, and automated formatting suitable for court filings.
  • Real-world example: produce a complete Services Agreement with defined terms, citations, and a structured DOCX ready for review.

Quick Start

Draft a new contract using the legal-writer skill and begin with a basic services agreement scaffold.

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 document drafting into DOCX format?▼

Automate legal document drafting into DOCX format by using a test-driven workflow that assembles contracts section-by-section, applies automated formatting, and runs structural validation checks for court filings.

Can I validate Bluebook citations and regulatory references during legal drafting?▼

Yes, you can validate Bluebook citations during legal drafting by performing court and regulatory lookups using the CourtListener API and eCFR, ensuring authority and citations are verified per-section.

What is a test-driven workflow for generating legal documents?▼

A test-driven workflow for generating legal documents involves drafting per-section, verifying structure and formatting with a dedicated validation script, and enforcing quality control before assembling the final DOCX output.

Does python-docx support automated formatting and cross-references for court filings?▼

python-docx supports generating DOCX files for court filings by enabling automated formatting, structured cross-references, defined terms, and terminology consistency throughout the legal document assembly process.

What do I need to set up before generating a services agreement with legal citations?▼

Before generating a services agreement, you need to scaffold a metadata.json file, configure a DOCX generator, and prepare a validation script to enforce test-driven quality control and formatting checks.

What are the limitations of automated legal drafting workflows?▼

Automated legal drafting workflows require a scaffolded metadata.json and explicit validation scripts to maintain quality, meaning manual review is still necessary to verify complex legal arguments and final compliance before filing.