Agent skill

Matter Workspace

by zhou210712 in zhou210712/claude-for-legal-ZH

为多客户执业场景管理案件工作空间——创建、列表、切换、关闭或脱离活跃案件. An agent skill from zhou210712/claude-for-legal-ZH.

Apache-2.0Auto-check passedAgent Workflows

Install Matter Workspace

skills CLI
$ npx skills add zhou210712/claude-for-legal-ZH --skill matter-workspace -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install zhou210712/claude-for-legal-ZH matter-workspace --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/zhou210712/claude-for-legal-ZH.git skills-src && mkdir -p .claude/skills && cp -r skills-src/litigation-legal/skills/matter-workspace .claude/skills/matter-workspace && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
matter-workspace
GitHub stars
225
Token cost
~1.3k tokens
SKILL.md length
249 words
Files
1
Skills in repo
122
Repo updated
First seen
Licence
Apache-2.0

At a glance

为多客户执业场景管理案件工作空间——创建、列表、切换、关闭或脱离活跃案件. An agent skill from zhou210712/claude-for-legal-ZH.

  • Works in 4 steps: 读取… → 按以下工作流操作。 → 按 $ARGUMENTS 的第一个 token 分发 → …
  • Tasks that involve Legal research
  • SKILL.md covers 子命令, 指令, 备注 and 存储布局, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Matter Workspace is an agent skill from zhou210712/claude-for-legal-ZH. 为多客户执业场景管理案件工作空间——创建、列表、切换、关闭或脱离活跃案件。 当用户需要创建新案件工作空间、切换活跃案件、列出案件、归档案件或 仅在实务级工作而不关联特定案件时使用。

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Legal research. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Legal research

Example prompts

  • “/matter-workspace”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. 读取 ~/.claude/plugins/config/claude-for-legal/litigation-legal/CLAUDE.md —— 确认 ## 案件工作空间 部分已填充。如果 Enabled 为…
  2. 按以下工作流操作。
  3. 按 $ARGUMENTS 的第一个 token 分发
  4. 展示变更内容并在写入前确认。

What it can do on your machine

Read from SKILL.md and the folder at commit 2f01c92. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Matter Workspace loads about 1.3k tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 249 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~27
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from zhou210712/claude-for-legal-ZH at commit 2f01c92, republished under its Apache-2.0 licence (© zhou210712). 249 words, ~1,270 tokens.

Download SKILL.mdSave it as .claude/skills/matter-workspace/SKILL.md (or your agent's skills folder).
name
matter-workspace
description
为多客户执业场景管理案件工作空间——创建、列表、切换、关闭或脱离活跃案件。 当用户需要创建新案件工作空间、切换活跃案件、列出案件、归档案件或 仅在实务级工作而不关联特定案件时使用。
argument-hint
<new | list | switch | close | none> [代号]

/matter-workspace

律师在多个客户和案件之间工作。案件工作空间将一个客户或委托的上下文与其他所有隔离开来。本命令管理这些工作空间。

子命令

  • /litigation-legal:matter-workspace new <代号> —— 创建新案件工作空间,运行简要登记,写入 matter.md
  • /litigation-legal:matter-workspace list —— 列出案件及其状态和活跃标记
  • /litigation-legal:matter-workspace switch <代号> —— 设置活跃案件
  • /litigation-legal:matter-workspace close <代号> —— 归档案件(移至 ~/.claude/plugins/config/claude-for-legal/litigation-legal/matters/_archived/,永不清除)
  • /litigation-legal:matter-workspace none —— 脱离任何活跃案件,仅在实务级工作

注意:/litigation-legal:matter-briefing [代号](无子命令)是单独的命令,生成特定案件的简报——适用于法务案件组合审查。案件工作空间管理在此。

指令

  1. 读取 ~/.claude/plugins/config/claude-for-legal/litigation-legal/CLAUDE.md —— 确认 ## 案件工作空间 部分已填充。如果 Enabled 为 ✗,告知用户:"案件工作空间已关闭——你配置为单一客户的法务实践,插件自动使用实务级上下文。如果你确实服务于多个客户,重新运行 /litigation-legal:cold-start-interview --redo 并选择外部执业设置。否则,你完全不需要 /matter-workspace。"不要报错——禁用状态是法务用户的预期状态。
  2. 按以下工作流操作。
  3. 按 $ARGUMENTS 的第一个 token 分发:
    • new → 运行登记访谈,写入 ~/.claude/plugins/config/claude-for-legal/litigation-legal/matters/<代号>/matter.md,播种 history.md。
    • list → 枚举 ~/.claude/plugins/config/claude-for-legal/litigation-legal/matters/*/matter.md,打印表格,标记活跃案件。
    • switch → 更新实务级 CLAUDE.md 中的 Active matter: 行。
    • close → 将 ~/.claude/plugins/config/claude-for-legal/litigation-legal/matters/<代号>/ 移至 ~/.claude/plugins/config/claude-for-legal/litigation-legal/matters/_archived/<代号>/,在 history.md 中记录关闭日期。
    • none → 设置 Active matter: 为 none — 仅实务级上下文。
  4. 展示变更内容并在写入前确认。

备注

  • 除非实务级 CLAUDE.md 中 Cross-matter context 为 on,否则本技能绝不跨案件读取。
  • 归档不是删除——已关闭案件保持可读,供保存/冲突检索目的。
  • 代号为小写连字符格式。如代号在已归档和活跃之间重复使用,已归档的保留在 _archived/<代号>/ 下。

案件工作空间

多客户执业者(外部执业——独立、小所、大所)在多个案件之间工作。一个案件的上下文不得泄露入另一个。本技能是使之成立的薄文件管理层。

默认状态为关闭。 法务用户永远看不到此——他们仅运行在实务级。案件工作空间在首次配置时对外部执业用户开启,或通过编辑实务级 CLAUDE.md 中的 ## 案件工作空间 开启。如果 Enabled 为 ✗,本技能不运行;/matter-workspace 技能解释禁用状态并建议需要案件隔离的用户运行 /cold-start-interview --redo。

存储布局

所有案件数据存放在:

~/.claude/plugins/config/claude-for-legal/litigation-legal/
├── CLAUDE.md                       # 实务级实践画像
└── matters/
    ├── <代号>/
    │   ├── matter.md               # 客户、对方、案件类型、关键事实、覆盖项
    │   ├── history.md              # 带日期的事件、决定、草稿、审查日志
    │   └── outputs/                # 本案技能输出(可选子文件夹)
    └── _archived/
        └── <代号>/                 # 已关闭案件——可读但非活跃

代号为小写连字符格式。示例:acme-msa-2026、zenith-renewal、vendor-xyz-nda。

活跃案件在实务 CLAUDE.md 中

实务级 CLAUDE.md 中 ## 案件工作空间 下的 Active matter: 行是唯一真实来源。切换案件即编辑该行。没有独立的状态文件。

子命令逻辑

new <代号>
  1. 确认代号在 matters/<代号>/ 或 matters/_archived/<代号>/ 中不存在。如重复,请用户选择不同代号。
  2. 运行登记访谈:
    • 委托人(我们代表的当事人,或法务场景下的内部业务部门)
    • 对方当事人(另一方——可能多个)
    • 案件类型(读取插件实践画像中的典型类别;对 litigation-legal:合同纠纷 | 劳动争议 | 知识产权 | 行政监管/调查 | 产品责任 | 其他)
    • 保密级别(标准 | 加强 | 清洁团队——加强提示跨案件设置中额外注意)
    • 关键事实(2-5句话:本案是什么、相关方是谁、涉及什么利益)
    • 案件特定对实务手册的覆盖(如"客户要求责任上限24个月而非事务所标准12个月"、"对方是战略合作伙伴——保持关系保护语调")
    • 关联案件(任何有关联案件的代号)
  3. 使用以下模板写入 matters/<代号>/matter.md。
  4. 播种 matters/<代号>/history.md,含一条"立案/登记"条目。
  5. 不自动切换到新案件。询问:"是否要现在切换到 <代号>?(/litigation-legal:matter-workspace switch <代号>)"
list

枚举 matters/*/matter.md。读取每个文件的前几行提取状态。打印表格:

代号委托人案件类型状态立案日期活跃

用 * 标记当前活跃案件。如有归档案件,在单独的"已归档"标题下包含 _archived/*。

switch <代号>
  1. 确认 matters/<代号>/matter.md 存在。如否,提供 /litigation-legal:matter-workspace new <代号>。
  2. 编辑实务级 CLAUDE.md 中的 Active matter: 行为 Active matter: <代号>。
  3. 向用户展示 matter.md 摘要以便确认在正确的案件上。
close <代号>
  1. 确认 matters/<代号>/ 存在。
  2. 向 matters/<代号>/history.md 追加一条"已关闭"条目,日期为今天。
  3. 移动 matters/<代号>/ → matters/_archived/<代号>/。
  4. 如已关闭案件是活跃案件,设置 Active matter: 为 none — 仅实务级上下文。
none

设置实务级 CLAUDE.md 中的 Active matter: 为 none — 仅实务级上下文。与用户确认。

matter.md 模板

markdown
[工作成果标头——根据插件配置 ## 输出——因角色不同;见实务级 CLAUDE.md 中的 `## 使用者`]

# 案件:[委托人] —— [简要描述]

**代号:** [slug]
**立案/登记日期:** [YYYY-MM-DD]
**状态:** active
**保密级别:** [标准 / 加强 / 清洁团队]

---

## 当事人

**委托人:** [名称]
**对方当事人:** [名称]

## 案件类型

[合同纠纷 | 劳动争议 | 知识产权 | 行政监管/调查 | 其他 —— 附一句理由]

## 关键事实

[2-5句话。本案是什么。相关方是谁。涉及什么利益。与默认手册有何不同。]

## 案件特定覆盖项

*适用于本案且仅适用于本案的、相对实务级手册的偏离。*

- [如"责任上限:客户要求24个月,非事务所标准12个月。"]
- [如"语调:保持关系保护——对方是战略合作伙伴。"]

## 关联案件

- [代号 —— 一行说明关联原因]

history.md 播种

markdown
# 历史记录:[委托人] —— [简要描述]

仅追加的事件日志。最新记录在最前。

---

## [YYYY-MM-DD] —— 案件立案/登记

登记完成。代号:`[slug]`。状态:active。
[任何 worth 保留的、超出 matter.md 的初始上下文——如"应对方发来的合同草案而立案"。]

跨案件上下文

实务级 CLAUDE.md 有 Cross-matter context: 标记。当它为 off(默认)时,在案 A 中工作的技能绝不读取 matters/B/ 中的文件(对任何其他 B)。不容例外。这是该设置为存在的保密保证。

当它为 on 时,技能仅在用户明确要求时才能跨案件文件夹读取文件(如"比较我们最近五个案件在责任上限条款上的立场")。即使 on,默认也仅加载活跃案件,除非用户要求跨案件视图。

本技能不做什么

  • 运行利益冲突检索。 冲突检索是执业者/事务所的工作;登记仅捕获用户声明的内容。
  • 执行保存期限。 关闭即将案件归档;不删除。保存政策超出范围。
  • 自动路由输出。 实质性技能决定写入何处;本技能告诉它哪个文件夹是活跃的,而非放入什么。
  • 决定跨案件是否合适。 读取标记并遵从。

© zhou210712, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in litigation-legal/skills/matter-workspace of zhou210712/claude-for-legal-ZH.

Open the folder on GitHubat commit 2f01c92

Compare with similar skills

Matter Workspace next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Matter Workspace compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Matter Workspace this skillzhou210712/claude-for-legal-ZH225—~1.3kAutomated safety check: PassApache-2.0
Cold Start Interviewanthropics/claude-for-legal9.6k2 repos~12kAutomated safety check: PassApache-2.0
Reasoning Personassundial-org/awesome-openclaw-skills663—~793Automated safety check: PassNone
Poweruser Feature Auditpydantic/pydantic-ai21k—~2.9kAutomated safety check: PassMIT
Tw Legal RAGaa0101181514/tw-legal-rag328—~580Automated safety check: PassCustom licence
Design Award SearchSeanJ1ang/design-judge-skills712—~3kAutomated safety check: PassApache-2.0

Similar skills

  • Cold Start Interview

    anthropics/claude-for-legal

    Official

    House cold-start for the litigation plugin — branches by role (in-house, firm associate, solo) and side (plaintiff, defense, both), captures risk calibration, landscape, and house style, and writes…

    9.6k GitHub starsUsed in 2 repos~12k tokens
    Agent WorkflowsAuto-check passed
  • Reasoning Personas

    sundial-org/awesome-openclaw-skills

    Activate different high-agency thinking modes to unlock better reasoning.

    663 GitHub stars~793 tokensUpdated 7 mo ago
    Agent WorkflowsAuto-check passed
  • Poweruser Feature Audit

    pydantic/pydantic-ai

    Official

    Independent power-user audit of a big new-feature PR. An agent skill from pydantic/pydantic-ai.

    21k GitHub stars~2.9k tokensUpdated today
    Testing & QAAuto-check passed
  • Tw Legal RAG

    aa0101181514/tw-legal-rag

    Retrieve real Taiwan court judgments with verifiable citations before answering any question about Taiwan law or case law.

    328 GitHub stars~580 tokensUpdated today
    Legal & ComplianceAuto-check passed
  • Design Award Search

    SeanJ1ang/design-judge-skills

    Find and verify award-winning designs in the same or adjacent functional category through eight explicit relevance dimensions: problem and user, core function, sensing technology, intervention…

    712 GitHub stars~3k tokensUpdated 1 mo ago
    Legal & ComplianceAuto-check passed
  • China Lawyer Analyst

    CSlawyer1985/china-lawyer-analyst

    通过中国法律视角分析事件,运用成文法解释、指导案例参照、请求权基础分析等方法, 理解权利义务、评估责任风险、识别法律依据并推荐合规策略。

    196 GitHub stars~3.3k tokensUpdated 8 mo ago
    Legal & ComplianceAuto-check passed

More from zhou210712/claude-for-legal-ZH

All 122 skills in this repo
  • Claim Chart

    zhou210712/claude-for-legal-ZH

    构建或审查要件分析表——专利权利要求对照表(侵权、无效或审查)或 民事构成要件分析表(任何诉讼请求或抗辩),每个单元格附精确引用, 缺口检测为优先输出。当用户要求要件分析表、权利要求对照表、 证据对照表、侵权或无效主张、逐要件映射,或问"我们证明[主张]还缺什么"时使用。

    225 GitHub stars~1.3k tokensUpdated 4 mo ago
    Auto-check passed
  • Client Intake

    zhou210712/claude-for-legal-ZH

    结构化接待——实践领域模板、跨领域考点识别、利益冲突标记、分流分类. An agent skill from zhou210712/claude-for-legal-ZH.

    225 GitHub stars~1.2k tokensUpdated 4 mo ago
    Auto-check passed
  • Gap Surfacer

    zhou210712/claude-for-legal-ZH

    参考资料:支持 /regulatory-legal:gaps 和 /regulatory-legal:comments 的共享差距和意见征集跟踪框架。跟踪未关闭的政策差距及其整改状态, 从 policy-diff 中获取差距,呈现开放和即将到期的事项,路由给负责人, 并通过企业通讯工具通知差距负责人,每次发送前需确认。

    225 GitHub stars~757 tokensUpdated 4 mo ago
    Auto-check passed
  • Launch Review

    zhou210712/claude-for-legal-ZH

    对照您的框架和风险校准进行全面产品上线审查。当用户说"审查这个上线" "[功能]法务审查""我们能上线吗""[产品]有什么法律问题"或引用了需要 逐类审查备忘录的产品需求文档或上线追踪工单时使用。

    225 GitHub stars~2k tokensUpdated 4 mo ago
    Auto-check passed
  • Reg Feed Watcher

    zhou210712/claude-for-legal-ZH

    检查法规动态源,报告自上次检查以来的新事项,按重要度阈值过滤。适用于用户说"检查法规动态"、"有什么新规定"、"法规更新"、从定时任务触发执行,或手动粘贴法规动态进行分类和差异分析时。

    225 GitHub stars~1.2k tokensUpdated 4 mo ago
    Auto-check passed
  • Renewal Tracker

    zhou210712/claude-for-legal-ZH

    展示具有即将到来的取消截止日期的合同,在通知窗口关闭前发出预警, 基于维护的续约登记册运行。当用户询问"什么即将续约""哪些续约即将到期" "我们是否错过了取消窗口""将此添加到续约追踪器"时使用,或按计划运行。

    225 GitHub stars~681 tokensUpdated 4 mo ago
    Auto-check passed

Questions about Matter Workspace

What does Matter Workspace do?

为多客户执业场景管理案件工作空间——创建、列表、切换、关闭或脱离活跃案件. An agent skill from zhou210712/claude-for-legal-ZH. Matter Workspace is an agent skill from zhou210712/claude-for-legal-ZH.

When should I use Matter Workspace?

Matter Workspace fits situations like: tasks that involve Legal research.

How do I install Matter Workspace in Claude Code?

Run `npx skills add zhou210712/claude-for-legal-ZH --skill matter-workspace -a claude-code`. Or copy the skill folder (litigation-legal/skills/matter-workspace in zhou210712/claude-for-legal-ZH) into .claude/skills/matter-workspace in your project. Claude Code loads it when a task matches its description.

How do I install Matter Workspace in Codex?

Run `npx skills add zhou210712/claude-for-legal-ZH --skill matter-workspace -a codex`. Or copy the skill folder (litigation-legal/skills/matter-workspace in zhou210712/claude-for-legal-ZH) into .agents/skills/matter-workspace in your project. Codex loads it when a task matches its description.

Can I use Matter Workspace in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add zhou210712/claude-for-legal-ZH --skill matter-workspace -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/matter-workspace, .gemini/skills/matter-workspace, .github/skills/matter-workspace and .opencode/skills/matter-workspace in your project.

What does Matter Workspace need to run?

SKILL.md names no scripts, command-line tools or credentials: Matter Workspace is instructions for the agent only.

Does Matter Workspace access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Matter Workspace safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Matter Workspace use?

Matter Workspace is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Matter Workspace use?

About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Matter Workspace?

Skills that share tags, products or a category with Matter Workspace: Cold Start Interview (anthropics/claude-for-legal, 9.6k stars), Reasoning Personas (sundial-org/awesome-openclaw-skills, 663 stars), Poweruser Feature Audit (pydantic/pydantic-ai, 21k stars) and Tw Legal RAG (aa0101181514/tw-legal-rag, 328 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Matter Workspace?

zhou210712 (a GitHub user) maintains it in zhou210712/claude-for-legal-ZH, which has 225 GitHub stars. The repository holds 122 skills in this directory. The repository was last updated on May 15, 2026.

Source: zhou210712/claude-for-legal-ZH on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.