legal_search

Retrieve jurisdiction-filtered case law and judicial opinions from CourtListener.

1|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/hellonish/singularity --skill legal-search
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: legal_search
Source: https://github.com/hellonish/singularity/tree/main/SKILLS/tier1_retrieval/legal_search
Command: npx skills add https://github.com/hellonish/singularity --skill legal-search

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The legal_search skill retrieves authoritative primary legal sources, specifically case law and judicial opinions, from the CourtListener database, translating a user’s research question into a targeted search and returning a concise, citable results set.

Core Features & Use Cases

  • Authoritative retrieval of primary legal sources with jurisdiction-aware filtering.
  • Structured output including citation, court, date, and jurisdiction for downstream use.
  • Upstream integration expects a well-formed search string and optional acceptance axes to constrain results.

Quick Start

Provide a jurisdiction-specific search query to CourtListener and retrieve the top 3-7 precedents with metadata.

Frequently Asked Questions about legal_search

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search for jurisdiction-specific case law precedents?

To search for jurisdiction-specific case law precedents, provide a research question and optional acceptance axes to filter results by jurisdiction relevance, returning structured citations with court and date metadata.

What legal sources can I retrieve from CourtListener for judicial opinions?

You can retrieve authoritative primary legal sources from CourtListener, specifically case law and judicial opinions, formatted as a structured output containing citation, court, date, and jurisdiction metadata.

Can I filter legal research results by jurisdiction relevance?

Yes, you can filter legal research results by passing optional acceptance axes, including jurisdiction_relevance, to constrain the retrieval output to specific jurisdictions and rank precedents by relevance.

How do I retrieve primary legal sources for regulatory analysis?

To retrieve primary legal sources for regulatory analysis, input a well-formed search string related to your policy exploration query to receive a concise, citable set of 3-7 precedents with jurisdiction metadata.

Does legal search work without specifying a jurisdiction filter?

Yes, legal search works by consuming an upstream search string, but providing jurisdiction filters through acceptance axes is recommended for accurate, jurisdiction-aware precedent retrieval.

What is the best way to get relevance-ranked precedents for legal research?

The best way to get relevance-ranked precedents is to submit a targeted search query with acceptance axes, which returns a structured RetrievalOutput containing relevance-ranked case law with citation and jurisdiction metadata.