legal-contract-expert

legal-contract-expert is a skill for Claude Code, Codex from rojim666/SztuCode. It costs 140 tokens per session (2,509 once invoked), scanned A, original, MIT.

A guide for drafting and reviewing contracts, agreements, and legal clauses. It checks common terms such as payment, delivery, breach, dispute resolution, confidentiality, and intellectual-property ownership.

In plain words
What is it for?
Use it for service contracts, sales agreements, leases, employment-related agreements, non-disclosure agreements, and other contract reviews.
Why use it?
It helps reveal missing obligations, unequal responsibilities, and legal or business risks before an agreement is signed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for service contracts, sales agreements, leases, employment-related agreements, non-disclosure agreements, and other contract reviews.

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

Made for: Claude Code, Codex.

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 legal-contract-expert

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rojim666/sztucode/legal-contract-expert"><img src="https://agentmods.dev/badge/skills/rojim666/sztucode/legal-contract-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 140 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,509 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.00140 $0.02509
Opus 5.5 $0.00056 $0.01004
Sonnet 5.5 $0.00028 $0.00502
Haiku 4.5 $0.00014 $0.00251

Measured 1mo ago against content hash 0552cd90f767, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

legal-contract-expert 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 1mo 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.

packages/runtime-ts/prompts/Sztubuddy/skills/_builtin-plugins/tencent-docx/experts/legal-contract-expert/SKILL.md · 215 lines

How it starts

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

Phase 1 — 主题理解

你需要详细思考如下要点:

  1. 合同类型识别(技术服务 / 买卖 / 租赁 / 劳务 / NDA / 框架协议 / 其他)→ 查询 experts/legal-contract-expert/references/terms-library.md 确认本类型对应的法律依据与必备条款清单。
  2. 当事人画像:甲乙方身份(自然人 / 公司 / 政府机构)、是否存在多方、是否涉及境外主体。
  3. 核心商业条款 5-8 条:标的物/服务、价款/费用、履行期限、验收标准、违约责任、争议解决、保密与知识产权、生效条件。
  4. 高风险点识别:对方违约风险、不可抗力场景、知识产权归属、数据合规、跨境合规等。

保存到 output/params/topic.yaml:

detected_doc_type: "技术服务合同"
target_length: 4500
target_tone: "正式法律文书,第三人称,中立客观"
contract_type: "technical_service"          # 合同类型枚举
parties: ["甲方:XX公司", "乙方:XX公司"]
governing_law: "《民法典》合同编 + 相关行业特别法"
mandatory_clauses:                          # 本类型必备条款清单(来自 references)
  - 合同标的
  - 价款与支付
  - 履行期限
  - 验收标准
  - 违约责任
  - 争议解决
  - 生效条件
risk_level: "high"                           # 法律合同默认 high

Phase 2 — Research(深度优先,不可跳过)

法律合同不存在"纯格式化跳过 Research"的情形——即便是填空式模板,也必须核对条款合规性。因此本阶段强制执行。

你需要先参考 参数字典 <plugin_root>/core/engines/deep-research/README.md 生成驱动引擎的参数,保存到 output/params/deep-research.yaml。生成参数文件后,再读取 <plugin_root>/core/engines/deep-research/engine.md 执行 6 步状态机,产出信息库快照到 snapshot_path。

默认 deep-research 参数(L2 法律合同专用,区别于 L1 的关键点已高亮):

# 必填参数(运行时由 Phase 1 结果填入)
topic: "<由 Phase 1 主题理解结果填入,含合同类型与核心标的>"
tools: ["web_search", "local_knowledge"]   # 同时使用网络检索 + 本地法律知识库

# 可选参数(已为 L2 法律合同配置严格值)
scope: "local_knowledge"                   # 深度优先,聚焦专业合同知识
max_loops: 3                                # 允许更多轮研究(vs L1 的 2)
min_facts_required: 10                      # 事实密度要求更高(vs L1 的 5)
gap_check_strict: "strict"                  # 严格模式:Q1-Q6 全部必须通过
search_dimensions:                          # 法律合同必搜四维
  - "合同类型与法律依据"
  - "必备条款清单"
  - "典型违约与争议案例"
  - "高风险点与防范条款"
tier_priority:                              # 权威源优先级
  - "《民法典》合同编及司法解释"
  - "最高法指导性案例"
  - "行业主管部门规章"
snapshot_path: "output/research/{topic}_research.md"

Read the full file on GitHub · 215 lines

Files

What ships with it

6 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. 1mo ago First seen · 215 lines · 140 tokens per session scan A 0552cd90f767

Subscribe to this mod's changes

legal-contract-expert is a skill published in the GitHub repository rojim666/SztuCode (110 stars, last pushed yesterday), licensed MIT. It adds 140 tokens to every session and 2,509 once invoked, about $0.0006 per session on Opus 5.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-09-12.

Related

Other skills, from other repositories

warp-delegate

Delegate a coding task to the Warp Agent CLI (oz) as a background implementer, then review its diff and land it yourself. Use this whenever the user wants to hand implementation work to Warp - phrasings like "have Warp implement X", "delegate this to the Warp CLI", "run it through Warp", "use oz to…

amElnagdy/delegate-skills · 144 tokens

claude-delegate

Delegate a coding task to a separate Claude Code CLI process or another Claude session as an implementer, then review its diff and land it yourself. Use only when the user explicitly asks to delegate implementation to Claude Code, another Claude session, or the claude CLI — for example, "have another Claude implement…

amElnagdy/delegate-skills · 117 tokens

zcode-delegate

Delegate a coding task to the Z.AI ZCode CLI as a background implementer, then review its diff and land it yourself. Use this whenever the user wants to hand implementation work to ZCode — phrasings like "have ZCode do X", "delegate this to ZCode", "run it through ZCode", or "use ZCode to implement/fix/refactor" — or…

amElnagdy/delegate-skills · 124 tokens

cline-delegate

Delegate a coding task to the Cline coding agent CLI (cline) as a background implementer, then review its diff and land it yourself. Use this whenever the user wants to delegate implementation work to Cline - phrasings like "have Cline implement X", "delegate this to cline", "run it through Cline", or "use cline to…

amElnagdy/delegate-skills · 126 tokens

kimi-delegate

Delegate a coding task to the Kimi Code CLI (kimi) as a background implementer, then review its diff and land it yourself. Use this whenever the user wants to hand implementation work to Kimi - phrasings like "have Kimi implement X", "delegate this to Kimi", "run it through Kimi Code", or "use Kimi to…

amElnagdy/delegate-skills · 126 tokens

vibe-delegate

Delegate a coding task to the Mistral Vibe CLI (vibe) as a background implementer, then review its diff and land it yourself. Use this whenever the user wants to hand implementation work to Vibe — phrasings like "have Vibe implement X", "delegate this to Vibe", "run it through Mistral Vibe", "use vibe to…

amElnagdy/delegate-skills · 130 tokens