wps-contract

wps-contract is a skill for Claude Code from Bwkyd/wps-skills. It costs 68 tokens per session (2,101 once invoked), scanned A, original, MIT.

A contract document generator for common agreements, including employment, rental, sales, software development, and non-disclosure contracts. It creates Chinese-language .docx templates from the key details you provide.

In plain words
What is it for?
Use it to draft or revise agreements by entering the parties, contract type, amounts, dates, goods or services, and other terms.
Why use it?
It gives you a structured first draft without writing every clause from scratch. The result is a reference template, not legal advice, so important contracts should be reviewed by a lawyer.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to draft or revise agreements by entering the parties, contract type, amounts, dates, goods or services, and other terms.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bwkyd/wps-skills/wps-contract
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 Bwkyd/wps-skills --skill wps-contract
Clone the repo
git clone --depth 1 https://github.com/Bwkyd/wps-skills

Made for: Claude Code.

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 wps-contract

README.md
[![agentmods](https://agentmods.dev/badge/skills/bwkyd/wps-skills/wps-contract/github.svg)](https://agentmods.dev/skills/bwkyd/wps-skills/wps-contract)
Your own site
<a href="https://agentmods.dev/skills/bwkyd/wps-skills/wps-contract"><img src="https://agentmods.dev/badge/skills/bwkyd/wps-skills/wps-contract/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 wps-contract

Your own site · 80×15
<a href="https://agentmods.dev/skills/bwkyd/wps-skills/wps-contract"><img src="https://agentmods.dev/badge/skills/bwkyd/wps-skills/wps-contract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,101 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 original No closer match found 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.00068 $0.02101
Opus 5 $0.00034 $0.01051
Sonnet 5 $0.00014 $0.00420
Haiku 4.5 $0.00007 $0.00210

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

Security

Grade A, and why

wps-contract 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 10d ago.

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.

skills/wps-contract/SKILL.md · 226 lines

How it starts

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

智能合同生成器

根据合同类型自动生成符合中国法律规范的 .docx 合同文档。

免责声明:本工具生成的合同模板仅供参考,不构成法律建议。重要合同请咨询专业律师审核。

When to Use

  • 用户需要起草各类合同或协议
  • 用户说"帮我写一份XX合同"
  • 用户需要标准合同模板
  • 用户需要在已有合同中添加/修改条款

When NOT to Use

  • 党政机关公文 → 使用 wps-gongwen
  • 普通Word文档 → 使用 wps-docx-writer
  • 合同中的数据表格处理 → 使用 wps-formula

支持的合同类型

类型 适用场景 核心条款
劳动合同 企业雇佣员工 岗位、薪酬、工时、社保、试用期、竞业限制
劳务合同 非劳动关系的服务 服务内容、报酬、期限、不构成劳动关系声明
租赁合同 房屋/设备/车辆租赁 租金、押金、维修责任、提前解约
买卖合同 商品购销 标的物、价格、交付、验收、质保
技术开发合同 软件/系统开发 需求范围、交付物、验收标准、知识产权
保密协议(NDA) 商业秘密保护 保密范围、期限、违约金、例外情形
合作协议 业务合作 合作模式、分工、收益分配、退出机制
股权转让协议 股权交易 转让价格、交割条件、陈述保证、过渡期
借款协议 民间借贷 借款金额、利率、还款方式、担保
代理协议 代理销售/采购 代理范围、佣金、独家/非独家
竞业限制协议 员工离职后限制 限制范围、期限、补偿金
服务协议(SLA) IT/咨询服务 服务范围、SLA指标、响应时间、付款

工作流程

Step 1: 确认合同要素

必填信息:

  • 合同类型:从上表选择
  • 甲方信息:名称(个人/公司)
  • 乙方信息:名称(个人/公司)
  • 核心商业条款:金额、期限、标的物等

可选信息(未提供则使用通用条款):

  • 争议解决方式(仲裁/诉讼,管辖地)
  • 违约金比例
  • 保密条款
  • 不可抗力条款
  • 通知方式
  • 合同份数

Step 2: 生成合同内容

合同基本结构:

合同编号:[编号]
                    [合同标题]

甲方(全称):_______________
统一社会信用代码/身份证号:_______________
法定代表人/负责人:_______________
地址:_______________
联系电话:_______________

乙方(全称):_______________
(同上字段)

鉴于:
  [合同背景和缔约目的]

双方经友好协商,根据《中华人民共和国民法典》及相关法律法规,
就[事项]达成如下协议:

第一条  [标的/服务内容]
第二条  [价格/报酬]
第三条  [付款方式]
第四条  [交付/履行]
第五条  [验收标准]
第六条  [双方权利义务]
第七条  [违约责任]
第八条  [保密条款]
第九条  [不可抗力]
第十条  [争议解决]
第十一条  [其他约定]
第十二条  [合同生效]

甲方(盖章):              乙方(盖章):
法定代表人/授权代表:        法定代表人/授权代表:
日期:    年  月  日         日期:    年  月  日

Step 3: 生成 .docx 文件

先确保依赖:

pip install python-docx 2>/dev/null || pip3 install python-docx 2>/dev/null

排版规范:

纸张:A4
页边距:上下左右各 2.54cm(Word默认)
标题:二号黑体,居中
合同编号:小四号宋体,右对齐
正文:小四号宋体,行距1.5倍
条款标题:"第X条"加粗
首行缩进:2字符
签署栏:左右分列,甲方左侧,乙方右侧
页脚:页码居中

金额大小写规范:

合同中出现金额时必须同时标注大小写:
人民币(大写):壹拾万元整
人民币(小写):¥100,000.00

大写数字对照:
零、壹、贰、叁、肆、伍、陆、柒、捌、玖
拾、佰、仟、万、亿
元、角、分、整

Read the full file on GitHub · 226 lines

Files

What ships with it

2 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. 10d ago First seen · 226 lines · 68 tokens per session scan A cc590dec69e9

Subscribe to this mod's changes

wps-contract is a skill published in the GitHub repository Bwkyd/wps-skills (7 stars, last pushed 4mo ago), licensed MIT. It adds 68 tokens to every session and 2,101 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

法律文件脱敏处理

A browser-based and Python tool for removing sensitive details from legal Word documents and restoring them later. It can replace information such as names, dates, prices, bank accounts and case numbers while preserving document formatting.

moyupeng0422/legal-doc-redactor · 128 tokens

treatment-plans

Format and structurally validate local treatment-plan documentation after clinical decisions have already been supplied and verified by authorized licensed professionals. Use for source traceability, clinician-authored intervention records, goals and checkpoints, shared-decision records, reconciliation handoffs, and…

K-Dense-AI/scientific-agent-skills · 62 tokens

patent-application

A patent-application document workflow that turns supplied invention materials into claims, a description, an abstract, and black-and-white drawings. It can also produce Markdown and Word files.

handsomestWei/patent-disclosure-skill · 95 tokens

patent-reader

A plain-language reader for Chinese patents that turns a publication number or PDF into notes, diagrams, and an Obsidian entry. Obsidian is a note-taking app that stores linked Markdown files.

handsomestWei/patent-disclosure-skill · 31 tokens

fill-icmje-coi

Batch-generate per-author ICMJE Conflict of Interest Disclosure Forms (coidisclosure.docx) for manuscript submission. Pre-fills all 13 disclosure items as "☒ None" + final certification ☒ using a synthetic seed template shipped with the skill, then clones the seed per author with Date, Name, and Manuscript Title…

Aperivue/medsci-skills · 122 tokens

cloud-service-agreement

Draft and fill SaaS agreement templates — cloud contract, MSA, order form, software license, pilot agreement, design partner agreement. Includes variants with SLAs and AI terms. Produces signable DOCX from Common Paper standard forms. Use when user says "SaaS agreement," "cloud contract," "MSA," "order form,"…

open-agreements/open-agreements · 103 tokens