legal-writer

Draft legal documents in DOCX with test-driven verification and Bluebook citations.

Updated Jun 19, 2026
One-click install
npx skills add https://github.com/MuhammadUA/Axe --skill legal-writer-muhammadua
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: legal-writer
Source: https://github.com/MuhammadUA/Axe/tree/main/.kortix/opencode/skills/GENERAL-KNOWLEDGE-WORKER/legal-writer
Command: npx skills add https://github.com/MuhammadUA/Axe --skill legal-writer-muhammadua

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Legal document drafting is high-stakes, time-consuming, and prone to costly errors like inconsistent defined terms, incorrect citations, missing boilerplate, or formatting that fails court rules. This skill eliminates those risks by automating the full drafting pipeline with built-in verification at every step.

Core Features & Use Cases

  • Full document type support: Draft contracts, legal memoranda, motion briefs, complaints, demand letters, settlement agreements, terms of service, and privacy policies with type-specific section templates.
  • Test-driven verification: Run a 10-point check after every section to catch errors early, validating defined terms, cross-references, Bluebook citations, placeholders, and required boilerplate provisions.
  • Integrated legal research: Search case law via the CourtListener API and look up federal regulations via the eCFR API, with automatic Bluebook citation formatting.
  • Use Case: A transactional attorney can draft a fully compliant services agreement with correct limitation of liability language, alphabetized defined terms, and signature blocks in a fraction of the time, with zero placeholder errors before sending to the counterparty.

Quick Start

Use the legal-writer skill to draft a fully verified non-disclosure agreement for a software development services engagement governed by California law.

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 with built-in Bluebook citation verification?

Automated legal drafting applies test-driven verification to enforce Bluebook citation standards and eliminate formatting errors. It validates defined terms, cross-references, and boilerplate provisions after each section is written to ensure publication-quality DOCX output.

Can I draft a complaint or motion brief and automatically format federal regulation citations?

Yes, you can draft litigation documents like complaints and motion briefs while automatically formatting federal regulation citations. The drafting pipeline integrates the eCFR API for regulation lookup and applies Bluebook citation standards directly during document generation.

What is the best way to generate a fully compliant contract without missing boilerplate provisions?

Generating a compliant contract requires a 10-point verification suite to catch missing boilerplate provisions and placeholder errors. This test-driven approach validates document completeness, alphabetized defined terms, and signature blocks before final export.

Does this legal document automation approach work for transactional agreements like terms of service?

Yes, legal document automation supports transactional agreements including terms of service, privacy policies, and settlement agreements. It applies type-specific section templates and verifies limitation of liability language and defined terms for each document type.

How do I look up case law during contract generation without leaving the drafting workflow?

Contract generation integrates CourtListener API lookup tools directly within the drafting workflow to search case law. This allows you to pull relevant case law and format citations automatically without interrupting the document creation process.

Why do my generated legal documents have inconsistent defined terms and cross-references?

Inconsistent defined terms and cross-references occur when drafting lacks automated verification checks. Implementing a 10-point validation suite after each section catches these consistency errors early, ensuring alphabetized terms and accurate cross-references before finalizing.