Agent Skillsanthropics/claude-for-legal › matter-workspace

matter-workspace

GitHub

管理多客户律师的事务工作区,支持创建、列表、切换、关闭或分离当前事务。确保不同客户的上下文隔离,防止信息泄露。适用于需要跨事务管理的私人执业者,内部用户默认不启用。

corporate-legal/skills/matter-workspace/SKILL.md anthropics/claude-for-legal

Trigger Scenarios

用户说'new matter' 用户说'switch matter' 用户说'list matters' 用户说'close matter' 用户希望仅在实践层面工作

Install

npx skills add anthropics/claude-for-legal --skill matter-workspace -g -y
More Options

Non-standard path

npx skills add https://github.com/anthropics/claude-for-legal/tree/main/corporate-legal/skills/matter-workspace -g -y

Use without installing

npx skills use anthropics/claude-for-legal@matter-workspace

指定 Agent (Claude Code)

npx skills add anthropics/claude-for-legal --skill matter-workspace -a claude-code -g -y

安装 repo 全部 skill

npx skills add anthropics/claude-for-legal --all -g -y

预览 repo 内 skill

npx skills add anthropics/claude-for-legal --list

SKILL.md

Frontmatter
{
    "name": "matter-workspace",
    "description": "Manage matter workspaces — create, list, switch, close, or detach the active matter so multi-client practitioners keep one client's context separate from every other. Read by any substantive skill that needs to know what matter it's working in. Use when user says \"new matter\", \"switch matter\", \"list matters\", \"close matter\", or wants to work at practice-level only.\n",
    "argument-hint": "<new | list | switch | close | none> [slug]"
}

/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

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

Instructions

  1. Read ~/.claude/plugins/config/claude-for-legal/corporate-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 /corporate-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/corporate-legal/matters/<slug>/matter.md, seed history.md and notes.md.
    • list → enumerate ~/.claude/plugins/config/claude-for-legal/corporate-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/corporate-legal/matters/<slug>/ to ~/.claude/plugins/config/claude-for-legal/corporate-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; /corporate-legal:matter-workspace explains the disabled state and suggests /corporate-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/corporate-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 corporate-legal: M&A buy-side | M&A sell-side | financing | board matter | entity reorg | integration project | 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? (/corporate-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:

Slug Client Matter type Status Opened Active

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 /corporate-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.

Version History

  • 5ceb305 Current 2026-07-05 15:34

Same Skill Collection

ai-governance-legal/skills/ai-inventory/SKILL.md
ai-governance-legal/skills/cold-start-interview/SKILL.md
ai-governance-legal/skills/customize/SKILL.md
ai-governance-legal/skills/matter-workspace/SKILL.md
ai-governance-legal/skills/policy-monitor/SKILL.md
ai-governance-legal/skills/policy-starter/SKILL.md
ai-governance-legal/skills/reg-gap-analysis/SKILL.md
ai-governance-legal/skills/use-case-triage/SKILL.md
ai-governance-legal/skills/vendor-ai-review/SKILL.md
commercial-legal/skills/amendment-history/SKILL.md
commercial-legal/skills/cold-start-interview/SKILL.md
commercial-legal/skills/customize/SKILL.md
commercial-legal/skills/escalation-flagger/SKILL.md
commercial-legal/skills/matter-workspace/SKILL.md
commercial-legal/skills/nda-review/SKILL.md
commercial-legal/skills/renewal-tracker/SKILL.md
commercial-legal/skills/review-proposals/SKILL.md
commercial-legal/skills/review/SKILL.md
commercial-legal/skills/saas-msa-review/SKILL.md
commercial-legal/skills/stakeholder-summary/SKILL.md
commercial-legal/skills/vendor-agreement-review/SKILL.md
corporate-legal/skills/ai-tool-handoff/SKILL.md
corporate-legal/skills/board-minutes/SKILL.md
corporate-legal/skills/closing-checklist/SKILL.md
corporate-legal/skills/cold-start-interview/SKILL.md
corporate-legal/skills/customize/SKILL.md
corporate-legal/skills/deal-team-summary/SKILL.md
corporate-legal/skills/diligence-issue-extraction/SKILL.md
corporate-legal/skills/entity-compliance/SKILL.md
corporate-legal/skills/integration-management/SKILL.md
corporate-legal/skills/material-contract-schedule/SKILL.md
corporate-legal/skills/written-consent/SKILL.md
employment-legal/skills/cold-start-interview/SKILL.md
employment-legal/skills/customize/SKILL.md
employment-legal/skills/expansion-kickoff/SKILL.md
employment-legal/skills/expansion-update/SKILL.md
employment-legal/skills/handbook-updates/SKILL.md
employment-legal/skills/hiring-review/SKILL.md
employment-legal/skills/internal-investigation/SKILL.md
employment-legal/skills/international-expansion/SKILL.md
employment-legal/skills/investigation-add/SKILL.md
employment-legal/skills/investigation-memo/SKILL.md
employment-legal/skills/investigation-open/SKILL.md
employment-legal/skills/investigation-query/SKILL.md
employment-legal/skills/investigation-summary/SKILL.md
employment-legal/skills/leave-tracker/SKILL.md
employment-legal/skills/log-leave/SKILL.md
employment-legal/skills/matter-workspace/SKILL.md
employment-legal/skills/policy-drafting/SKILL.md
employment-legal/skills/termination-review/SKILL.md
employment-legal/skills/wage-hour-qa/SKILL.md
employment-legal/skills/worker-classification/SKILL.md
external_plugins/cocounsel-legal/skills/deep-research/SKILL.md
ip-legal/skills/cease-desist/SKILL.md
ip-legal/skills/clearance/SKILL.md
ip-legal/skills/cold-start-interview/SKILL.md
ip-legal/skills/customize/SKILL.md
ip-legal/skills/fto-triage/SKILL.md
ip-legal/skills/infringement-triage/SKILL.md
ip-legal/skills/invention-intake/SKILL.md
ip-legal/skills/ip-clause-review/SKILL.md
ip-legal/skills/matter-workspace/SKILL.md
ip-legal/skills/oss-review/SKILL.md
ip-legal/skills/portfolio/SKILL.md
ip-legal/skills/takedown/SKILL.md
law-student/skills/bar-prep-questions/SKILL.md
law-student/skills/case-brief/SKILL.md
law-student/skills/cold-call-prep/SKILL.md
law-student/skills/cold-start-interview/SKILL.md
law-student/skills/customize/SKILL.md
law-student/skills/exam-forecast/SKILL.md
law-student/skills/flashcards/SKILL.md
law-student/skills/irac-practice/SKILL.md
law-student/skills/legal-writing/SKILL.md
law-student/skills/outline-builder/SKILL.md
law-student/skills/session/SKILL.md
law-student/skills/socratic-drill/SKILL.md
law-student/skills/study-plan/SKILL.md
legal-builder-hub/skills/auto-updater/SKILL.md
legal-builder-hub/skills/cold-start-interview/SKILL.md
legal-builder-hub/skills/customize/SKILL.md
legal-builder-hub/skills/disable/SKILL.md
legal-builder-hub/skills/registry-browser/SKILL.md
legal-builder-hub/skills/related-skills-surfacer/SKILL.md
legal-builder-hub/skills/skill-installer/SKILL.md
legal-builder-hub/skills/skill-manager/SKILL.md
legal-builder-hub/skills/uninstall/SKILL.md
legal-clinic/skills/build-guide/SKILL.md
legal-clinic/skills/client-comms-log/SKILL.md
legal-clinic/skills/client-intake/SKILL.md
legal-clinic/skills/client-letter/SKILL.md
legal-clinic/skills/cold-start-interview/SKILL.md
legal-clinic/skills/customize/SKILL.md
legal-clinic/skills/deadlines/SKILL.md
legal-clinic/skills/draft/SKILL.md
legal-clinic/skills/form-generation/SKILL.md
legal-clinic/skills/memo/SKILL.md
legal-clinic/skills/plain-language-letters/SKILL.md
legal-clinic/skills/ramp/SKILL.md
legal-clinic/skills/research-start/SKILL.md
legal-clinic/skills/semester-handoff/SKILL.md
legal-clinic/skills/status/SKILL.md
legal-clinic/skills/supervisor-review-queue/SKILL.md
litigation-legal/skills/brief-section-drafter/SKILL.md
litigation-legal/skills/chronology/SKILL.md
litigation-legal/skills/claim-chart/SKILL.md
litigation-legal/skills/cold-start-interview/SKILL.md
litigation-legal/skills/customize/SKILL.md
litigation-legal/skills/demand-draft/SKILL.md
litigation-legal/skills/demand-intake/SKILL.md
litigation-legal/skills/demand-received/SKILL.md
litigation-legal/skills/deposition-prep/SKILL.md
litigation-legal/skills/legal-hold/SKILL.md
litigation-legal/skills/matter-briefing/SKILL.md
litigation-legal/skills/matter-close/SKILL.md
litigation-legal/skills/matter-intake/SKILL.md
litigation-legal/skills/matter-update/SKILL.md
litigation-legal/skills/matter-workspace/SKILL.md
litigation-legal/skills/oc-status/SKILL.md
litigation-legal/skills/portfolio-status/SKILL.md
litigation-legal/skills/privilege-log-review/SKILL.md
litigation-legal/skills/subpoena-triage/SKILL.md
privacy-legal/skills/cold-start-interview/SKILL.md
privacy-legal/skills/customize/SKILL.md
privacy-legal/skills/dpa-review/SKILL.md
privacy-legal/skills/dsar-response/SKILL.md
privacy-legal/skills/matter-workspace/SKILL.md
privacy-legal/skills/pia-generation/SKILL.md
privacy-legal/skills/policy-monitor/SKILL.md
privacy-legal/skills/reg-gap-analysis/SKILL.md
privacy-legal/skills/use-case-triage/SKILL.md
product-legal/skills/cold-start-interview/SKILL.md
product-legal/skills/customize/SKILL.md
product-legal/skills/feature-risk-assessment/SKILL.md
product-legal/skills/is-this-a-problem/SKILL.md
product-legal/skills/launch-review/SKILL.md
product-legal/skills/marketing-claims-review/SKILL.md
product-legal/skills/matter-workspace/SKILL.md
regulatory-legal/skills/cold-start-interview/SKILL.md
regulatory-legal/skills/comments/SKILL.md
regulatory-legal/skills/customize/SKILL.md
regulatory-legal/skills/gap-surfacer/SKILL.md
regulatory-legal/skills/gaps/SKILL.md
regulatory-legal/skills/matter-workspace/SKILL.md
regulatory-legal/skills/policy-diff/SKILL.md
regulatory-legal/skills/policy-redraft/SKILL.md
regulatory-legal/skills/reg-feed-watcher/SKILL.md
ai-governance-legal/skills/aia-generation/SKILL.md
corporate-legal/skills/tabular-review/SKILL.md
legal-builder-hub/skills/skills-qa/SKILL.md

Metadata

Files
0
Version
5ceb305
Hash
88b92a6c
Indexed
2026-07-05 15:34

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-11 04:45
浙ICP备14020137号-1 $Гость$