Skip to content

fix: deduplicate legal-ops plugin — remove Anthropic-colliding surfaces#7

Closed
mjunaidca wants to merge 2 commits into
mainfrom
fix/legal-ops-dedup-v2
Closed

fix: deduplicate legal-ops plugin — remove Anthropic-colliding surfaces#7
mjunaidca wants to merge 2 commits into
mainfrom
fix/legal-ops-dedup-v2

Conversation

@mjunaidca

@mjunaidca mjunaidca commented Mar 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Remove 2 duplicate skills (jurisdiction-contract-review, jurisdiction-nda-triage) that were weaker copies of Anthropic's Layer 1 review-contract and triage-nda
  • Remove 3 colliding commands (/review-contract, /triage-nda, /vendor-check) that shadowed Anthropic's namespace
  • Add 2 new Layer 2 wrapper commands: /contract-intake (orchestrated intake + jurisdiction routing) and /compliance-calendar (obligation tracking + deadline management)
  • Remove all plugin-commands from SKILL.md files — command ownership lives exclusively in commands/
  • Split evals into Panaversity-local (8 routing + 2 product) and integration (4 routing + 3 product) buckets
  • Align all 7 SKILL.md frontmatter with agentskills.io spec (non-standard fields → metadata)
  • Update router, hooks, CLAUDE.md, plugin.json (→ v2.0.0), README, exercises, workflow recipes

Design Principle

Anthropic owns base primitives (/review-contract, /triage-nda, /vendor-check, /brief). Panaversity owns higher-level wrappers that add jurisdiction routing, orchestration, and unique domain skills — with clearly different names.

Pre-Merge Smoke Tests (see TESTING.md)

  • Test 1: /review-contract with English law → UCTA overlay fires
  • Test 2: /contract-intake wrapper → hands off to Anthropic + preserves overlay
  • Test 3: /compliance-calendar standalone → RED/YELLOW/GREEN dashboard
  • Test 4: /legal-brief domain routing → routes to ip-protection skill

Files Changed

Deleted (5): 2 duplicate skills, 3 colliding commands
Created (4): 2 wrapper commands, 2 integration eval golden files, TESTING.md
Edited (23): router, 6 SKILL.md files (spec compliance + plugin-commands removal), hooks, CLAUDE.md, plugin.json, README, 5 exercises, 2 workflow recipes, 3 eval files

Companion PR

Book repo (Ch 22 alignment): https://github.com/panaversity/agentfactory/pull/855

🤖 Generated with Claude Code

mjunaidca and others added 2 commits March 14, 2026 17:06
… and commands

Remove duplicate skills (jurisdiction-contract-review, jurisdiction-nda-triage) that
were weaker copies of Anthropic's Layer 1 review-contract and triage-nda. Remove
colliding commands (/review-contract, /triage-nda, /vendor-check) that shadowed
Anthropic's namespace.

Add two new Layer 2 wrapper commands:
- /contract-intake: orchestrated intake with jurisdiction routing + SLA tracking
- /compliance-calendar: obligation tracking, renewal calendar, deadline management

Additional changes:
- Remove all plugin-commands from SKILL.md files (commands/ is sole owner)
- Update router to hand off contract review/NDA triage to Anthropic Layer 1
- Split evals into Panaversity-local and integration (Anthropic handoff) buckets
- Soften /brief vs /legal-brief from "zero overlap" to "different entrypoints"
- Align all SKILL.md frontmatter with agentskills.io spec (non-standard fields → metadata)
- Update hooks.json, CLAUDE.md, plugin.json (→ v2.0.0), README, exercises, workflow recipes
- Add TESTING.md with pre-merge smoke test protocol

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The inline validation steps had hardcoded thresholds (5+ product cases)
that didn't match the new split: 2 Panaversity-local + 3 integration.
Replace redundant inline checks with single `uv run evals/run-evals.py`
which validates all 4 golden files with correct ownership enforcement.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mjunaidca

Copy link
Copy Markdown
Collaborator Author

Superseded by #8 (v3.0.0 redesign — 1 agent + 6 skills, correct agent format per official docs, CI infra kept).

@mjunaidca mjunaidca closed this Mar 14, 2026
@mjunaidca mjunaidca deleted the fix/legal-ops-dedup-v2 branch March 14, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant