refactor: legal-ops v3.0.0 — 1 agent + 6 skills#8
Merged
Conversation
- Transform legal-global-router skill -> legal-ops-router agent - Transform contract-intake-agent skill -> contract-intake agent - Keep 5 unique skills: compliance-calendar, dsar-privacy, ip-protection, legal-spend, regulatory-monitoring - Absorb 9 NDA RED flags and playbook loading into router agent - Absorb contract-intake-workflow recipe into contract-intake agent - Absorb /legal-brief routing table into router agent - Remove all commands (absorbed into agents/skills or Anthropic-owned) - Remove workflow-recipes, exercises, hooks, scripts, evals - Remove plugin-commands field from all skill frontmatter - Plugin now contains ONLY agents/ and skills/ directories - v2.0.0 -> v3.0.0 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Problem 1: Agents were directory-based (agents/name/AGENT.md) but the official Claude Code spec requires flat markdown files with YAML frontmatter (agents/name.md). Fixed by creating thin orchestrator agents that preload skills via the 'skills:' field. Problem 2: evals/, hooks/, scripts/ were wrongly deleted as part of the v3 restructure. These are standard plugin CI components. Restored from main and updated to reflect v3.0.0 architecture. Changes: - agents/legal-ops-router.md: flat file, preloads legal-global-router - agents/contract-intake.md: flat file, preloads contract-intake-agent - Deleted agents/legal-ops-router/ and agents/contract-intake/ dirs - Restored skills/legal-global-router/ with enhanced SKILL.md (v2.0): - Absorbed NDA 9 RED flags from dropped jurisdiction-nda-triage - Added playbook loading logic from dropped jurisdiction-contract-review - Added research routing table (replaces former /legal-brief command) - Routes contract-review/nda-triage to Anthropic commands (not dupes) - Restored skills/contract-intake-agent/ with enhanced SKILL.md (v2.0): - Added trigger conditions from workflow recipe - Added escalation/review checkpoints table - Routes to Anthropic /review-contract and /triage-nda - Restored evals/, hooks/, scripts/ from main - Updated hooks.json SessionStart prompt to v3.0.0 - Updated routing-golden.json with expected_route field (anthropic/skill/agent) - Updated run-evals.py to validate route type coverage - Updated CLAUDE.md and README.md for agents+skills architecture - Jurisdiction overlays back in skills/legal-global-router/references/ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Products (ip-protection, regulatory-monitoring, dsar-privacy, legal-spend, compliance-calendar) are now reference files in skills/legal-global-router/products/ loaded on demand by the router — not standalone invocable skills - Router is a skill (not an agent) — needs main conversation context, not isolated context window - contract-intake remains as the sole agent (genuine orchestrator) - contract-intake-agent skill content merged into agent system prompt - 1 agent + 1 skill + 5 product refs + 6 jurisdiction overlays + CI infra Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…s them - Products restored as standalone skills/<name>/SKILL.md with user-invocable: false - Router skill references product skills in routing table (not file loads) - Each product is a proven unique capability worthy of standalone skill status - Final: 1 agent + 6 skills (1 router + 5 products) + 6 jurisdiction overlays + CI Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Skill was absorbed into agent; eval references must match. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Radical redesign of legal-ops plugin based on official Claude Code plugin/subagent docs.
contract-intake.md) — flat .md with YAML frontmatter, genuine orchestratorlegal-global-router— routing + NDA RED flags + playbook loading + jurisdiction overlayscompliance-calendar,dsar-privacy,ip-protection,legal-spend,regulatory-monitoring— eachuser-invocable: false.mdper official docsuser-invocable: false— router auto-activates themWhat changed from PR #7 (v2.0.0)
Test plan
uv run evals/run-evals.py🤖 Generated with Claude Code