matter-workspace
できること
このスキルは、顧客や案件ごとに別々のワークスペースを管理します。複数の顧客を担当し、それぞれの文脈を分けておく必要がある弁護士やアドバイザーに向けたものです。
使う場面
- ✓新しい顧客のために仕事を始め、専用のワークスペースがほしいとき。
- ✓顧客を切り替え、正しい文脈を読み込む必要があるとき。
- ✓案件が終わり、削除せずにアーカイブしたいとき。
スキルのリンク
https://github.com/anthropics/claude-for-legal/blob/main/ai-governance-legal/skills/matter-workspace/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“新しい案件ワークスペースを顧客のAcme用に作成し、そこに切り替えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、各ワークスペースごとにmatter.mdファイルを保ち、どれがアクティブかを記録します。切り替えると他のスキルが使う文脈が変わり、閉じた案件はフォルダごとアーカイブされ、削除されません。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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, writematter.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
- Read
~/.claude/plugins/config/claude-for-legal/ai-governance-legal/CLAUDE.md— confirm the## Matter workspacessection is populated. IfEnabledis✗, 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 --redoand select a private-practice setting. Otherwise, you don't need/matter-workspaceat all." Don't error — the disabled state is the expected one for in-house users. - Use the workflow below.
- 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, seedhistory.mdandnotes.md.list→ enumerate~/.claude/plugins/config/claude-for-legal/ai-governance-legal/matters/*/matter.md, print a table, mark the active matter.switch→ update theActive 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 inhistory.md.none→ setActive matter:tonone — practice-level context only.
- Show the user what changed and confirm before writing.
Notes
- The skill never reads across matters unless
Cross-matter contextisonin 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 /ai-governance-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/ai-governance-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>
- Confirm slug is not already present in
matters/<slug>/ormatters/_archived/<slug>/. If reused, ask the user to pick a different slug. - Run the intake interview:
- Client (the party we represent, or the i
よくある質問
社内の法務チームにも必要ですか?
スキルは、社内の業務では案件のワークスペースは既定でオフであり、業務はプラクティスのレベルで動くと述べています。
閉じた案件は削除されますか?
いいえ。スキルは閉じた案件をアーカイブのフォルダに移し、決して削除しません。
案件なしで作業できますか?
はい。スキルには、プラクティスのレベルだけで作業するためのnoneという選択肢があります。
詳細
作者による元の説明
Manage matter workspaces — new, list, switch, close, or detach (practice-level). File-management logic for keeping one client or engagement's context separate from every other. Use when working across multiple clients or matters, when the user says "new matter", "switch matter", "list matters", "close matter", or when any substantive skill needs to know which matter it's working in.
人気
- GitHubのスター
- 9.9k
- ランキング
- #12044
- ライセンス
- Apache-2.0
- 更新日
- 2026/10/29
コメント
- …
このリポジトリの他のスキル
ai-inventory
9.9kEU AI法の下で、システムごとの役割、リスク区分、分類の根拠を記録しながら、AIツールの社内の一覧を保つようエージェントを支援します。
aia-generation
9.9k利用ケースについて、リスク、規制の分類、方針との整合性、推奨される条件を含むAI影響評価を作成するようエージェントを支援します。
cold-start-interview
9.9kセットアップのインタビューを行い、方針文書から業務のプロファイルを作ることで、AIガバナンスの業務の進め方を学ぶようエージェントを支援します。
customize
9.9kリスクの姿勢、連絡先、方針の立場など、AIガバナンスの業務プロファイルの一部分だけを、全体の設定をやり直さずに変えるようエージェントを支援します。