fork of claude-for-legal ported to opencode
Find a file
alpha nerd 27fbe1f313
port to Opencode: 140 skills, 14 agents, 19 MCP configs
Port claude-for-legal plugin collection to Opencode skills format.

Changes:
- 140 skills ported to opencode-for-legal/skills/ (namespaced naming)
- 14 agents converted to Opencode subagent format
- 5 managed-agent cookbooks flattened to single agents
- 19 MCP servers converted to opencode.json format
- 11 practice-profile templates ported (CLAUDE.md → PROFILE.md)
- Remote skill catalog (index.json) for Opencode URL discovery
- Setup wizard skill for first-time configuration

License compliance:
- Original source preserved in upstream/ per Apache 2.0 §4(b)
- NOTICE.md documents derivative work and upstream attribution
- LICENSE copied into port directory
- README rewritten with port disclaimer and trademark notice

Platform updates:
- Removed all Claude Code/Cowork product-specific references
- Config paths updated to ~/.config/opencode/opencode-for-legal/
- Command syntax: /plugin:skill → opencode auto-loading
- Agent frontmatter converted (tools: → mode: subagent)
2026-06-13 15:15:53 +02:00
.github/workflows Add CLA workflow, CONTRIBUTING note, and align copyright header format 2026-05-11 15:55:23 -07:00
opencode-for-legal port to Opencode: 140 skills, 14 agents, 19 MCP configs 2026-06-13 15:15:53 +02:00
scripts Merge pull request #56 from dazzaji/fix/handoff-regex-truncation 2026-05-28 17:48:21 -07:00
upstream port to Opencode: 140 skills, 14 agents, 19 MCP configs 2026-06-13 15:15:53 +02:00
.gitignore Tighten handoff param patterns to block prompt injection via spaces 2026-05-11 13:50:41 -07:00
index.json port to Opencode: 140 skills, 14 agents, 19 MCP configs 2026-06-13 15:15:53 +02:00
INSTALL.md port to Opencode: 140 skills, 14 agents, 19 MCP configs 2026-06-13 15:15:53 +02:00
LICENSE Initial commit of Claude for Legal 2026-05-11 13:44:26 -07:00
NOTICE.md port to Opencode: 140 skills, 14 agents, 19 MCP configs 2026-06-13 15:15:53 +02:00
README.md port to Opencode: 140 skills, 14 agents, 19 MCP configs 2026-06-13 15:15:53 +02:00

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 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 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

# Local install
git clone <repo-url> ~/.config/opencode/opencode-for-legal

# Add to opencode.json:
{
  "skills": {
    "paths": ["~/.config/opencode/opencode-for-legal/skills"]
  }
}

Or use the remote catalog:

{
  "skills": {
    "urls": ["https://<your-host>/index.json"]
  }
}

See 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)
Aspect Original (Claude Code) This Port (Opencode)
Distribution Claude Code plugin marketplace Opencode skills (local or remote catalog)
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)