matter-workspace

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

A workspace manager that keeps files and context for each client or legal engagement separate. A matter is a specific client project or legal case.

In plain words
What is it for?
Use it to create, list, switch, close, or detach matter workspaces.
Why use it?
It reduces the risk of mixing information between clients or engagements when working on several at once.

Skill for Claude Code ✓ vendor

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, 2 MCP servers shipped together

Good fit Use it to create, list, switch, close, or detach matter workspaces.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anthropics/claude-for-legal/matter-workspace
About the project

Claude for Legal is a collection of AI agents, skills, and data connectors for legal work such as commercial, privacy, employment, litigation, regulatory, and intellectual-property matters. Lawyers and legal teams use it through Claude Cowork, Claude Code, or the Claude Managed Agents API, with attorney review required for every output. The catalogue entries are its workflow plugins, skills, agents, and connectors.

anthropics/claude-for-legal · 9,433 stars · on GitHub

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 anthropics/claude-for-legal --skill matter-workspace
Clone the repo
git clone --depth 1 https://github.com/anthropics/claude-for-legal

Made for: Claude Code.

Or install ai-governance-legal, the plugin that ships this one along with the rest of its 10 skills, 2 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/anthropics/claude-for-legal/matter-workspace/github.svg)](https://agentmods.dev/skills/anthropics/claude-for-legal/matter-workspace)
Your own site
<a href="https://agentmods.dev/skills/anthropics/claude-for-legal/matter-workspace"><img src="https://agentmods.dev/badge/skills/anthropics/claude-for-legal/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/anthropics/claude-for-legal/matter-workspace"><img src="https://agentmods.dev/badge/skills/anthropics/claude-for-legal/matter-workspace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,448 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. Third-party audits
  • Socket pass 13 May 2026
  • Snyk pass 13 May 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 18
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00082 $0.02448
Opus 5 $0.00041 $0.01224
Sonnet 5 $0.00016 $0.00490
Haiku 4.5 $0.00008 $0.00245

Measured 13d ago against content hash 8226cf1c7d54, 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 13d 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

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

Practitioners work across multiple clients and matters. A matter workspace keeps one client or engagement's context separate from every other. This skill manages those workspaces.

Subcommands

  • /ai-governance-legal:matter-workspace new <slug> — create a new matter workspace, run a short intake, write matter.md
  • /ai-governance-legal:matter-workspace list — list matters with status and active flag
  • /ai-governance-legal:matter-workspace switch <slug> — set the active matter
  • /ai-governance-legal:matter-workspace close <slug> — archive a matter (move to ~/.claude/plugins/config/claude-for-legal/ai-governance-legal/matters/_archived/, never delete)
  • /ai-governance-legal:matter-workspace none — detach from any active matter, work at practice-level only

Instructions

  1. Read ~/.claude/plugins/config/claude-for-legal/ai-governance-legal/CLAUDE.md — confirm the ## Matter workspaces section is populated. If Enabled is , tell the user: "Matter workspaces are off — you're configured as an in-house practice with one client, so the plugin works from practice-level context automatically. If you actually work across multiple clients, re-run /ai-governance-legal:cold-start-interview --redo and select a private-practice setting. Otherwise, you don't need /matter-workspace at all." Don't error — the disabled state is the expected one for in-house users.
  2. Use the workflow below.
  3. Dispatch on the first token of $ARGUMENTS:
    • new → run the intake interview, write ~/.claude/plugins/config/claude-for-legal/ai-governance-legal/matters/<slug>/matter.md, seed history.md and notes.md.
    • list → enumerate ~/.claude/plugins/config/claude-for-legal/ai-governance-legal/matters/*/matter.md, print a table, mark the active matter.
    • switch → update the Active matter: line in the practice-level CLAUDE.md.
    • close → move ~/.claude/plugins/config/claude-for-legal/ai-governance-legal/matters/<slug>/ to ~/.claude/plugins/config/claude-for-legal/ai-governance-legal/matters/_archived/<slug>/, log the close date in history.md.
    • none → set Active matter: to none — practice-level context only.
  4. Show the user what changed and confirm before writing.

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. 13d ago First seen · 186 lines · 82 tokens per session scan A 8226cf1c7d54

Subscribe to this mod's changes

matter-workspace is a skill published in the GitHub repository anthropics/claude-for-legal (9,433 stars, last pushed 21d ago), licensed Apache-2.0. It adds 82 tokens to every session and 2,448 once invoked, about $0.0004 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

vendor-review

Evaluate a vendor — cost analysis, risk assessment, and recommendation. Use when reviewing a new vendor proposal, deciding whether to renew or replace a contract, comparing two vendors side-by-side, or building a TCO breakdown and negotiation points before procurement sign-off.

anthropics/knowledge-work-plugins · 54 tokens

patent-docket

A workflow coordinator for patent case files, from an inventor's technical disclosure to patent application documents. A patent docket is the tracked record of a patent matter, including its stage, questions, drafts, and handoffs.

handsomestWei/patent-disclosure-skill · 93 tokens

performance-management

Runs performance systems that change behavior — expectations, feedback, review cycles, calibration, and handling underperformance. Use this to design or fix a review process, run calibration, write or coach on feedback, address sustained underperformance, or work out why reviews consume weeks and change nothing.

cbrock84/headcount · 59 tokens

vendor-evaluation

Evaluate, select, and contract with vendors and SaaS tools. Use this skill when comparing alternatives, running an RFP, scoring vendors against criteria, negotiating contracts, planning a switch, or assessing a vendor's risk. Triggers on vendor evaluation, RFP, vendor selection, build vs buy, SaaS evaluation, vendor…

rampstackco/claude-skills · 99 tokens

67-agency-vendor-brief

Dung khi thue NGUOI NGOAI lam — agency, freelancer, production house, vendor: scope of work, spec deliverable, so vong sua, quy trinh duyet, moc thanh toan, dieu khoan IP va bao mat, bang danh gia vendor sau du an. Kich hoat khi user nhac 'brief agency', 'thue freelancer', 'quan ly vendor', 'scope of work', 'agency…

minhnv0807/ai-business-skills · 197 tokens

collab-vendor

A supplier-management guide for comparing vendors, organising contracts, and tracking risks in the supply chain. It also covers cross-border purchasing tasks such as customs documents and trade terms.

modu-ai/moai-cowork · 93 tokens