MyClaw
HomeProductsUse CasesPricingSkillsResourcesCompany
HomeUse CasesPricingSkills
Sign In
Home
ProductsOpenClaw HostingHermes Agent Hosting
Use CasesPricingSkills
ResourcesCompareTutorialLearnBlogUpdatesResourcesCommunity
CompanyAboutSupport
Sign In
MyClaw.ai

Your AI agent, already running.

Product

OpenClaw HostingHermes Agent HostingUse CasesPricingCompareAlibaba Cloud

Resources

BlogUpdatesSkillsModelsSupportCommunityCapybara

Legal

TermsPrivacyCookieGDPRContact

© 2023 Cubo World Inc. All rights reserved.

← Back to Skills
PDF & Documents
📃

Legal Red Team

Adversarial verification framework for AI-generated legal content: fact-checking, citation validation, hallucination detection, and distribution readiness scoring.

by borgheiv1.0.0
AI PoweredAutomationDeveloper Tool
Connecting to VM...
Connecting to VM...
npx clawhub@latest install legal-red-team
104Stars
6Current Installs
📦
v1.0.0Version
📅
Apr 10, 2026Updated
View Source(ClawHub)

Legal Red Team Skill Overview

Legal Red Team is a production-ready adversarial verification framework for AI-generated legal documents. It systematically checks factual accuracy, validates legal citations against official sources, detects known hallucination patterns, verifies arithmetic, and scores documents for distribution readiness — all across a structured six-category methodology. This skill does not constitute legal advice and is intended to supplement, not replace, qualified professional legal review.

How to Use It

Step 1: Run in your terminal or install this skill on MyClaw

npx clawhub@latest install legal-red-team
or

Click the Install button at the top of this page for one-click setup

When to Use Legal Red Team

Best Fit

  • You've used an LLM to draft a legal memo, contract summary, compliance guide, or regulatory overview and need to verify it before sharing.
  • You want to catch plausible-but-wrong article numbers, fabricated deadlines, or confident-but-unsourced claims before distribution.
  • You need a structured go/no-go quality gate (4/5 minimum score, zero CRITICAL issues) for AI-generated legal content.
  • You're running a citation audit to confirm every statutory reference actually exists and matches the cited provision.

When Not to Use

  • You need to verify legal conclusions, litigation strategy, or professional legal interpretations — this skill checks factual and citation accuracy, not legal reasoning.
  • You require access to paid legal databases (Westlaw, LexisNexis) — source verification relies on freely accessible official sources.
  • You are looking for a substitute for qualified legal counsel on high-stakes matters; this skill is a supplement, not a replacement.

Key Features

Six-Category Verification Framework

Every document is assessed across six structured categories: factual accuracy, legal authority citations, arithmetic validation, source verification, speculation detection, and disclaimer adequacy. Each category has defined red flags and checks, ensuring no common failure mode is missed.

Known Hallucination Pattern Detection

The skill targets five recurring AI hallucination patterns in legal content: plausible-but-wrong article numbers, confidently incorrect dates, guidance mischaracterized as binding law, outdated legal references, and arithmetic errors in timeline calculations. Each pattern has a defined detection technique.

Severity Taxonomy (CRITICAL → LOW)

Findings are classified into four severity levels — CRITICAL, HIGH, MODERATE, and LOW — with clear definitions, examples, and required actions at each level. CRITICAL issues must be resolved before any distribution.

Quality Score (1–5) with Distribution Gate

The legal_quality_scorer.py tool produces a composite 1–5 score with per-category breakdown. Documents scoring below 4/5 must not be distributed; the pre-distribution gate workflow enforces zero CRITICAL issues and complete disclaimers.

Automated CLI Tools

Two Python scripts — legal_fact_checker.py and legal_quality_scorer.py — support text or file input, JSON output, verbose mode, and saved reports. They serve as first-pass scanning tools, designed to feed into manual adversarial review.

Structured Workflows for Common Scenarios

Three ready-to-run workflows cover full adversarial review, quick citation checks, and pre-distribution gating. Each workflow includes a validation step to confirm completion criteria have been met.

Use Cases

Pre-distribution review of an AI-drafted compliance guide

Run legal_fact_checker.py to flag all citations and dates, verify each against EUR-Lex or eCFR, then run legal_quality_scorer.py to confirm a 4/5 or higher score and zero CRITICAL findings before sending to clients or staff.

Citation audit for an AI-generated regulatory summary

Use Workflow 2 (Quick Citation Check) to extract every legal citation from the document and verify each against the relevant official source — catching invented article numbers or misquoted provisions before they reach a legal team.

Quality gate in an AI legal document pipeline

Integrate legal_quality_scorer.py as an automated gate in a document generation pipeline. Any document scoring below 4/5 is held for human review; only documents meeting the threshold and disclaimer requirements are passed downstream.

Adversarial review of a contract analysis memo

Apply the six-step methodology with an adversarial mindset: mark every factual assertion and number, verify dates against statutory text, flag speculation presented as certainty, and produce a severity-classified findings report for the drafting team.

Connecting to VM...
npx clawhub@latest install legal-red-team
104Stars
6Current Installs
📦
v1.0.0Version
📅
Apr 10, 2026Updated
View Source(ClawHub)

FAQ

Reviews

0 reviews

Log in to write a review

No reviews yet. Be the first to share your experience!