document-assembler

Assemble contract drafts from precedent deal sections using Python scripts.

Updated Jan 13, 2026
One-click install
npx skills add https://github.com/aech-ai/aech-cli-legal --skill document-assembler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: document-assembler
Source: https://github.com/aech-ai/aech-cli-legal/tree/main/aech_cli_legal/skills/document-assembler
Command: npx skills add https://github.com/aech-ai/aech-cli-legal --skill document-assembler

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps legal teams quickly assemble coherent contract documents by pulling provisions from precedent deals and assembling them into a new draft, reducing manual drafting time and ensuring consistency across deals.

Core Features & Use Cases

  • Precedent-based assembly: Pull clauses from multiple precedent deals and compile them into a draft.
  • Template-driven drafting: Apply a base contract template and fill sections accordingly.
  • Use Case: Draft a purchase agreement by selecting definitions from Acme deal and indemnification from Beta deal to generate a first draft.

Quick Start

Run the assembler with a template and section mappings to produce a draft, for example: python scripts/assemble_document.py --template standard-apa --sections definitions:acme-deal,indemnification:beta-deal --output draft.docx

Frequently Asked Questions about document-assembler

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

FAQPage Schema
How do I assemble a contract from multiple precedent deals?

You can assemble a contract from precedent deals by running the assembler script with a template and section mappings to pull provisions from prior transactions and compose a new draft document.

What is precedent-based contract drafting?

Precedent-based contract drafting pulls clauses from multiple prior transactions and compiles them into a new draft document, reducing manual drafting time and ensuring consistency across deals.

Can I draft a purchase agreement by selecting clauses from different precedent deals?

Yes, you can draft a purchase agreement by selecting definitions from one precedent deal and indemnification clauses from another, generating a first draft composed of provisions from multiple prior transactions.

Do I need Python scripts to run the contract template assembler?

Yes, contract template assembly relies on included Python scripts and the aech-cli-legal CLI to execute template-based document assembly with section mappings and an output path.

What's the best way to generate a draft agreement from prior transactions?

The best way to generate a draft agreement from prior transactions is to apply a base contract template, map sections to specific precedent deals, and use the assembler script to produce a formatted draft document.

Why does template-driven contract drafting need section mappings?

Template-driven contract drafting needs section mappings to identify which provisions to pull from specific precedent deals, ensuring the assembler composes a coherent document from multiple sources into the correct template sections.