# opencode-for-legal A port of claude-for-legal skills and agents to Opencode format. ## License This port is distributed under the Apache License 2.0, consistent with the upstream claude-for-legal project. ## Upstream Source This is a derivative work of: claude-for-legal https://github.com/anthropics/claude-for-legal Copyright 2025 Anthropic PBC Licensed under Apache License 2.0 The original source files are preserved in the parent repository: ../commercial-legal/ (original plugin) ../corporate-legal/ ../employment-legal/ ../ip-legal/ ../law-student/ ../legal-clinic/ ../litigation-legal/ ../privacy-legal/ ../product-legal/ ../regulatory-legal/ ../ai-governance-legal/ ../managed-agent-cookbooks/ ../LICENSE (Apache 2.0 license text) ## What This Port Changes The original skill content (workflow instructions, output templates, guardrails) is preserved. The following adaptations were made for Opencode compatibility: 1. **Skill frontmatter** — namespaced as `{plugin}-{skill}`; removed Claude Code-specific fields (`argument-hint`, `user-invocable`) 2. **Agent definitions** — converted from Claude Code format (`tools:` array) to Opencode format (`mode: subagent`, `model:`) 3. **MCP configuration** — converted from per-plugin `.mcp.json` to a single `opencode.json` with `mcp` key 4. **File references** — `CLAUDE.md` renamed to `PROFILE.md`; config paths updated to `~/.config/opencode/opencode-for-legal/` 5. **Platform references** — Claude Code / Claude Cowork product references replaced with Opencode equivalents 6. **Cookbooks** — three-tier CMA subagent architecture (YAML manifests) flattened to single Opencode agent definitions ## Trademark Notice "Claude" and "Claude Code" are trademarks of Anthropic. This port is not affiliated with, endorsed by, or maintained by Anthropic. ## Modifications All modifications made by this port are documented in git history. The README.md has been rewritten for Opencode. No original skill workflow content has been altered beyond platform-specific path and product-name updates.