Red team verifier patrick munro

From lawve-ai/awesome-legal-skills · View interactive version

Red team verifier patrick munro is an AI agent skill from the GitHub repository lawve-ai/awesome-legal-skills. Adversarial verification of AI-generated legal content with systematic fact-checking, source validation, and quality control. Use when a user asks to verify, fact-check, red-team, validate sources, or quality-control a legal document, briefing, compliance summary, or regulatory analysis before it is

How to use this skill

Skill file

Red Team Verifier

Purpose

This skill provides systematic adversarial verification of AI-generated legal content to establish factual accuracy, proper legal citation, and appropriate disclaimers before the content is distributed to clients or stakeholders. It addresses the core concern about AI in legal practice: how do I know this is accurate?

The output is a structured verification report, not a reassurance. Where a claim cannot be confirmed against an official source, the skill reports it as unsupported rather than as true.

When to use

Trigger phrases: verify, fact-check, red team, red-flag, check accuracy, validate sources, quality control, is this correct, review for errors.

Verification stance

Every factual claim, citation, date, and number in the input document is treated as unverified until an official source confirms it. Independent verification is the product of this skill, not a safeguard layered on top of it. A claim that cannot be matched to a primary or official source is reported as unsupported rather than as true. This stance applies uniformly across legal citations, numerical data, timelines, attributions, and interpretations; each requires its own verification step.

This is an adversarial stance by design. The goal is not to confirm what the input document says, but to independently test it. The verifier actively searches for contradictory evidence, questions every number, demands sources, tests logical consistency, and challenges interpretations against authoritative sources.

Core verification categories

1. Factual accuracy

2. Legal authority citations

3. Arithmetic validation

4. Source verification

5. Speculation detection

6. Disclaimer adequacy

Verification methodology

Execute the following steps in order. Each step produces evidence that feeds the final report.

Step 1: Initial content review

Read the entire document to understand scope and claims. List all factual claims, legal citations, numerical data, and authoritative statements. Note missing sources, vague language, and unsupported assertions.

Step 2: Source verification

For every factual claim, legal citation, and statistical assertion, run a web search against official sources in this priority order:

  1. Primary legal databases (EUR-Lex for EU law; national equivalents for domestic law)
  2. Official government websites (.gov, .gov.uk, .bund.de, .europa.eu, etc.)
  3. Regulatory authority publications (supervisory authorities, standards bodies)
  4. Official gazettes and consolidated text repositories

Cross-reference critical claims across multiple sources. Record the source URL for each verified fact.

Step 3: Arithmetic verification

Independently calculate all timelines, deadlines, and dates. Recompute all percentages, ratios, and financial figures. Check internal consistency between stated counts and enumerated items.

Step 4: Citation validation

Confirm that cited article and section numbers exist in the referenced regulation. Check that citations match the current consolidated version. Verify citation format against jurisdiction standards. Confirm quoted text matches the source exactly.

Step 5: Speculation identification

Flag predictive statements, editorial opinions presented as facts, and areas of legal uncertainty. Confirm speculative content is clearly labeled in the source document.

Step 6: Disclaimer review

Verify presence of legal advice disclaimer, jurisdiction statement, regulation date or version, and recommendation for professional consultation.

Source hierarchy

Apply this hierarchy when evaluating source quality:

  1. Primary legal sources: official legislation (EUR-Lex, national official gazettes)
  2. Official guidance: regulatory authority publications (supervisory authorities, European Commission, national data protection authorities, financial regulators, cybersecurity agencies, standards bodies)
  3. Secondary legal sources: court decisions, published legal commentary, peer-reviewed academic analysis
  4. Tertiary sources: news articles and blog posts. Use only when primary or official guidance sources are unavailable, and label the lower source quality explicitly in the report.

Transparency requirements

Output structure

Produce the verification report in this format:

# LEGAL RED TEAM VERIFICATION REPORT

## Document Analyzed
[Title/description of content verified]

## Overall Assessment
Quality Score: [1-5 scale, 5 = distribution-ready]
Distribution Readiness: [READY / NEEDS REVISION / MAJOR CORRECTIONS REQUIRED]
Critical Issues Found: [Number]
Verification Completed: [Date/time]

---

## Verified Facts
[List all factual claims successfully verified with sources]
- Claim: [statement]
  Source: [official source URL]
  Status: Verified

---

## Errors Requiring Correction

### Critical (immediate correction required)
- Error: [Description of factual error, legal misstatement, or arithmetic mistake]
  Location: [Where in document]
  Correction: [What it should say]
  Source: [Correct source URL]

### High (correction strongly recommended)
- Issue: [Missing critical disclaimer, regulatory uncertainty not disclosed]
  Impact: [Why this matters]
  Recommendation: [Suggested addition or revision]

### Moderate (should be addressed)
- Issue: [Unsourced statistics, editorial framing as fact]
  Impact: [Credibility or accuracy concern]
  Recommendation: [How to improve]

### Low (minor improvements)
- Issue: [Minor inconsistencies, stylistic issues]
  Recommendation: [Optional enhancement]

---

## Unsupported Claims
[Claims requiring verification or removal]
- Claim: [Statement made without source]
  Status: Could not verify through official sources
  Action Required: Provide source or remove claim

---

## Missing Disclaimers
[Recommended disclaimer additions]
- Location: [Where to add]
  Type: [Legal advice / Jurisdiction / Date-version / Professional consultation]
  Suggested Language: [Specific disclaimer text]

---

## Detailed Findings

### Factual Accuracy
[Detailed analysis of factual claims]

### Legal Citations
[Analysis of legal authority citations]

### Arithmetic Validation
[Analysis of numerical accuracy]

### Source Quality
[Assessment of sources used]

### Speculation and Opinion
[Analysis of speculative versus factual content]

### Disclaimer Adequacy
[Assessment of disclaimers and qualifications]

---

## Verification Statistics
- Total claims verified: [N]
- Official sources consulted: [N]
- Errors found: [N]
- Unsupported claims: [N]
- Missing disclaimers: [N]

---

## Distribution Recommendation

- READY: Document meets quality standards for distribution
- NEEDS REVISION: Address High and Critical issues before distribution
- MAJOR CORRECTIONS REQUIRED: Extensive revision needed; consult original sources

Severity taxonomy

Critical

Action: correct before distribution.

High

Action: correct before distribution.

Moderate

Action: address to improve quality and credibility.

Low

Action: optional improvement.

Quality scoring

5/5 Distribution Ready

All factual claims verified with official sources. All legal citations confirmed accurate. All arithmetic independently validated. Appropriate disclaimers present. No Critical or High issues. Professional quality suitable for client or stakeholder distribution.

4/5 Minor Revisions

Factual claims verified but some Moderate issues found. May have unsourced statistics that should be added. Disclaimers adequate but could be enhanced. No Critical issues, only Moderate or Low severity.

3/5 Needs Revision

Some factual errors or unsupported claims found. Missing important disclaimers. High-severity issues present. Requires revision before distribution.

2/5 Major Corrections Required

Multiple factual errors identified. Significant legal citation problems. Critical issues present. Extensive revision needed.

1/5 Not Distribution Ready

Fundamental errors in core legal statements. Pervasive unsupported claims. Multiple Critical issues. Requires complete rework.

Jurisdiction adaptation

The verifier is jurisdiction-agnostic. Adapt the source hierarchy and citation format to the relevant jurisdiction.

EU and national EU Member State law

Common law jurisdictions (UK, Ireland, US, Canada, Australia, etc.)

Other civil law jurisdictions

Known AI hallucination patterns

Pattern 1: Plausible but wrong article numbers

Problem: AI generates realistic-sounding article citations that do not exist.

Example: "AI Act Article 42(5)" when AI Act Article 42 only has paragraphs (1) to (4).

Verification: check official source for exact article structure.

Pattern 2: Confident but incorrect dates

Problem: AI states dates with confidence but gets them wrong.

Example: "NIS2 applies from October 2024" when the actual Member State transposition deadline was 17 October 2024 and national implementation dates vary.

Verification: independently verify all dates against official sources; distinguish between directive deadlines and national implementation dates.

Pattern 3: Mixing guidance and legal requirements

Problem: AI presents regulatory guidance as legal obligation.

Example: Treating a standards body recommendation as a binding regulatory requirement.

Verification: distinguish between binding legal text and non-binding guidance.

Pattern 4: Outdated legal references

Problem: AI cites superseded or amended provisions.

Example: Citing original text when the provision has been amended or authoritatively interpreted.

Verification: check for amendments, implementing acts, and authoritative interpretations.

Pattern 5: Arithmetic errors in timeline calculation

Problem: AI makes mistakes calculating deadlines from effective dates.

Example: Claiming "18 months from October 2024 is March 2026" when the correct result is April 2026.

Verification: independently calculate all timelines.

Pattern 6: Paraphrase presented as quote

Problem: AI reproduces a close paraphrase of regulatory text but wraps it in quotation marks, suggesting verbatim citation.

Example: Quoting "AI systems must be transparent" when the regulation says "AI systems shall be designed and developed in such a way as to ensure that their operation is sufficiently transparent".

Verification: match quoted text character-by-character against the official source.

Use case examples

Example 1: In-house legal briefing

Input: AI-generated compliance briefing on NIS2 implementation timeline for entities operating in a specific Member State.

Verification focus:

Output: Corrected briefing with verified sources, ready for stakeholder distribution.

Example 2: Law firm client snapshot

Input: AI-drafted legal snapshot on Data Act Article 5 data portability requirements.

Verification focus:

Output: Client-ready snapshot with verified sources and appropriate legal disclaimers.

Example 3: Regulatory update for stakeholders

Input: AI-generated summary of recent regulatory guidance publication.

Verification focus:

Output: Verified update with clear source attribution and regulatory status.

Continuous improvement

As this skill is used, document new hallucination patterns encountered, refine the verification methodology based on findings, build a library of reliable sources for different legal areas, and track error types to identify systematic AI weaknesses.


Process summary

This skill exists to verify, not to confirm. Every claim in the input document is treated as unverified until an official source backs it. Verified claims are reported with their source URL. Unverified claims are listed as unsupported. The final report categorizes issues by severity and gives an explicit distribution-readiness recommendation. When in doubt, the verifier errs toward flagging rather than passing.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.