matter-close

matter-close is a skill for Claude Code from zhou210712/claude-for-legal-ZH. It costs 67 tokens per session (1,632 once invoked), scanned A, original, Apache-2.0.

A case-closing tool for recording how a legal matter ended and moving it out of the active case list without deleting its records. It captures the outcome, date, final cost or exposure, and lessons learned.

In plain words
What is it for?
Use it to close matters resolved by settlement, withdrawal, judgment, or merger, update the case log, and add a final entry to the case history.
Why use it?
It prevents important results from being lost in an unstructured archive. Keeping these details makes past cases useful when assessing future risk.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Part of the litigation-legal plugin — 16 skills, 1 agent shipped together

Good fit Use it to close matters resolved by settlement, withdrawal, judgment, or merger, update the case log, and add a final entry to the case history.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhou210712/claude-for-legal-zh/matter-close
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 zhou210712/claude-for-legal-ZH --skill matter-close
Clone the repo
git clone --depth 1 https://github.com/zhou210712/claude-for-legal-ZH

Made for: Claude Code.

Or install litigation-legal, the plugin that ships this one along with the rest of its 16 skills, 1 agent.

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 matter-close

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhou210712/claude-for-legal-zh/matter-close/github.svg)](https://agentmods.dev/skills/zhou210712/claude-for-legal-zh/matter-close)
Your own site
<a href="https://agentmods.dev/skills/zhou210712/claude-for-legal-zh/matter-close"><img src="https://agentmods.dev/badge/skills/zhou210712/claude-for-legal-zh/matter-close/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 matter-close

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhou210712/claude-for-legal-zh/matter-close"><img src="https://agentmods.dev/badge/skills/zhou210712/claude-for-legal-zh/matter-close.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,632 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.00067 $0.01632
Opus 5 $0.00034 $0.00816
Sonnet 5 $0.00013 $0.00326
Haiku 4.5 $0.00007 $0.00163

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

Security

Grade A, and why

matter-close 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 9d 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.

litigation-legal/skills/matter-close/SKILL.md · 134 lines

How it starts

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

/matter-close

  1. 按以下工作流操作。
  2. 确认代号和当前状态。
  3. 捕获结果:结案类型(和解、撤诉、判决我方胜诉/败诉、撤回、合并)、日期、最终敞口/成本、反思教训。
  4. 更新 _log.yamlstatus: closed,添加 closed: YYYY-MM-DDoutcome: 字段。
  5. ~/.claude/plugins/config/claude-for-legal/litigation-legal/matters/[slug]/history.md 追加最终条目。
  6. 案件保留在 _log.yaml~/.claude/plugins/config/claude-for-legal/litigation-legal/matters/[slug]/ 中——不删除。/portfolio-status 从活跃汇总中过滤。

案件结案

目的

案件会结束。结果是案件组合生成的最有价值的数据点——它校准未来案件的风险框架。结案以结构化方式捕获结果,使记录有用,而不只是归档。

加载上下文

  • ~/.claude/plugins/config/claude-for-legal/litigation-legal/matters/_log.yaml —— 找到对应行
  • ~/.claude/plugins/config/claude-for-legal/litigation-legal/matters/[slug]/matter.md —— 参考(登记时上下文)
  • ~/.claude/plugins/config/claude-for-legal/litigation-legal/matters/[slug]/history.md —— 追加目标

冲突门禁——不可绕过。 结案前,检查 _log.yaml 中是否存在该案件代号。如果案件不在 _log.yaml 中,拒绝并路由:

"我在案件日志中没有找到 [案件代号]。没有可结的案件——要么代号有误,要么该案件从未通过 /litigation-legal:matter-intake 登记。请先检查代号;如确实从未登记,则没有可更新的行,也没有可结案的文件结构。"

输入

代号(必填)。

结案内容

1. 结案类型

  • 和解 —— 与对方达成和解,含金额、结构条款
  • 撤诉 —— 对方撤回起诉/我方撤回起诉
  • 判决我方胜诉 —— 在何阶段、上诉风险
  • 判决我方败诉 —— 在何阶段、上诉状态、敞口已确定
  • 撤回 —— 由对方撤回,附情况说明
  • 合并 —— 并入其他案件(提供母案代号)
  • 其他 —— 附说明

2. 结案日期

案件实际结束的日期(和解协议签署、裁定下达、撤诉立案)。

3. 最终敞口

  • 公司实际成本(和解金额 + 律师费 + 禁令/结构性成本)
  • vs. 登记时的初始敞口范围(我们的预判是否准确?)
  • 计提准确性(如有计提):账面 vs. 实际

4. 反思教训

两到三句话。我们哪些判断正确?哪些误判了?登记时本应更早标注什么?

这是未来律师会重读的部分。诚实。"误判了可能性——原告方比预期更激进"比"结果对我方有利"更有价值。

5. 文件关联提示

和解协议、终局裁定、撤诉裁定——如有路径。非必填。

写入

在结案(产生后果的行为——案件被归档且停止主动追踪)之前: 读取 ~/.claude/plugins/config/claude-for-legal/litigation-legal/CLAUDE.md 中的 ## 使用者。如果角色是非律师

结案具有法律后果——它结束主动追踪,可能影响相关联的证据保全(如适用,另行运行 /legal-hold --release),并建立公司依赖的最终记录。您是否已与律师审查过此事?如已审查,继续。如未审查,以下是带去给律师的简要材料:

[生成一页摘要:案件、结案类型和条款、最终敞口 vs. 初始、计提准确性、关联案件或上诉是否仍在进行、提前结案可能出错的事项、需要问律师的问题。]

如果您需要寻找律师:请联系当地律师协会或拨打 12348 法律援助热线获取推荐。

未收到明确确认之前,不写入结案字段或追加结案条目。

更新 ~/.claude/plugins/config/claude-for-legal/litigation-legal/matters/_log.yaml

status: closed
closed: [YYYY-MM-DD]
outcome: [结案类型]
final_cost: [金额]
last_updated: [今天]   # 结案是最后的触及;记录它

Read the full file on GitHub · 134 lines

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. 9d ago First seen · 134 lines · 67 tokens per session scan A da2bd827e061

Subscribe to this mod's changes

matter-close is a skill published in the GitHub repository zhou210712/claude-for-legal-ZH (212 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 67 tokens to every session and 1,632 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-09-03.

Related

Other skills, from other repositories

specification-writing

A workflow for writing complete patent specifications from patent claims and an invention disclosure. It adapts the document to a chosen jurisdiction, such as the US, Europe, or China.

wanshuiyin/Auto-claude-code-research-in-sleep · 49 tokens

regulatory-research-fallback

Fallback workflow for regulatory research when web extraction tools fail on government PDFs.

HKUDS/OpenSpace · 20 tokens

x-scorecard

OpenSSF Scorecard for assessing open source project security. Check security best practices and compliance. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

x-cmd/x-cmd · 57 tokens

gesellschaftsrechtliche-satzungen-agb

Für Gesellschaftsrechtliche Satzungen AGB Abgrenzung: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt. Fachgebiet: AGB-Recht-Prüfer. Route: gesellschaftsrechtliche-satzungen-agb.

Klotzkette/claude-fuer-deutsches-recht · 69 tokens

memstack-business-gdpr

Use this skill when the user says 'GDPR', 'data protection', 'privacy compliance', 'DPA', 'DSAR', 'data subject request', 'cookie consent', 'privacy audit', 'CCPA', or asks 'do I need GDPR for this repo'. Scans the repository to detect what personal data is collected, classifies sensitivity, determines whether GDPR…

cwinvestments/memstack · 121 tokens

nda-review

Use when the user uploads or pastes a non-disclosure agreement and asks for review, redline, risk assessment, or a recommendation on whether to sign. Identifies missing standard protections, one-sided or unusual provisions, and operational issues; produces a structured report with severity ratings and citations to…

LegalQuants/lq-ai · 79 tokens