legal-search
Search US and EU case law, court opinions, dockets, and regulations via CourtListener, Harvard Case Law, and EUR-Lex.
Skill by beita6969
Chalk Labs
Need help deploying legal-search?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/beita6969-legal-search
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: research, legal
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/legal-search
What's inside
- Skill name
legal-search- Description
- Search US and EU case law, court opinions, dockets, and regulations via CourtListener, Harvard Case Law, and EUR-Lex. Use when: (1) finding US court opinions by keyword or citation, (2) searching federal and state dockets, (3) querying EU legislation and case law, (4) looking up cases by date range or jurisdiction. NOT for: current legislation text (use congress.gov), legal advice (never provide), patent search (use USPTO APIs).
- License
- MIT
- Instructions
- 122 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (1)
- SKILL.md
SKILL.md (first lines)
# Legal Case Law and Regulation Search
Search US case law via CourtListener and Harvard Case Law Access Project, and EU
law via EUR-Lex. Covers court opinions, dockets, and legislative documents.
## CourtListener API (US Case Law)
Free, open API for US federal and state court opinions and dockets.
Base URL: `https://www.courtlistener.com/api/rest/v4/`
### Search Opinions
```bash
curl -s "https://www.courtlistener.com/api/rest/v4/search/?q=qualified+immunity&type=o&order_by=score+desc" \
| python3 -c "
import sys, json
data = json.load(sys.stdin)
for r in data.get('results', [])[:10]:
name = r.get('caseName', 'N/A')
court = r.get('court', 'N/A')
date = r.get('dateFiled', 'N/A')
cite = r.get('citation', [r.get('sibling_ids', 'N/A')])
print(f'[{date}] {name}')
print(f' Court: {court}')
print()
"
```
### Search Dockets
```bash
curl -s "https://www.courtlistener.com/api/rest/v4/search/?q=antitrust+merger&type=r&order_by=score+desc"
```
### Filter by Date Range
```bash
curl -s "https://www.courtlistener.com/api/rest/v4/search/?q=fourth+amendment+digital+privacy&type=o&filed_after=2020-01-01&filed_before=2024-12-31&order_by=dateFiled+desc"
```
### Filter by Court
```bash
# Supreme Court opinions
curl -s "https://www.courtlistener.com/api/rest/v4/search/?q=free+speech&type=o&court=scotus&order_by=dateFiled+desc"
# Specific circuit court
curl -s "https://www.courtlistener.com/api/rest/v4/search/?q=patent+eligibility&type=o&court=cafc&order_by=dateFiled+desc"
```
### Common Court Codes
`scotus` (SCOTUS), `ca1`-`ca11` (Circuit Courts), `cafc` (Federal Circuit),
`cadc` (DC Circuit), `nyd` (SDNY), `cand` (N.D. Cal).
## Harvard Case Law Access Project
Historical US case law (1658-2020). Free API with registration.
Base URL: `https://api.case.law/v1/`
### Search Cases
```bash
curl -s "https://api.case.law/v1/cases/?search=miranda+rights&decision_date_min=2000-01-01&page_size=10" \
| python3 -c "
import sys, json
data = json.load(sys.stdin)
for c in data.get('results', []):
name = c.get('name_abbreviation', 'N/A')
date = c.get('decision_date', 'N/A')
court = c.get('court', {}).get('name', 'N/A')
cite = c.get('citations', [{}])[0].get('cite', 'N/A') if c.get('citations') else 'N/A'
print(f'[{date}] {name}')
print(f' Citation: {cite} Court: {court}\n')
"
```
### Search by Citation
```bash
curl -s "https://api.case.law/v1/cases/?cite=410+U.S.+113"
```
### Filter by Jurisdiction
```bash
curl -s "https://api.case.law/v1/cases/?search=eminent+domain&jurisdiction=cal&decision_date_min=2010-01-01&page_size=10"
```
## EUR-Lex (EU Law)
Access EU legislation, case law, and treaties via the EUR-Lex SPARQL endpoint.
### Search EU Legislation via SPARQL
```bash
curl -s -G "https://eur-lex.europa.eu/EURLexWebService" \
--data-urlencode "query=SELECT ?doc ?title WHERE {
?doc a <http://publications.europa.eu/ontology/cdm#regulation> ;
<http://publications.europa.eu/ontology/cdm#resource_legal_title> ?title .
FILTER(CONTAINS(LCASE(?title), 'artificial intelligence'))
} LIMIT 10" \
--data-urlencode "format=application/sparql-results+json"
```
### Lookup by CELEX Number
```bash
curl -s "https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32016R0679" -o gdpr.html
```
## Best Practices
1. Use CourtListener for recent US case law; it has the most up-to-date coverage.
2. Use Harvard Case Law for historical cases and bulk data access.
3. CourtListener requires no API key for basic search; register for higher rate limits.
4. Always include date filters to narrow results for broad legal topics.
5. For citation lookups, normalize to standard reporter format (e.g., "410 U.S. 113").
6. EUR-Lex SPARQL queries can be complex; start with keyword REST search first.From beita6969/ScienceClaw, MIT.
Signals
- Stars
- 1,019
- Forks
- 109
- Open issues
- 1
- Last commit (this folder)
- Mar 12, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/beita6969/ScienceClaw
- Website
- scienceclaw.science
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get legal-search running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
legal-search skill. Agent Mart. https://agentmart.dev/skills/beita6969-legal-search (last updated 2026-10-24)