Skip to main content

matter-workspace

Manage matter workspaces — new, list, switch, close, or detach (practice-level). Use when a multi-client practitioner needs to create a matter, switch the active matter, list matters, archive a matter, or detach to practice-level context, or when another skill needs to know which matter it's working in.

v1.0.0New

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install anthropic-legal-commercial-legal-matter-workspace
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/anthropic-legal-commercial-legal-matter-workspace/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiCryptographically signed by the skills-hub.ai distributor key at publish time.
Signed
0Save

Instructions

/matter-workspace

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

Subcommands

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

Instructions

  1. Read ~/.claude/plugins/config/claude-for-legal/commercial-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 /commercial-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 subcommand logic below.
  3. Dispatch on the first token of $ARGUMENTS:
    • new → run the intake interview, write ~/.claude/plugins/config/claude-for-legal/commercial-legal/matters/<slug>/matter.md, seed history.md and notes.md.
    • list → enumerate ~/.claude/plugins/config/claude-for-legal/commercial-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/commercial-legal/matters/<slug>/ to ~/.claude/plugins/config/claude-for-legal/commercial-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.

Notes

  • The skill never reads across matters unless Cross-matter context is on in the practice-level CLAUDE.md.
  • Archiving is not deletion — closed matters remain readable for retention/conflicts purposes.
  • Slugs are lowercase with hyphens. If a slug is reused across archived and active, the archived one is preserved under _archived/<slug>/.

Multi-client practitioners (private practice — solo, small firm, large firm) work across many matters. Context from one must not leak into another. This skill is the thin file-management layer that makes that true.

Default state is off. In-house users never see this — they run at practice-level only. Matter workspaces turn on at cold-start for private-practice users, or by editing ## Matter workspaces in the practice-level CLAUDE.md. If Enabled is ✗, this skill does not run; the workflow above explains the disabled state and suggests /commercial-legal:cold-start-interview --redo for users who actually need matter isolation.

Storage layout

All matter data lives under:

~/.claude/plugins/config/claude-for-legal/commercial-legal/
├── CLAUDE.md                       # practice-level practice profile
└── matters/
    ├── <slug>/
    │   ├── matter.md               # client, counterparty, matter type, key facts, overrides
    │   ├── history.md              # dated log of events, decisions, drafts, reviews
    │   ├── notes.md                # free-form working notes
    │   └── outputs/                # skill outputs for this matter (optional subfolder)
    └── _archived/
        └── <slug>/                 # closed matters — readable but not active

Slugs are lowercase with hyphens. Examples: acme-msa-2026, zenith-renewal, vendor-xyz-nda.

Active matter is in the practice CLAUDE.md

The Active matter: line under ## Matter workspaces in the practice-level CLAUDE.md is the single source of truth. Switching a matter edits that line. No separate state file.

Subcommand logic

new <slug>

  1. Confirm slug is not already present in matters/<slug>/ or matters/_archived/<slug>/. If reused, ask the user to pick a different slug.
  2. Run the intake interview:
    • Client (the party we represent, or the internal business unit if in-house)
    • Counterparty (the other side — may be multiple)
    • Matter type (read the plugin's practice profile for typical categories; for commercial-legal: vendor MSA | customer agreement | NDA | SaaS subscription | amendment | renewal | other)
    • Confidentiality level (standard | heightened | clean-team — heightened prompts extra care in cross-matter settings)
    • Key facts (2–5 sentences: what this matter is about, who the stakeholders are, what's at stake)
    • Matter-specific overrides to the practice playbook (e.g., "client requires 24-month LoL cap not 12", "counterparty is a strategic partner — relationship-preserving tone")
    • Related matters (slugs of any connected matters)
  3. Write matters/<slug>/matter.md using the template below.
  4. Seed matters/<slug>/history.md with a single "Opened" entry.
  5. Create an empty matters/<slug>/notes.md.
  6. Do not auto-switch to the new matter. Ask: "Want to switch to <slug> now? (/commercial-legal:matter-workspace switch <slug>)"

list

Enumerate matters/*/matter.md. Read each file's front-matter or first few lines to extract status. Print a table:

SlugClientMatter typeStatusOpenedActive

Mark the currently-active matter with *. Include _archived/* under a separate "Archived" heading if any exist.

switch <slug>

  1. Confirm matters/<slug>/matter.md exists. If not, offer /commercial-legal:matter-workspace new <slug>.
  2. Edit the Active matter: line in the practice-level CLAUDE.md to Active matter: <slug>.
  3. Show the user the matter.md summary so they can confirm they're on the right matter.

close <slug>

  1. Confirm matters/<slug>/ exists.
  2. Append a "Closed" entry to matters/<slug>/history.md with today's date.
  3. Move matters/<slug>/ → matters/_archived/<slug>/.
  4. If the closed matter was the active matter, set Active matter: to none — practice-level context only.

none

Set Active matter: in the practice-level CLAUDE.md to none — practice-level context only. Confirm with the user.

matter.md template

[WORK-PRODUCT HEADER — per plugin config ## Outputs — differs by role; see `## Who's using this` in the practice-level CLAUDE.md]

# Matter: [Client] — [short description]

**Slug:** [slug]
**Opened:** [YYYY-MM-DD]
**Status:** active
**Confidentiality:** [standard / heightened / clean-team]

---

## Parties

**Client:** [name]
**Counterparty:** [name(s)]

## Matter type

[vendor MSA | customer agreement | NDA | SaaS subscription | amendment | renewal | other — with one-line rationale]

## Key facts

[2–5 sentences. What this matter is about. Who the stakeholders are. What's at stake. What makes it different from the default playbook.]

## Matter-specific overrides

*Any deviation from the practice-level playbook that applies to this matter and only this matter.*

- [e.g., "LoL cap: client requires 24 months, not house standard 12."]
- [e.g., "Tone: relationship-preserving — counterparty is a strategic partner."]
- [e.g., "Governing law: must be English law, not Delaware."]

## Related matters

- [slug — one line why related]

## Notes on confidentiality

[If heightened or clean-team, describe why. Who may see matter files. Whether cross-matter context is permissible even if globally on.]

history.md seed

# History: [Client] — [short description]

Append-only event log. Most recent at top.

---

## [YYYY-MM-DD] — Matter opened

Intake completed. Slug: `[slug]`. Status: active.
[Any initial context worth preserving beyond matter.md — e.g., "Opened in response to inbound MSA draft from [counterparty]."]

Cross-matter context

The practice-level CLAUDE.md has a Cross-matter context: flag. When it's off (the default), a skill working in matter A never reads files in matters/B/ for any other B. Period. This is the confidentiality guarantee the setting exists to provide.

When it's on, a skill may read files across matter folders only when the user explicitly asks it to (e.g., "compare our position on liability caps across the last five vendor matters"). Even when on, the default is to load only the active matter unless the user asks for a cross-matter view.

What this skill does not do

  • Run a conflicts check. Conflicts are the practitioner's/firm's job; the intake captures what the user declares.
  • Enforce retention. Closing archives a matter; it does not delete. Retention policy is out of scope.
  • Auto-route outputs. The substantive skill decides where to write; this skill tells it which folder is active, not what to put in it.
  • Decide whether cross-matter is appropriate. It reads the flag and obeys.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
study-planBuild or update a long-term bar prep (or exam prep) study plan — phases, subjects weighted by weakness, daily session schedule, adaptive to session history in study-plan.yaml. Use when the user says "build a study plan", "plan my bar prep", "schedule my studying", or "how should I study for [X]".0 installsleave-trackerCheck open leaves for deadline alerts and required decisions. Surfaces only the leaves that require an action and explains why — not a status board. Use weekly, or whenever the attorney needs to know which leaves have upcoming designation, certification, or exhaustion deadlines.0 installsmatter-briefingDeep briefing on one matter — current posture, what's changed, next deadline, open questions, and a risk re-assessment check, ready before a GC update or outside counsel call. Use when the user says "brief me on [matter]", "where are we on [matter]", or needs a read on a specific matter.0 installsstatusCase status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.0 installsregistry-browserSearch watched registries for community legal skills, showing matches with descriptions and offering to show the full SKILL.md before install. Use when the user says "browse", "search skills", "find a skill for", "what's out there for", or wants to add a new registry to the watchlist.0 installsfto-triageFreedom-to-operate triage — a structured first look at potentially blocking patents, not an FTO opinion. Use when a product, process, or feature is being evaluated for blocking patents, when asked whether anything stops a launch, or to build a claim-chart first pass against the most plausible patents before patent counsel review. This skill never concludes a product is clear to launch.0 installs
View source →
skill-installerInstall a community skill from a watched registry. Reads the allowlist first, fetches, shows the RAW SKILL.md (not just a summary), runs structural trust checks, runs skills-qa, and only writes files after explicit user approval. Use when the user says "install [skill]", picks install from browse, or provides a direct skill URL.2 installsreg-feed-watcherCheck regulatory feeds now and report what's new since the last check, filtered by your materiality threshold. Use when the user says "check the feeds", "what's new", "regulatory update", when running from the scheduled agent, or when manually pasting a regulatory development for classification and diff.1 installsresearch-startResearch roadmap for a legal issue — statutes to check, case law areas to investigate, regulatory frameworks, Westlaw search terms. Leads and frameworks, NOT authoritative citations; students verify and develop everything. Use when a student asks where to start researching, wants a research roadmap for an issue, or needs gaps identified in existing research.1 installsclient-intakeStructured intake — practice-area templates, cross-area issue spotting, conflict flags, and triage classification. Produces a formatted case summary the student analyzes and the professor reviews. Does NOT decide case acceptance. Use when starting a new client intake, running an intake interview, or writing up a new client's situation.1 installsbar-prep-questionsBar prep questions — MBE or essay, targeted at your weak subjects and bar jurisdiction. Tracks misses and comes back to patterns. Use when the user says "bar prep", "MBE questions", "practice essay", or "test me for the bar".1 installscustomizeGuided customization of your corporate practice profile — change one thing without re-running the whole cold-start interview. Adjust risk posture, escalation contacts, active modules (M&A / Board / Public Company / Entity Management), materiality thresholds, disclosure schedule format, consent precedents, or matter workspace paths. Use when the user says "change my [thing]", "update my profile", "edit my config", or "customize".0 installs
Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.635 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.535 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.346 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.246 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.173 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions145 installs
What does the matter-workspace skill do?

Manage matter workspaces — new, list, switch, close, or detach (practice-level). Use when a multi-client practitioner needs to create a matter, switch the active matter, list matters, archive a matter, or detach to practice-level context, or when another skill needs to know which matter it's working in. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the matter-workspace skill?

Run `npx @skills-hub-ai/cli install anthropic-legal-commercial-legal-matter-workspace` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/anthropic-legal-commercial-legal-matter-workspace/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does matter-workspace work with?

matter-workspace runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the matter-workspace skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use matter-workspace after installing it?

In Claude Code, type `/anthropic-legal-commercial-legal-matter-workspace` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the matter-workspace skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.