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.
npx skills add rojim666/SztuCode --skill legal-contract-expertgit clone --depth 1 https://github.com/rojim666/SztuCodeWrote 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.
[](https://agentmods.dev/skills/rojim666/sztucode/legal-contract-expert)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 — 主题理解
你需要详细思考如下要点:
- 合同类型识别(技术服务 / 买卖 / 租赁 / 劳务 / NDA / 框架协议 / 其他)→ 查询
experts/legal-contract-expert/references/terms-library.md确认本类型对应的法律依据与必备条款清单。 - 当事人画像:甲乙方身份(自然人 / 公司 / 政府机构)、是否存在多方、是否涉及境外主体。
- 核心商业条款 5-8 条:标的物/服务、价款/费用、履行期限、验收标准、违约责任、争议解决、保密与知识产权、生效条件。
- 高风险点识别:对方违约风险、不可抗力场景、知识产权归属、数据合规、跨境合规等。
保存到 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"
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.
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.
- 1mo ago First seen · 215 lines · 140 tokens per session scan A 0552cd90f767
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.
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…
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…
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…
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…
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…
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…