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 zhou210712/claude-for-legal-ZH --skill matter-workspacegit clone --depth 1 https://github.com/zhou210712/claude-for-legal-ZHWrote 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/zhou210712/claude-for-legal-zh/matter-workspace)<a href="https://agentmods.dev/skills/zhou210712/claude-for-legal-zh/matter-workspace"><img src="https://agentmods.dev/badge/skills/zhou210712/claude-for-legal-zh/matter-workspace/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/zhou210712/claude-for-legal-zh/matter-workspace"><img src="https://agentmods.dev/badge/skills/zhou210712/claude-for-legal-zh/matter-workspace.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.00067 | $0.02774 |
| Opus 5 | $0.00034 | $0.01387 |
| Sonnet 5 | $0.00013 | $0.00555 |
| Haiku 4.5 | $0.00007 | $0.00277 |
Grade A, and why
matter-workspace 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 12d 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 — 186 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/matter-workspace
执业律师同时处理多个客户和事务。事务工作区将一个客户或委托的上下文与另一个隔离开。此技能管理工作区。
子命令
/ai-governance-legal:matter-workspace new <slug>— 创建新的事务工作区,运行简短录入,写入matter.md/ai-governance-legal:matter-workspace list— 列出事务及其状态和活跃标记/ai-governance-legal:matter-workspace switch <slug>— 设置活跃事务/ai-governance-legal:matter-workspace close <slug>— 归档事务(移动到~/.claude/plugins/config/claude-for-legal/ai-governance-legal/matters/_archived/,不删除)/ai-governance-legal:matter-workspace none— 解除活跃事务,仅在实践层面工作
指令
- 读取
~/.claude/plugins/config/claude-for-legal/ai-governance-legal/CLAUDE.md— 确认## 事务工作区部分已填充。如果已启用为✗,告知用户:"事务工作区已关闭——你被配置为法务内部实践,只有一个客户,因此插件自动从实践级上下文工作。如果你实际上跨多个客户工作,请重新运行/ai-governance-legal:cold-start-interview --redo并选择私人执业设置。否则,你不需要/ai-governance-legal:matter-workspace。" 不要报错——关闭状态是法务内部用户的预期状态。 - 按照以下子命令逻辑操作。
- 根据
$ARGUMENTS的第一个词分发:new→ 运行录入访谈,写入~/.claude/plugins/config/claude-for-legal/ai-governance-legal/matters/<slug>/matter.md,种子化history.md和notes.md。list→ 枚举~/.claude/plugins/config/claude-for-legal/ai-governance-legal/matters/*/matter.md,打印表格,标记活跃事务。switch→ 更新实践级 CLAUDE.md 中的活跃事务:行。close→ 将~/.claude/plugins/config/claude-for-legal/ai-governance-legal/matters/<slug>/移动到~/.claude/plugins/config/claude-for-legal/ai-governance-legal/matters/_archived/<slug>/,在history.md中记录关闭日期。none→ 将活跃事务:设置为无 — 仅实践级上下文。
- 向用户展示变更内容,确认后再写入。
注意事项
- 除非实践级 CLAUDE.md 中
跨事务上下文为开,否则技能绝不跨事务读取。 - 归档不是删除——已关闭的事务保持可读,以供保留/冲突检查之用。
- Slug 使用小写字母加连字符。如果 slug 在已归档和活跃中被重复使用,已归档的保留在
_archived/<slug>/下。
事务工作区
跨多客户执业的律师(私人执业——独立执业、小型律所、大型律所)处理多个事务。一个事务的上下文不得泄露到另一个事务中。此技能是使这一点成立的轻量文件管理层。
默认状态是关闭的。 法务内部用户永远看不到这个——他们仅在实践级运行。事务工作区在冷启动时为私人执业用户开启,或通过编辑实践级 CLAUDE.md 中的 ## 事务工作区 开启。如果 已启用 为 ✗,此技能不运行;上述工作流解释关闭状态并为确实需要事务隔离的用户建议 /ai-governance-legal:cold-start-interview --redo。
存储布局
所有事务数据位于:
~/.claude/plugins/config/claude-for-legal/ai-governance-legal/
├── CLAUDE.md # 实践级实践配置文件
└── matters/
├── <slug>/
│ ├── matter.md # 客户、对方、事务类型、关键事实、覆盖项
│ ├── history.md # 日期化的事件、决策、草稿、审查日志
│ ├── notes.md # 自由形式的工作笔记
│ └── outputs/ # 此事务的技能输出(可选子文件夹)
└── _archived/
└── <slug>/ # 已关闭的事务——可读但不活跃
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.
- 12d ago First seen · 186 lines · 67 tokens per session scan A 5d20d78d4fb6
matter-workspace 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 2,774 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-30.
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.
regulatory-research-fallback
Fallback workflow for regulatory research when web extraction tools fail on government PDFs.
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.
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.
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…
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…