Token导航 LogoToken导航

Agent Skill · 待分类

contract-drafter(合同起草人)

contract-drafter 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

contract-drafter 是待分类类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为权限未标注;许可证信息还不明确,第三方扫描已通过,按安装量在待分类类的 11,209 个 Skill 里排第 757。

总安装 8,097周安装 308GitHub Stars 3下载 3,133核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:contract-drafter(合同起草人)
来源仓库:https://github.com/jmsktm/claude-settings
仓库路径:skills/contract-drafter
安装命令:
npx skills add https://github.com/jmsktm/claude-settings --skill 'Contract Drafter'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jmsktm/claude-settings --skill 'Contract Drafter'

这个 Skill 是做什么的

这个 Skill 的分类还没最终确定,用法以来源仓库的说明为准。

contract-drafter 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。适用于合同起草、法律文书撰写与协议模板生成。

通过 npx skills add 命令从 GitHub 仓库安装,支持多宿主环境集成。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/contract-drafter

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/jmsktm/claude-settings --skill 'Contract Draft…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    权限没有明确标注,第一次使用时只给一个无关紧要的任务,观察它到底读了哪些文件和网络。

常见问题

6 条

contract-drafter 怎么安装?

在终端执行 npx skills add https://github.com/jmsktm/claude-settings --skill 'Contract Drafter'。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

contract-drafter 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

contract-drafter 需要什么权限?

权限级别没有明确标注。第一次使用时建议只给无关紧要的任务,观察它实际读写了哪些内容。

contract-drafter 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

contract-drafter 用的人多吗?

公开数据是累计安装 8,097 次,近一周安装 308 次,下载 3,133 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

contract-drafter 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理待分类类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

待分类类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
infsh-cli

infsh CLI · Codex、Claude

4,374,576382权限未标注未明确未收录
ai-video-generation

AI 视频生成 · Codex、Claude

4,313,376382调用外部服务未明确有提醒
lark-openapi-explorer

云雀 OpenAPI 浏览器 · Codex、Claude

2,064,1209,011需要联网未明确有提醒
lark-workflow-standup-report

Lark 工作流程站立报告 · Codex、Claude

2,041,6328,978需要联网未明确通过
use-my-browser

使用我的浏览器 · Codex、Claude

1,848,49140操作浏览器未明确未通过
contract-drafter

合同起草人 · 本页

8,0973权限未标注未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Contract Drafter

The Contract Drafter skill automates the generation of legal contracts and agreements from templates. It handles variable substitution, conditional clauses, signature blocks, and document formatting. This skill is essential for creating NDAs, service agreements, employment contracts, and other legal documents consistently and efficiently.

IMPORTANT DISCLAIMER: This skill generates documents from templates and does NOT provide legal advice. All generated contracts should be reviewed by a qualified attorney before use. The skill is designed to streamline document creation, not replace legal counsel.

Core Workflows

Workflow 1: Generate from Standard Template

Purpose: Create a contract from a pre-defined template with variable substitution

Steps:

  1. Select contract type (NDA, Service Agreement, etc.)
  2. Load template with placeholders
  3. Collect required information (parties, dates, terms)
  4. Validate all required fields are present
  5. Substitute variables in template
  6. Handle conditional clauses based on parameters
  7. Generate final document (PDF or DOCX)
  8. Add signature blocks and execution details

Implementation:

const Docxtemplater = require('docxtemplater');
const PizZip = require('pizzip');
const fs = require('fs');

function generateContract(templatePath, contractData, outputPath) {
  // Load template
  const content = fs.readFileSync(templatePath, 'binary');
  const zip = new PizZip(content);

  const doc = new Docxtemplater(zip, {
    paragraphLoop: true,
    linebreaks: true
  });

  // Prepare data with defaults and calculations
  const data = {
    // Party information
    party1Name: contractData.party1.name,
    party1Address: contractData.party1.address,
    party1Email: contractData.party1.email,
    party2Name: contractData.party2.name,
    party2Address: contractData.party2.address,
    party2Email: contractData.party2.email,

    // Contract details
    effectiveDate: contractData.effectiveDate,
    expirationDate: contractData.expirationDate,
    term: contractData.term || 'one (1) year',

    // Financial terms (if applicable)
    paymentAmount: contractData.paymentAmount,
    paymentSchedule: contractData.paymentSchedule,
    currency: contractData.currency || 'USD',

    // Specific terms
    scope: contractData.scope,
    deliverables: contractData.deliverables,

    // Conditional clauses
    includeNonCompete: contractData.includeNonCompete || false,
    nonCompetePeriod: contractData.nonCompetePeriod || '12 months',
    nonCompeteRadius: contractData.nonCompeteRadius || '50 miles',

    includeConfidentiality: contractData.includeConfidentiality !== false,
    confidentialityPeriod: contractData.confidentialityPeriod || '5 years',

    // Governing law
    governingState: contractData.governingState || 'Delaware',
    governingCountry: contractData.governingCountry || 'United States',

    // Dates
    currentDate: new Date().toLocaleDateString(),
    currentYear: new Date().getFullYear()
  };

  // Render template
  doc.setData(data);
  doc.render();

  // Save output
  const buf = doc.getZip().generate({
    type: 'nodebuffer',
    compression: 'DEFLATE'
  });

  fs.writeFileSync(outputPath, buf);

  return {
    outputPath,
    contractType: contractData.contractType,
    parties: [data.party1Name, data.party2Name],
    effectiveDate: data.effectiveDate
  };
}

Workflow 2: NDA Generator

Purpose: Create Non-Disclosure Agreements with standard or custom terms

Steps:

  1. Identify NDA type (mutual or one-way)
  2. Collect party information
  3. Define confidential information scope
  4. Set disclosure term and duration
  5. Specify exclusions from confidentiality
  6. Add remedies and jurisdiction clauses
  7. Generate signature pages
  8. Create final NDA document

Implementation:

function generateNDA(ndaData, outputPath) {
  const templatePath = ndaData.type === 'mutual'
    ? './templates/mutual-nda.docx'
    : './templates/one-way-nda.docx';

  const contractData = {
    contractType: 'Non-Disclosure Agreement',

    // Parties
    party1: ndaData.disclosingParty,
    party2: ndaData.receivingParty,

    // NDA-specific terms
    effectiveDate: ndaData.effectiveDate || new Date().toISOString().split('T')[0],
    confidentialityPeriod: ndaData.confidentialityPeriod || '3 years',

    // Purpose of disclosure
    purpose: ndaData.purpose || 'evaluation of a potential business relationship',

    // Scope definition
    confidentialDefinition: ndaData.confidentialDefinition || `any non-public information disclosed by the Disclosing Party to the Receiving Party, whether orally, in writing, or in any other form`,

    // Exclusions
    exclusions: [
      'Information that is publicly available through no breach of this Agreement',
      'Information rightfully received from a third party without breach of any confidentiality obligation',
      'Information independently developed without use of Confidential Information',
      'Information required to be disclosed by law or court order'
    ],

    // Return of materials clause
    includeReturnClause: ndaData.includeReturnClause !== false,
    returnPeriod: ndaData.returnPeriod || '30 days',

    // Governing law
    governingState: ndaData.governingState,
    arbitration: ndaData.arbitration || false
  };

  return generateContract(templatePath, contractData, outputPath);
}

// Example usage:
const nda = generateNDA({
  type: 'mutual',
  disclosingParty: {
    name: 'Acme Corp',
    address: '123 Business St, City, State 12345',
    email: 'legal@acme.com'
  },
  receivingParty: {
    name: 'Widget LLC',
    address: '456 Commerce Ave, City, State 67890',
    email: 'contracts@widget.com'
  },
  purpose: 'evaluation of potential partnership for joint product development',
  confidentialityPeriod: '5 years',
  governingState: 'California'
}, './output/nda-acme-widget.docx');

Workflow 3: Service Agreement Generator

Purpose: Create service contracts with scope, deliverables, and payment terms

Steps:

  1. Define service provider and client information
  2. Specify scope of services in detail
  3. List deliverables and timelines
  4. Set payment terms (fixed, hourly, milestone-based)
  5. Define intellectual property ownership
  6. Add termination clauses
  7. Include liability limitations
  8. Generate agreement with all terms

Implementation:

function generateServiceAgreement(serviceData, outputPath) {
  const contractData = {
    contractType: 'Service Agreement',

    party1: serviceData.serviceProvider,
    party2: serviceData.client,

    effectiveDate: serviceData.effectiveDate,
    term: serviceData.term || 'ongoing until completion',

    // Scope of services
    scope: serviceData.services.map(s => s.description).join('\n'),
    deliverables: serviceData.deliverables,

    // Payment terms
    paymentStructure: serviceData.paymentStructure, // 'fixed', 'hourly', 'milestone'
    totalAmount: serviceData.totalAmount,
    hourlyRate: serviceData.hourlyRate,
    milestones: serviceData.milestones || [],
    paymentSchedule: serviceData.paymentSchedule,
    paymentTerms: serviceData.paymentTerms || 'Net 30',

    // Intellectual property
    ipOwnership: serviceData.ipOwnership || 'client', // 'client', 'provider', 'shared'
    includeWorkForHire: serviceData.includeWorkForHire !== false,

    // Termination
    terminationNotice: serviceData.terminationNotice || '30 days',
    includeTerminationForConvenience: serviceData.includeTerminationForConvenience !== false,

    // Liability
    liabilityLimit: serviceData.liabilityLimit || 'total amount paid under this Agreement',
    includeIndemnification: serviceData.includeIndemnification !== false,

    // Confidentiality
    includeConfidentiality: true,
    confidentialityPeriod: '3 years',

    governingState: serviceData.governingState
  };

  return generateContract('./templates/service-agreement.docx', contractData, outputPath);
}

Workflow 4: Clause Library Management

Purpose: Manage reusable contract clauses for different situations

Steps:

  1. Define clause library with categories
  2. Store standard clauses with variables
  3. Create clause variations for different scenarios
  4. Tag clauses by jurisdiction and type
  5. Allow clause selection during contract generation
  6. Support custom clause insertion
  7. Maintain clause version history

Implementation:

const clauseLibrary = {
  confidentiality: {
    standard: `The Receiving Party shall hold in strict confidence and not disclose to any third parties any Confidential Information disclosed by the Disclosing Party, except as approved in writing by the Disclosing Party.`,

    withExceptions: `The Receiving Party shall hold in strict confidence and not disclose to any third parties any Confidential Information disclosed by the Disclosing Party, except: (a) to its employees, contractors, and advisors who have a legitimate need to know and are bound by confidentiality obligations; or (b) as required by law.`,

    mutual: `Each Party agrees to hold the other Party's Confidential Information in strict confidence and to use such information solely for the purposes of {purpose}.`
  },

  termination: {
    forConvenience: `Either Party may terminate this Agreement at any time, with or without cause, upon {terminationNotice} written notice to the other Party.`,

    forCause: `Either Party may terminate this Agreement immediately upon written notice if the other Party materially breaches this Agreement and fails to cure such breach within {cureperiod} days after receiving written notice thereof.`,

    combined: `Either Party may terminate this Agreement: (a) for convenience upon {terminationNotice} written notice; or (b) immediately for cause if the other Party materially breaches this Agreement and fails to cure within {curePeriod} days.`
  },

  liability: {
    limitation: `IN NO EVENT SHALL EITHER PARTY'S LIABILITY UNDER THIS AGREEMENT EXCEED {liabilityLimit}.`,

    exclusion: `NEITHER PARTY SHALL BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, INCLUDING BUT NOT LIMITED TO LOSS OF PROFITS, LOSS OF DATA, OR BUSINESS INTERRUPTION.`,

    combined: `IN NO EVENT SHALL EITHER PARTY'S LIABILITY EXCEED {liabilityLimit}. NEITHER PARTY SHALL BE LIABLE FOR INDIRECT, INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES.`
  },

  payment: {
    net30: `Client shall pay all undisputed invoices within thirty (30) days of the invoice date.`,

    upfront: `Client shall pay {percentage}% of the total fees upon execution of this Agreement, with the remainder due upon {milestone}.`,

    milestone: `Payments shall be made according to the following milestones:\n{milestoneList}`
  }
};

function insertClause(clauseCategory, clauseType, variables = {}) {
  let clause = clauseLibrary[clauseCategory][clauseType];

  // Replace variables
  Object.keys(variables).forEach(key => {
    const regex = new RegExp(`{${key}}`, 'g');
    clause = clause.replace(regex, variables[key]);
  });

  return clause;
}

Workflow 5: Contract Review Checklist

Purpose: Validate generated contracts against a checklist of required elements

Steps:

  1. Define checklist for contract type
  2. Parse generated contract
  3. Check for required sections
  4. Validate party information completeness
  5. Verify dates are logical (effective before expiration)
  6. Ensure signature blocks are present
  7. Check for placeholder text that wasn't replaced
  8. Generate review report

Implementation:

function reviewContract(contractPath, contractType) {
  const content = fs.readFileSync(contractPath, 'utf8');

  const checklist = {
    nda: [
      { item: 'Party names and addresses', required: true },
      { item: 'Effective date', required: true },
      { item: 'Definition of confidential information', required: true },
      { item: 'Obligations of receiving party', required: true },
      { item: 'Exclusions from confidentiality', required: true },
      { item: 'Term/duration of confidentiality', required: true },
      { item: 'Return of materials clause', required: false },
      { item: 'Governing law and jurisdiction', required: true },
      { item: 'Signature blocks', required: true }
    ],
    serviceAgreement: [
      { item: 'Party names and addresses', required: true },
      { item: 'Scope of services', required: true },
      { item: 'Deliverables', required: true },
      { item: 'Payment terms and amounts', required: true },
      { item: 'Timeline/term', required: true },
      { item: 'Intellectual property ownership', required: true },
      { item: 'Termination provisions', required: true },
      { item: 'Limitation of liability', required: true },
      { item: 'Governing law', required: true },
      { item: 'Signature blocks', required: true }
    ]
  };

  const items = checklist[contractType] || checklist.nda;
  const results = [];

  items.forEach(checkItem => {
    // Simple text search (in production, use more sophisticated parsing)
    const found = content.toLowerCase().includes(checkItem.item.toLowerCase());

    results.push({
      item: checkItem.item,
      required: checkItem.required,
      present: found,
      status: found ? 'PASS' : (checkItem.required ? 'FAIL' : 'WARN')
    });
  });

  // Check for unreplaced placeholders
  const placeholders = content.match(/\{[^}]+\}/g) || [];

  return {
    contractType,
    checklistResults: results,
    passedRequired: results.filter(r => r.required).every(r => r.present),
    unreplacedPlaceholders: placeholders,
    review: {
      passed: results.filter(r => r.status === 'PASS').length,
      failed: results.filter(r => r.status === 'FAIL').length,
      warnings: results.filter(r => r.status === 'WARN').length
    }
  };
}

Quick Reference

ActionCommand/Trigger
Generate contract"create [contract type] for [parties]"
NDA"generate NDA between [party1] and [party2]"
Service agreement"create service agreement"
Add clause"insert [clause type] clause"
Review contract"check contract for completeness"
Custom template"use custom contract template"
Batch generate"create contracts for [list]"

Best Practices

  • Legal Review: ALWAYS have contracts reviewed by an attorney before use
  • Version Control: Track template versions and changes
  • Jurisdiction-Specific: Use templates appropriate for the governing jurisdiction
  • Plain Language: Use clear, understandable language when possible
  • Definitions: Define all key terms clearly in the contract
  • Completeness: Ensure all required sections are present before finalizing
  • Variables: Validate all variables are replaced before generating final document
  • Formatting: Maintain consistent formatting for professional appearance
  • Signatures: Include proper signature blocks with date and title fields
  • Backup: Store all generated contracts securely
  • Audit Trail: Maintain records of when and how contracts were generated
  • Custom Review: Each contract should be reviewed for specific circumstances

Common Patterns

Employment Contract:

const employmentData = {
  contractType: 'Employment Agreement',
  employer: { name: 'Acme Corp', address: '...' },
  employee: { name: 'John Doe', address: '...' },
  position: 'Senior Developer',
  startDate: '2025-02-01',
  salary: 120000,
  benefits: ['Health insurance', '401k matching', 'PTO'],
  probationPeriod: '90 days',
  includeNonCompete: true,
  nonCompetePeriod: '12 months'
};

Consulting Agreement:

const consultingData = {
  serviceProvider: { name: 'Jane Smith Consulting', ... },
  client: { name: 'Widget Inc', ... },
  services: [
    { description: 'Strategic planning consultation', hours: 20 },
    { description: 'Market analysis', hours: 40 }
  ],
  paymentStructure: 'hourly',
  hourlyRate: 250,
  term: '3 months',
  ipOwnership: 'client'
};

Dependencies

Install required packages:

npm install docxtemplater pizzip
npm install pdf-lib          # For PDF manipulation
npm install handlebars       # Alternative templating

Error Handling

  • Missing Required Fields: Validate all required data before generation
  • Invalid Dates: Ensure effective date is before expiration date
  • Template Not Found: Verify template file exists before processing
  • Variable Mismatch: Check that all template variables have data
  • File Permissions: Handle read/write errors gracefully
  • Legal Compliance: Include disclaimers about legal review requirement

Advanced Features

Electronic Signature Integration:

const docusign = require('docusign-esign');

async function sendForSignature(contractPath, signers) {
  // DocuSign or other e-signature integration
  // Send contract for electronic signature
}

Contract Versioning:

const contractVersion = {
  version: '1.2',
  templateId: 'service-agreement-v1.2',
  changes: 'Updated liability clause per legal review',
  approvedBy: 'Legal Team',
  approvedDate: '2025-01-01'
};

Multi-Jurisdiction Support:

const jurisdictionClauses = {
  california: {
    governingLaw: 'This Agreement shall be governed by the laws of the State of California.',
    arbitration: 'Mandatory arbitration under California law'
  },
  newYork: {
    governingLaw: 'This Agreement shall be governed by the laws of the State of New York.',
    arbitration: 'JAMS arbitration in New York County'
  }
};

平台分布

Codex

32.35%
按下载量换算1,014

Claude

31.12%
按下载量换算975

Cursor

18.63%
按下载量换算584

Gemini CLI

8.75%
按下载量换算274

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限未标注

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills