contract-template by claude-office-skills/skills
npx skills add https://github.com/claude-office-skills/skills --skill contract-template此技能支持使用 Accord Project 创建智能合同模板——这是一个用于创建具有法律效力、机器可读合同的开源框架。创建包含嵌入式逻辑的模板,以实现合同执行的自动化。
示例提示:
contract-template/
├── package.json # 元数据
├── grammar/
│ └── template.tem.md # 自然语言模板
├── model/
│ └── model.cto # 数据模型
├── logic/
│ └── logic.ergo # 业务逻辑
└── text/
└── sample.md # 合同示例
# 服务协议
本协议由 [{supplier}]("供应商")和 [{buyer}]("买方")共同订立。
## 服务
供应商同意提供 [{serviceDescription}]。
## 付款
买方应在发票开具后 [{paymentDays}] 天内支付 [{paymentAmount}]。
## 期限
本协议自 [{startDate as "MMMM DD, YYYY"}] 起生效,持续 [{termMonths}] 个月。
{{#if latePenalty}}
## 延迟付款
延迟付款将适用 [{penaltyPercent}]% 的罚金。
{{/if}}
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
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
}
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
}
}
}
# 安装
npm install -g @accordproject/cicero-cli
# 解析合同
cicero parse --template ./contract-template --sample ./text/sample.md
# 执行逻辑
cicero trigger --template ./contract-template \
--sample ./text/sample.md \
--request ./request.json
# 起草新合同
cicero draft --template ./contract-template --data ./data.json
# 保密协议
本保密协议("协议")自 [{effectiveDate as "MMMM DD, YYYY"}] 起,由以下双方订立:
**披露方:** [{disclosingParty}]
**接收方:** [{receivingParty}]
## 1. 保密信息
"保密信息"指披露方披露的所有非公开信息,包括但不限于:
[{confidentialScope}]。
## 2. 义务
接收方同意:
- 保持 [{termYears}] 年的保密性
- 仅将信息用于 [{permittedPurpose}]
- 未经书面同意不得向第三方披露
## 3. 例外情况
本协议不适用于以下信息:
{{#if hasExclusions}}
[{exclusions}]
{{else}}
- 已经或成为公开可用的信息
- 披露前已为接收方所知的信息
- 独立开发的信息
{{/if}}
## 4. 材料归还
协议终止后,接收方应在 [{returnDays}] 天内归还或销毁所有保密信息。
## 5. 补救措施
{{#if monetaryPenalty}}
违反本协议将导致 [{penaltyAmount}] 的预定损害赔偿。
{{else}}
披露方有权寻求禁令救济。
{{/if}}
**签名**
披露方:____________________
日期:____________________
接收方:____________________
日期:____________________
{
"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"
}
每周安装数
78
代码仓库
GitHub 星标数
7
首次出现
3 天前
安全审计
安装于
claude-code66
gemini-cli24
github-copilot24
codex24
kimi-cli24
amp24
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.
Example prompts:
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
# Service Agreement
This Agreement is made between [{supplier}] ("Supplier")
and [{buyer}] ("Buyer").
## Services
The Supplier agrees to provide [{serviceDescription}].
## Payment
The Buyer shall pay [{paymentAmount}] within
[{paymentDays}] days of invoice.
## Term
This Agreement begins on [{startDate as "MMMM DD, YYYY"}]
and continues for [{termMonths}] months.
{{#if latePenalty}}
## Late Payment
A penalty of [{penaltyPercent}]% applies to late payments.
{{/if}}
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
}
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
}
}
}
# Install
npm install -g @accordproject/cicero-cli
# Parse contract
cicero parse --template ./contract-template --sample ./text/sample.md
# Execute logic
cicero trigger --template ./contract-template \
--sample ./text/sample.md \
--request ./request.json
# Draft new contract
cicero draft --template ./contract-template --data ./data.json
# 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: ____________________
{
"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"
}
Weekly Installs
78
Repository
GitHub Stars
7
First Seen
3 days ago
Security Audits
Gen Agent Trust HubPassSocketFailSnykPass
Installed on
claude-code66
gemini-cli24
github-copilot24
codex24
kimi-cli24
amp24
GitHub Actions 官方文档查询助手 - 精准解答 CI/CD 工作流问题
22,500 周安装