Contract Template

作者 claude-office-skills9c4c7d5cd281MIT499 个星标收录于 2026年10月8日更新于 2026年10月8日仓库8个月前更新

>

AI 生成的概览

生成带有变量、数据模型和业务逻辑的 Accord Project 合同模板。

功能
该技能生成 Accord Project 格式的机器可读合同模板,包括自然语言模板文本、Concerto 数据模型和 Ergo 业务逻辑。它涵盖保密协议、服务协议、租赁协议和咨询合同等类型,支持可变条款和条件化条款。它还说明了用于解析、触发和起草合同的 Cicero CLI 命令。
适用场景
当你需要可复用、条款可参数化并带有自动化条款逻辑的合同模板时使用。适用于保密协议、服务协议或租赁协议等需要由结构化数据填充的法律或行政起草任务。
运行要求
需要 office-mcp MCP 服务器及 create_docx 和 fill_docx_template 工具。文档中的 Cicero CLI 流程需要 Node.js 以及全局安装的 @accordproject/cicero-cli 包。该技能不附带脚本。

Contract Template Skill

Overview

This skill enables creation of smart contract templates using Accord Project - an open-source framework for legally enforceable, machine-readable contracts. Create templates with embedded logic that can automate contract execution.

How to Use

  1. Describe the contract type and terms
  2. Specify variables and logic rules
  3. I'll generate Accord Project template

Example prompts:

  • "Create an NDA template with variable terms"
  • "Build a service agreement with payment milestones"
  • "Generate a rental agreement template"
  • "Design a consulting contract with termination clauses"

Domain Knowledge

Template Structure

contract-template/├── package.json           # Metadata├── grammar/│   └── template.tem.md    # Natural language template├── model/│   └── model.cto          # Data model├── logic/│   └── logic.ergo         # Business logic└── text/    └── sample.md          # Sample contract

Template Syntax (TemplateMark)

markdown
# Service Agreement
This Agreement is made between [{supplier}] ("Supplier") and [{buyer}] ("Buyer").
## ServicesThe Supplier agrees to provide [{serviceDescription}].
## PaymentThe Buyer shall pay [{paymentAmount}] within [{paymentDays}] days of invoice.
## TermThis Agreement begins on [{startDate as "MMMM DD, YYYY"}] and continues for [{termMonths}] months.
{{#if latePenalty}}## Late PaymentA penalty of [{penaltyPercent}]% applies to late payments.{{/if}}

Data Model (Concerto)

cto
namespace org.example.service
import org.accordproject.time.*
asset ServiceAgreement extends Contract {  o String supplier  o String buyer  o String serviceDescription  o Double paymentAmount  o Integer paymentDays  o DateTime startDate  o Integer termMonths  o Boolean latePenalty optional  o Double penaltyPercent optional}
transaction PaymentRequest {  o Double amount  o DateTime dueDate}
transaction PaymentResponse {  o Double amount  o Double penalty  o DateTime paymentDue}

Business Logic (Ergo)

ergo
namespace org.example.service
import org.accordproject.time.*
contract ServiceContract over ServiceAgreement {    clause payment(request : PaymentRequest) : PaymentResponse {    let dueDate = addDuration(request.dueDate,                               Duration{ amount: contract.paymentDays, unit: ~org.accordproject.time.TemporalUnit.days });        let penalty =       if contract.latePenalty      then request.amount * contract.penaltyPercent / 100.0      else 0.0;        return PaymentResponse{      amount: request.amount,      penalty: penalty,      paymentDue: dueDate    }  }}

Using Cicero CLI

bash
# Installnpm install -g @accordproject/cicero-cli
# Parse contractcicero parse --template ./contract-template --sample ./text/sample.md
# Execute logiccicero trigger --template ./contract-template \  --sample ./text/sample.md \  --request ./request.json
# Draft new contractcicero draft --template ./contract-template --data ./data.json

Example: NDA Template

template.tem.md

markdown
# Non-Disclosure Agreement
This Non-Disclosure Agreement ("Agreement") is entered into as of [{effectiveDate as "MMMM DD, YYYY"}] by and between:
**Disclosing Party:** [{disclosingParty}]**Receiving Party:** [{receivingParty}]
## 1. Confidential Information
"Confidential Information" means all non-public information disclosed by the Disclosing Party, including but not limited to:[{confidentialScope}].
## 2. Obligations
The Receiving Party agrees to:- Maintain confidentiality for [{termYears}] years- Use information only for [{permittedPurpose}]- Not disclose to third parties without written consent
## 3. Exclusions
This Agreement does not apply to information that:{{#if hasExclusions}}[{exclusions}]{{else}}- Is or becomes publicly available- Was known prior to disclosure- Is independently developed{{/if}}
## 4. Return of Materials
Upon termination, the Receiving Party shall return or destroy all Confidential Information within [{returnDays}] days.
## 5. Remedies
{{#if monetaryPenalty}}Breach of this Agreement shall result in liquidated damages of [{penaltyAmount}].{{else}}The Disclosing Party shall be entitled to seek injunctive relief.{{/if}}
**SIGNATURES**
Disclosing Party: ____________________Date: ____________________
Receiving Party: ____________________Date: ____________________

data.json

json
{  "effectiveDate": "2024-01-15",  "disclosingParty": "Tech Corp",  "receivingParty": "Consultant LLC",  "confidentialScope": "trade secrets, customer lists, and technical specifications",  "termYears": 3,  "permittedPurpose": "evaluating a potential business relationship",  "hasExclusions": false,  "returnDays": 30,  "monetaryPenalty": true,  "penaltyAmount": "$50,000"}

Resources

来源与署名

来源:claude-office-skills/skills位于contract-template提交9c4c7d5

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架