doubao-contract-drafting

Drafts Chinese mainland commercial contracts and generates validated Word documents.

2|Updated Aug 9, 2026
One-click install
npx skills add https://github.com/DeepJH/doubao-skill-and-info --skill doubao-contract-drafting-deepjh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doubao-contract-drafting
Source: https://github.com/DeepJH/doubao-skill-and-info/tree/main/skills/doubao-contract-drafting
Command: npx skills add https://github.com/DeepJH/doubao-skill-and-info --skill doubao-contract-drafting-deepjh

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Drafting Chinese commercial contracts manually is slow and error-prone: key facts get missed, risk clauses are inconsistent, and Word output often has wrong fonts, comments, or placeholder text. This Skill turns a user's brief and attachments into a complete, editable DOCX contract with standardized risk allocation and pre-filled commercial parameters. ## Core Features & Use Cases - Deal Extraction & Fact Tagging: Parses DOCX, Markdown, and text attachments into structured JSON, tagging every fact as confirmed, derived, standard term, standard parameter, pending, or disputed. - Scenario-Based Risk Coverage: Maps the transaction to skeleton families (procurement, services, SaaS, development, IP, leasing, data processing, NDA, and more) and applies a scenario risk map so no mandatory risk clause is omitted. - Validated Word Generation: Builds a black-text, comment-free DOCX with correct East Asian fonts, then enforces delivery gates via preflight, consistency, policy, and font checks. - Use Case: A user pastes a procurement brief with an attached requirements document; the Skill drafts a complete purchase contract with default payment terms, acceptance periods, and liability caps, flags blank items, and delivers a ready-to-edit Word file. ## Quick Start Ask the assistant to draft a Chinese commercial contract from your deal description and attachments, for example: draft a software development contract based on this brief and the attached requirements document.

Frequently Asked Questions about doubao-contract-drafting

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

FAQPage Schema
How do I generate a Chinese commercial contract as a Word file?

Provide your deal brief and any attachments; the Skill extracts deal facts, applies skeleton families and risk maps, fills default commercial parameters, and runs generate_docx.py to produce a validated DOCX. Delivery gates must pass before the file is handed over.

What contract types does this drafting workflow support?

It covers goods procurement, services, marketing promotion, engineering and construction, software licensing and SaaS, commissioned development, joint R&D, IP licensing and transfer, leasing, data processing and sharing, and NDAs. Unlisted scenarios fall back to a generic skeleton.

Does it handle cross-border contracts or foreign governing law?

No. The default policies apply only to mainland China commercial contracts. When the deal involves cross-border transactions, foreign parties, foreign law, or overseas dispute resolution, the Skill escalates and requires expert review instead of drafting directly.

What Python dependencies are required to generate the DOCX?

The generate_docx.py script requires the python-docx library. Other scripts use only the Python standard library. If python-docx is missing, the Skill reports the gap rather than modifying the user environment.

Why does contract validation fail before delivery?

Validation fails when the draft contains textual placeholders, implied acceptance or auto-renewal clauses, duplicate clause numbering, missing pre-filled parameters, or text runs without East Asian fonts. Each failing gate prints specific errors that must be fixed and re-checked.