opencode-for-legal/README.md

126 lines
6.9 KiB
Markdown

# opencode-for-legal
140 skills, 14 agents, and 19 MCP connector configurations for Opencode — covering in-house commercial, privacy, product, corporate, employment, litigation, regulatory, AI governance, IP, and legal education workflows.
> **Ported from claude-for-legal.** This is an Opencode-compatible port of the [claude-for-legal](https://github.com/anthropics/claude-for-legal) plugin collection by Anthropic (Apache 2.0). The original source files are preserved in the parent repository alongside this port per Apache 2.0 Section 4(b) requirements. See [NOTICE.md](NOTICE.md) for full attribution.
>
> **Trademark notice:** "Claude" and "Claude Code" are trademarks of Anthropic. This port is not affiliated with, endorsed by, or maintained by Anthropic.
>
> **Every output from these skills is a draft for attorney review** — not legal advice, not a legal conclusion, not a substitute for a lawyer. A lawyer reviews, verifies, and takes professional responsibility for anything that leaves the building. These skills make that review faster; they do not replace it.
## Quick Install
```bash
# Clone the repo
git clone <repo-url> /tmp/opencode-for-legal
# Copy skills to your opencode skills directory
cp -r /tmp/opencode-for-legal/opencode-for-legal/skills/* ~/.config/opencode/skills/
# Copy agents to your opencode agents directory
mkdir -p ~/.opencode/agents
cp /tmp/opencode-for-legal/opencode-for-legal/agents/* ~/.opencode/agents/
```
Opencode auto-discovers skills from `~/.config/opencode/skills/` and agents from `.opencode/agents/` — no config changes needed.
See [INSTALL.md](INSTALL.md) for full setup instructions.
## What's Included
### 11 Practice Areas (140 skills)
| Plugin | Skills | Focus |
|---|---|---|
| **AI Governance Legal** | 10 | EU AI Act inventory, impact assessments, vendor AI review, policy monitoring |
| **Commercial Legal** | 12 | Vendor/NDA/SaaS review, renewals, escalations, playbook management |
| **Corporate Legal** | 13 | M&A diligence, closing checklists, board consents, entity compliance, VDR monitoring |
| **Employment Legal** | 20 | Hire/termination review, worker classification, leave tracking, investigations |
| **IP Legal** | 12 | Trademark clearance, FTO, C&D, DMCA, OSS compliance, IP clauses, portfolio |
| **Law Student** | 13 | Socratic drilling, outlining, IRAC grading, bar prep, flashcards |
| **Legal Clinic** | 16 | Clinic setup, student onboarding, intake, deadlines, memos, handoffs |
| **Litigation Legal** | 19 | Portfolio tracking, matters, holds, demands, deposition prep, claim charts |
| **Privacy Legal** | 9 | DPA review, DSAR response, PIA generation, privacy triage, policy monitoring |
| **Product Legal** | 7 | Launch review, marketing claims, "is this a problem?" triage |
| **Regulatory Legal** | 9 | Feed monitoring, policy diff, gap tracking, NPRM comments |
### 14 Agents
Scheduled and workflow-driven subagents for recurring tasks:
| Agent | What it does |
|---|---|
| `commercial-legal-deal-debrief` | Weekly signed-agreement deviation log |
| `commercial-legal-playbook-monitor` | Playbook drift detection |
| `commercial-legal-renewal-watcher` | Weekly renewal deadline alerts |
| `corporate-legal-dataroom-watcher` | VDR upload monitoring |
| `employment-legal-leave-tracker` | FMLA/leave deadline alerts |
| `ip-legal-ip-renewal-watcher` | IP portfolio deadline monitoring |
| `litigation-legal-docket-watcher` | Court docket monitoring |
| `product-legal-launch-watcher` | Product launch tracking |
| `regulatory-legal-reg-change-monitor` | Regulatory digest generator |
| `cookbook-diligence-grid` | M&A diligence grid orchestrator |
| `cookbook-docket-watcher` | Court docket pipeline orchestrator |
| `cookbook-launch-radar` | Launch risk triage orchestrator |
| `cookbook-reg-monitor` | Regulatory feed pipeline orchestrator |
| `cookbook-renewal-watcher` | Contract renewal pipeline orchestrator |
### 19 MCP Connectors
| Category | Servers |
|---|---|
| **Document Management** | Google Drive, Box, iManage |
| **Contract Lifecycle** | Ironclad, DocuSign, Definely |
| **Litigation & EDiscovery** | Everlaw, Trellis, CourtListener, Aurora, Courtroom5 |
| **IP & Research** | Solve Intelligence, Descrybe |
| **Project Tracking** | Linear, Atlassian (Jira), Asana |
| **Counsel Network** | TopCounsel |
| **Communication** | Slack |
## Repository Layout
```
. # Repo root — this port
├── opencode-for-legal/ # Ported content
│ ├── skills/ # 141 skills (namespaced: {plugin}-{skill}/)
│ ├── agents/ # 14 subagent definitions
│ ├── legal-config/ # 11 practice-profile templates
│ └── opencode.json.example # MCP server configuration
├── index.json # Remote skill catalog (141 entries)
├── INSTALL.md # Installation guide
├── README.md # This file
├── NOTICE.md # Attribution and license notice
├── LICENSE # Apache 2.0
├── scripts/ # Port scripts
└── upstream/ # Original claude-for-legal source (preserved)
├── commercial-legal/ # Original plugin
├── corporate-legal/
├── ... (11 more plugins)
├── managed-agent-cookbooks/ # Original CMA cookbooks
└── LICENSE # Apache 2.0 (original)
```
## Practice Profiles
Each plugin has a practice-profile template in `opencode-for-legal/legal-config/`. The setup skill copies these to `~/.config/opencode/opencode-for-legal/<plugin>/PROFILE.md` and guides you through configuration:
- Company identity, jurisdiction, team size
- Practice areas and specialization
- Escalation contacts
- Risk posture and house style
- Output format rules
- Integration status (which MCP servers are available)
## Differences from the Original claude-for-legal
| Aspect | Original (Claude Code) | This Port (Opencode) |
|---|---|---|
| **Distribution** | Claude Code plugin marketplace | Copy to `~/.config/opencode/skills/` (auto-discovered) |
| **Skill invocation** | `/plugin:skill` slash commands | Auto-loaded by model from `skills/` directory |
| **Skill naming** | Short names within plugin namespace | Namespaced: `{plugin}-{skill}` (e.g., `commercial-legal-nda-review`) |
| **MCP config** | Per-plugin `.mcp.json` files | Single `opencode.json` with `mcp` key |
| **Practice profile** | `CLAUDE.md` per plugin in `~/.claude/` | `PROFILE.md` in `~/.config/opencode/opencode-for-legal/` |
| **Agents** | Claude Code agent definitions | Opencode subagent definitions (`.opencode/agents/`) |
| **Hooks** | `hooks/hooks.json` (empty stubs) | Not ported (Opencode hooks require TypeScript) |
| **Cookbooks** | CMA `agent.yaml` with three-tier subagents | Flattened to single Opencode agents |
| **Builder hub** | Community skill discovery/install | Not ported (Claude Code-specific meta-skills) |