Skip to content

CSlawyer1985/legal-skillhub / skills/authority-verification

authority-verification

Verified

Verifies legal citations and retrieves source material using the case.dev Legal Research API and CLI. Use when validating a citation, confirming a case exists, pulling source text, finding related authorities, extracting citations from a brief or opinion, or building a filing-ready authority check without branded citator terminology.

references/EXAMPLES.md

View on GitHub
# Examples

## Table of Contents

- [Verified citation check](#verified-citation-check)
- [Unverified citation handling](#unverified-citation-handling)
- [Document audit workflow](#document-audit-workflow)

## Verified Citation Check

Goal: verify a citation, pull source text, and expand to related authorities.

CLI:

```bash
bash scripts/verify_authority.sh "531 U.S. 98" "equal protection"
```

Python:

```bash
python3 scripts/verify_authority.py --citation "531 U.S. 98" --highlight-query "equal protection"
```

TypeScript:

```bash
npx tsx scripts/verify_authority.ts --citation "531 U.S. 98" --highlight-query "equal protection"
```

Expected result shape:

```json
{
  "citation": "531 U.S. 98",
  "summary": {
    "verified": 1
  },
  "results": [
    {
      "status": "verified",
      "case": {
        "name": "Bush v. Gore"
      },
      "highlights": [],
      "relatedAuthorities": []
    }
  ]
}
```

## Unverified Citation Handling

Goal: catch a likely hallucinated or malformed citation and stop before citing it.

CLI:

```bash
casedev legal:v1 verify --text "Smith v. Jones, 542 U.S. 123" --json
```

Expected behavior:

- If `not_found > 0`, do not cite the case.
- Search by issue instead:

```bash
casedev legal:v1 find --query "topic from the bad citation" --num-results 5 --json
```

## Document Audit Workflow

Goal: extract authorities from a document URL, then verify key citations individually.

Extract:

```bash
casedev legal:v1 citations-from-url \
  --url "https://www.courtlistener.com/opinion/118365/bush-v-gore/" \
  --json
```

Then verify a citation from the extracted list:

```bash
casedev legal:v1 verify --text "531 U.S. 98" --json
```

Use this when reviewing a brief, article, or opinion for citation hygiene.
add-product-e2e-evalpaperclipai/paperclipAdd or extend a Paperclip full-stack runner E2E workflow, fixture, matcher, or report evidence path for local or Daytona execution.Stars: 115kUpdated Claude CodeCodexVerifiedInstall
add-runner-evalpaperclipai/paperclipAdd or extend a Paperclip Runner protocol evaluation definition, roster, assertion, or report fixture with provenance and narrow validation.Stars: 115kUpdated Claude CodeCodexVerifiedInstall
diagnose-why-work-stoppedpaperclipai/paperclipCompatibility entry point for failed, stalled, looping, or over-recovered Paperclip work. Use fix-failed-paperclip-run for the full diagnosis, regression, repair, real verification, and green-PR workflow; honor an explicitly requested diagnosis-only scope.Stars: 115kUpdated Claude CodeCodexVerifiedInstall
fix-failed-paperclip-runpaperclipai/paperclipDiagnose and fix failed, stuck, slow, or incorrectly blocked Paperclip tasks and runs. Use with a task/run URL or failure report to trace the root cause, prove a regression red then green, check second-order effects, verify the real workflow, and deliver a PR with passing checks.Stars: 115kUpdated Claude CodeCodexVerifiedInstall