CSlawyer1985/legal-skillhub / skills/authority-verification
authority-verification
VerifiedVerifies 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.
| File | Kind | Size |
|---|---|---|
| LICENSE.txt | markdown | 10.5 KB |
| SKILL.md | skill md | 3.8 KB |
| references/CASEDEV-WORKFLOW.md | markdown | 3.1 KB |
| references/EVALS.md | markdown | 1.0 KB |
| references/EXAMPLES.md | markdown | 1.7 KB |
| references/OUTPUT-TEMPLATE.md | markdown | 696 B |
| references/RUNTIME.md | markdown | 1.2 KB |
| scripts/verify_authority.py | script | 3.5 KB |
| scripts/verify_authority.sh | script | 1.3 KB |
| scripts/verify_authority.ts | script | 3.1 KB |
scripts/verify_authority.sh
View on GitHub#!/usr/bin/env bash
set -euo pipefail
if [[ $# -lt 1 ]]; then
echo "usage: $0 '531 U.S. 98' [highlight query]" >&2
exit 1
fi
if [[ -z "${CASEDEV_API_KEY:-}" ]]; then
echo "CASEDEV_API_KEY is required" >&2
exit 1
fi
if ! command -v casedev >/dev/null 2>&1; then
echo "casedev CLI is required; install with 'brew tap CaseMark/casedev && brew install casedev'" >&2
exit 1
fi
CITATION="$1"
HIGHLIGHT_QUERY="${2:-holding}"
VERIFY_JSON="$(mktemp)"
cleanup() {
rm -f "$VERIFY_JSON"
}
trap cleanup EXIT
echo "== verify =="
casedev legal:v1 verify --text "$CITATION" --json | tee "$VERIFY_JSON"
if ! command -v jq >/dev/null 2>&1; then
echo "jq is required for the follow-on CLI steps; install with 'brew install jq'" >&2
exit 1
fi
VERIFIED_URL="$(jq -r '.citations[] | select(.status == "verified") | .case.url' "$VERIFY_JSON" | head -n 1)"
if [[ -z "$VERIFIED_URL" ]]; then
echo "No verified authority URL returned; stop and review the verification output." >&2
exit 1
fi
echo
echo "== if verified, retrieve full text =="
casedev legal:v1 get-full-text \
--url "$VERIFIED_URL" \
--highlight-query "$HIGHLIGHT_QUERY" \
--max-characters 12000 \
--json
echo
echo "== find related authorities =="
casedev legal:v1 similar \
--url "$VERIFIED_URL" \
--num-results 5 \
--json
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 115k | Updated | Claude CodeCodex | Verified | Install |
| add-runner-evalpaperclipai/paperclipAdd or extend a Paperclip Runner protocol evaluation definition, roster, assertion, or report fixture with provenance and narrow validation. | Stars: 115k | Updated | Claude CodeCodex | Verified | Install |
| 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: 115k | Updated | Claude CodeCodex | Verified | Install |
| 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: 115k | Updated | Claude CodeCodex | Verified | Install |