matter-workspace

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

A workspace manager for keeping each client or legal matter’s information separate. A matter is a specific client engagement or piece of legal work.

In plain words
What is it for?
Use it to create, list, switch, archive, or leave matter workspaces when handling multiple clients or engagements.
Why use it?
It reduces the risk of mixing one client’s context, notes, or documents with another’s.

Skill for Claude Code

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

Part of the ai-governance-legal plugin — 10 skills, 3 MCP servers shipped together

Good fit Use it to create, list, switch, archive, or leave matter workspaces when handling multiple clients or engagements.

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

Made for: Claude Code.

Or install ai-governance-legal, the plugin that ships this one along with the rest of its 10 skills, 3 MCP servers.

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-workspace

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

agentmods 80×15 button for matter-workspace

Your own site · 80×15
<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>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,774 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.02774
Opus 5 $0.00034 $0.01387
Sonnet 5 $0.00013 $0.00555
Haiku 4.5 $0.00007 $0.00277

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

Security

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.

ai-governance-legal/skills/matter-workspace/SKILL.md · 186 lines

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 — 解除活跃事务,仅在实践层面工作

指令

  1. 读取 ~/.claude/plugins/config/claude-for-legal/ai-governance-legal/CLAUDE.md — 确认 ## 事务工作区 部分已填充。如果 已启用,告知用户:"事务工作区已关闭——你被配置为法务内部实践,只有一个客户,因此插件自动从实践级上下文工作。如果你实际上跨多个客户工作,请重新运行 /ai-governance-legal:cold-start-interview --redo 并选择私人执业设置。否则,你不需要 /ai-governance-legal:matter-workspace。" 不要报错——关闭状态是法务内部用户的预期状态。
  2. 按照以下子命令逻辑操作。
  3. 根据 $ARGUMENTS 的第一个词分发:
    • new → 运行录入访谈,写入 ~/.claude/plugins/config/claude-for-legal/ai-governance-legal/matters/<slug>/matter.md,种子化 history.mdnotes.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 → 将 活跃事务: 设置为 无 — 仅实践级上下文
  4. 向用户展示变更内容,确认后再写入。

注意事项

  • 除非实践级 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>/                 # 已关闭的事务——可读但不活跃

Read the full file on GitHub · 186 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. 12d ago First seen · 186 lines · 67 tokens per session scan A 5d20d78d4fb6

Subscribe to this mod's changes

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.

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