Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Third-Party Notices

## claude-for-legal

Portions of Mike's built-in legal workflows are derived from **claude-for-legal**
by Anthropic (https://github.com/anthropics/claude-for-legal), licensed under the
**Apache License, Version 2.0**.

The skill prompt bodies under `commercial-legal/skills/` were adapted into Mike
"assistant" workflows (see `backend/src/lib/portedLegalWorkflows.ts` and
`frontend/src/app/components/workflows/portedLegalWorkflows.ts`, generated by
`backend/scripts/import-skills.ts`). Adaptations rewrite references to the
upstream per-team `CLAUDE.md` practice profile to Mike's per-user Practice
Profile, and references to external CLM/e-signature/storage connectors to Mike's
own document tools.

A copy of the Apache 2.0 license is available at
https://www.apache.org/licenses/LICENSE-2.0.

These workflows produce drafts for attorney review and do not constitute legal
advice.
9 changes: 9 additions & 0 deletions backend/migrations/001_practice_profile.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- Per-user practice profile.
--
-- A free-text "playbook" the user maintains (firm positions, house style,
-- escalation matrix, preferred governing law, etc.). It is injected into the
-- assistant system prompt so ported legal workflows can rely on the user's
-- configured positions instead of assuming defaults. Mirrors the per-team
-- CLAUDE.md practice profiles used by the claude-for-legal skill set.
alter table public.user_profiles
add column if not exists practice_profile text;
9 changes: 9 additions & 0 deletions backend/migrations/002_practice_profiles_by_area.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- Per-practice-area practice profiles.
--
-- Complements user_profiles.practice_profile (the general, always-injected
-- profile) with an area-keyed map, e.g.
-- { "Litigation": "...", "Commercial Contracts": "..." }
-- The profile for the active workflow's practice area is injected alongside the
-- general one, mirroring claude-for-legal's per-plugin CLAUDE.md files.
alter table public.user_profiles
add column if not exists practice_profiles jsonb not null default '{}'::jsonb;
Loading