contract-gen

contract-gen is a skill for Claude Code, Codex from LawMotion-AI/Vibe-Lawyering. It costs 135 tokens per session (2,185 once invoked), scanned A, a copy of contract-gen, MIT.

A contract-drafting workflow that turns business details into a complete legal agreement in Markdown, with optional Word document output. It gathers the contract type, parties, background, business terms, position, and special requirements before drafting and checking the result.

In plain words
What is it for?
Use it to draft sales, service, lease, employment, construction, partnership, loan, and equity-transfer agreements, then run a quality check and optionally export the result to .docx.
Why use it?
It helps avoid missing essential information and adapts important terms to the user’s side of the deal, such as buyer, seller, landlord, or tenant.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to draft sales, service, lease, employment, construction, partnership, loan, and equity-transfer agreements, then run a quality check and optionally export the result to .docx.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lawmotion-ai/vibe-lawyering/contract-gen
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LawMotion-AI/Vibe-Lawyering --skill contract-gen
Clone the repo
git clone --depth 1 https://github.com/LawMotion-AI/Vibe-Lawyering

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for contract-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/lawmotion-ai/vibe-lawyering/contract-gen/github.svg)](https://agentmods.dev/skills/lawmotion-ai/vibe-lawyering/contract-gen)
Your own site
<a href="https://agentmods.dev/skills/lawmotion-ai/vibe-lawyering/contract-gen"><img src="https://agentmods.dev/badge/skills/lawmotion-ai/vibe-lawyering/contract-gen/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for contract-gen

Your own site · 80×15
<a href="https://agentmods.dev/skills/lawmotion-ai/vibe-lawyering/contract-gen"><img src="https://agentmods.dev/badge/skills/lawmotion-ai/vibe-lawyering/contract-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,185 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00135 $0.02185
Opus 5 $0.00068 $0.01092
Sonnet 5 $0.00027 $0.00437
Haiku 4.5 $0.00014 $0.00218

Measured 12d ago against content hash 342e852ff968, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

contract-gen scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/generate_contract.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

88% identical to contract-gen — 11 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agent-skills/legal-assistant-skills/contract-gen/SKILL.md · 181 lines

How it starts

The opening of the file, as written. The whole thing — 181 lines — stays where its author put it; the contents beside it link to each section on GitHub.

合同生成

以资深法律专家身份,根据用户提供的信息生成完整、严谨的合同。三阶段工作流:信息收集 → 合同生成 → 质量校验与输出。

工作流程

用户输入
    │
    ▼
[阶段一] 信息收集与完整性检查
    │  检查 6 项输入 → 关键信息缺失则补全
    │
    ▼
[阶段二] 合同生成
    │  加载框架 → 应用立场 → 类型适配 → 生成合同
    │
    ▼
[阶段三] 质量校验与输出
    │  自检 → 输出 .md → 可选 .docx

阶段一:信息收集与完整性检查

收集以下 6 项输入信息:

序号 信息项 是否必填 说明
1 合同类型 必填 如:销售合同、服务合同、租赁合同、劳动合同、建设工程合同、合伙协议、借款合同、股权转让协议等
2 合同立场 必填 如:买受方/出卖方、甲方/乙方、出租方/承租方、用人单位/劳动者
3 合同背景 必填 合同签订的背景、目的、缘由
4 主体信息 必填 各方当事人的名称/姓名、证件号码、联系方式、地址等
5 业务模式 必填 核心业务条款:标的物/服务内容、价款、付款方式、交付方式、期限等
6 其他要求 选填 特殊条款要求、行业惯例、参考模板等

执行规则:

  1. 自适应模式:如用户已在初始消息中提供了全部关键信息,直接进入阶段二,不做多余确认
  2. 关键信息缺失时:直接向用户提问以补全缺失的关键信息。关键信息指法律上必需的要素(如主体身份、标的物、价款、履行方式等),而非表达是否专业
  3. 无单独优化步骤:不对用户输入做单独的优化确认。无论用户使用专业法律术语还是日常自然语言,只要关键内容表达清楚,在阶段二生成合同时自动融入专业化表述
  4. 信息推断:对于用户未明确但可合理推断的信息(如国内合同适用中国法律),可直接推断填入;对于无法推断的具体数据(如金额、日期),使用 [____] 占位符

阶段二:合同生成

按以下步骤生成合同:

2.1 加载合同框架

读取 references/00-合同框架.md,获取合同框架(含 6 个结构元素 + 17 类实质条款)及起草要点。

2.2 应用立场策略

读取 references/01-立场策略.md,根据用户选择的立场,对价款、违约、风险转移、争议管辖等关键条款进行倾斜设计。

立场应用原则:

  • 倾斜必须在法律允许范围内,不违反强制性规定
  • 倾斜应当合理,过度倾斜可能导致条款被认定无效
  • 对方利益也应有基本保障,避免显失公平

2.3 合同类型适配

读取 references/02-合同类型适配.md,根据合同类型:

  • 增加该类型的必备条款
  • 删除不适用的条款
  • 应用该类型的特殊规则

回退策略: 如用户要求的合同类型未在适配规则中列出(如保密协议、特许经营合同、保险合同等),则仅使用通用合同框架,结合该类型的行业惯例和法律要求自行判断条款增删。

2.4 生成合同正文

以资深法律专家身份,综合以上信息生成完整的 Markdown 格式合同。

生成原则:

  1. 立场明确但合法:立场倾斜不得违反法律强制性规定
  2. 智能增删条款:根据合同类型和业务模式增删条款,不生成无关条款
  3. 术语准确:使用准确的法律术语,避免"合理时间""适当方式"等模糊表述
  4. 占位符规范:用户未提供的具体数字使用 [____] 占位符
  5. 仅输出合同正文:不输出说明性前后缀、致谢、提示语
  6. 附免责声明:合同末尾附免责声明,与合同正文以分隔线隔开

Markdown 格式要求:

  • 合同标题使用一级标题(#
  • 章节标题使用二级标题(##
  • 条款使用有序列表或层级编号
  • 金额、日期等关键信息使用加粗
  • 不使用代码块标记包裹合同正文

免责声明模板:

---

**免责声明:** 本合同由 AI 辅助生成,仅供参考,不构成正式法律意见。建议在签署前由专业律师审核。具体条款应根据实际情况和当地法律法规进行调整。

阶段三:质量校验与输出

3.1 质量自检

references/03-质量标准.md 对生成的合同进行自检,覆盖五个维度:

Read the full file on GitHub · 181 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 181 lines · 135 tokens per session scan A 342e852ff968

Subscribe to this mod's changes

contract-gen is a skill published in the GitHub repository LawMotion-AI/Vibe-Lawyering (20 stars, last pushed 4mo ago), licensed MIT. It adds 135 tokens to every session and 2,185 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to contract-gen, differing in 11 lines, and is treated as a copy.

Related

Other skills, from other repositories

specification-writing

A workflow for writing complete patent specifications from patent claims and an invention disclosure. It adapts the document to a chosen jurisdiction, such as the US, Europe, or China.

wanshuiyin/Auto-claude-code-research-in-sleep · 49 tokens

regulatory-research-fallback

Fallback workflow for regulatory research when web extraction tools fail on government PDFs.

HKUDS/OpenSpace · 20 tokens

x-scorecard

OpenSSF Scorecard for assessing open source project security. Check security best practices and compliance. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

x-cmd/x-cmd · 57 tokens

gesellschaftsrechtliche-satzungen-agb

Für Gesellschaftsrechtliche Satzungen AGB Abgrenzung: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt. Fachgebiet: AGB-Recht-Prüfer. Route: gesellschaftsrechtliche-satzungen-agb.

Klotzkette/claude-fuer-deutsches-recht · 69 tokens

memstack-business-gdpr

Use this skill when the user says 'GDPR', 'data protection', 'privacy compliance', 'DPA', 'DSAR', 'data subject request', 'cookie consent', 'privacy audit', 'CCPA', or asks 'do I need GDPR for this repo'. Scans the repository to detect what personal data is collected, classifies sensitivity, determines whether GDPR…

cwinvestments/memstack · 121 tokens

nda-review

Use when the user uploads or pastes a non-disclosure agreement and asks for review, redline, risk assessment, or a recommendation on whether to sign. Identifies missing standard protections, one-sided or unusual provisions, and operational issues; produces a structured report with severity ratings and citations to…

LegalQuants/lq-ai · 79 tokens