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 從公開儲存庫中收錄這些內容。

檢舉或申請下架