Get the FREE Ultimate OpenClaw Setup Guide →

search

Scanned
npx machina-cli add skill CaseMark/legal-plugin/search --openclaw
Files (1)
SKILL.md
4.5 KB

case.dev Search

Unified search across web, legal databases, case law, patents, vault contents, and the case.dev skills knowledge base.

Requires the casedev CLI. See setup skill for installation and auth.

Web Search

casedev search web "employment discrimination California" --json
casedev search web "SEC enforcement actions 2024" --limit 20 --json

Flags:

  • --limit / -l — max results (default: 10)
  • --news — news articles instead of general web
  • --type — explicit type: search or news
  • --include-domain — restrict to domain(s), repeatable
  • --exclude-domain — exclude domain(s), repeatable

Web Fetch

Fetch and extract content from URLs:

casedev search webfetch "https://example.com/ruling.html" --json

Flags:

  • --livecrawl — force live crawl instead of cache
  • --subpages — also crawl linked subpages
  • --subpage-target N — max subpages (default: 5)
  • --max-chars N — truncate content
  • --timeout N — livecrawl timeout in seconds (default: 30)
  • --context — contextual hint for extraction
  • --no-summary — skip summary generation
  • --no-highlights — skip highlights extraction
  • --strict — fail if any URL cannot be fetched
  • --fallback — if fetch fails, fall back to web search

Multiple URLs: casedev search webfetch URL1 URL2 --json

Legal Search

Find legal authorities by topic:

casedev search legal "breach of fiduciary duty" --json
casedev search legal "ERISA preemption" --jurisdiction "federal" --json

Flags:

  • --jurisdiction — filter by jurisdiction
  • --limit / -l — max results (default: 10)
  • --deep — uses the research endpoint with multi-query analysis
  • --alt-query — additional search queries for deep mode, repeatable

Deep mode example:

casedev search legal "force majeure pandemic" --deep \
  --alt-query "impossibility of performance COVID" \
  --alt-query "frustration of purpose" --json

Case Search

Two modes — query-based and similarity-based:

By query

casedev search cases "wrongful termination retaliation" --json
casedev search cases "patent infringement software" --jurisdiction "federal" --json

By similarity (find cases similar to a known case)

casedev search cases --url "https://casetext.com/case/example-v-example" --json
casedev search cases --url "https://example.com/case" --after "2020-01-01" --json

Flags:

  • --jurisdiction — filter by jurisdiction
  • --limit / -l — max results (default: 10)
  • --url — source case URL for similarity search
  • --after — only cases published after this date (ISO format, similarity mode)

Patent Search

casedev search patent "machine learning natural language processing" --json

Flags:

  • --assignee — filter by patent assignee
  • --inventor — filter by inventor name
  • --status — application status filter
  • --type — application type filter
  • --filing-from — filing date range start
  • --filing-to — filing date range end
  • --offset — pagination offset (default: 0)
  • --limit / -l — max results (default: 25)

Vault Semantic Search

Search within vault documents (also available via vaults skill):

casedev search vault "indemnification clause" --vault VAULT_ID --json

See vaults skill for full vault search documentation.

Skills Knowledge Base

Search and read from the case.dev legal skills knowledge base:

# Search skills
casedev skills search "contract review" --json
casedev search skills "deposition preparation" --json

# Read a specific skill
casedev skills read SKILL_SLUG --json
casedev skills read SKILL_SLUG --content-only

Skills search flags: --limit / -l (1-20, default: 10), --show-summary.

Skills read flags: --no-references, --content-only.

Troubleshooting

"Missing query": Provide the search query as a positional argument or with --query "...".

"Missing vault ID" for vault search: Use --vault VAULT_ID or set focus.

Web fetch unavailable: Use --fallback to fall back to web search, or use casedev search web directly.

No legal results: Try broader terms, remove jurisdiction filter, or use --deep mode with --alt-query variations.

Source

git clone https://github.com/CaseMark/legal-plugin/blob/main/search/SKILL.mdView on GitHub

Overview

case.dev Search unifies web, legal databases, case law, patents, vault contents, and the case.dev skills knowledge base behind a single CLI. It enables researchers and lawyers to locate authorities, cases, patents, and knowledge content efficiently from a centralized tool.

How This Skill Works

Run casedev search with source-specific subcommands (web, webfetch, legal, cases, patent, vault, skills). The tool offers flags like --limit, --jurisdiction, --deep, and --alt-query to tailor results; webfetch supports live crawling and subpage extraction. This layered approach lets you pull web content, legal authorities, case texts, patent data, vault documents, and knowledge-base articles in one workflow.

When to Use It

  • Research a legal topic or topic area (e.g., breach of fiduciary duty, ERISA preemption) using Legal Search with optional jurisdiction and deep analysis.
  • Find cases similar to a known ruling or perform a cases-based search (by query or by similarity to a URL).
  • Perform patent landscape or inventor/status queries to filter results by assignee, inventor, status, and filing dates.
  • Fetch content from a URL to extract ruling text, summaries, or highlights, with live crawl options when freshness matters.
  • Explore the case.dev Skills Knowledge Base or vault documents to locate related skills, tutorials, or stored research.

Quick Start

  1. Step 1: Ensure the casedev CLI is installed and authenticated (see setup skill).
  2. Step 2: Run a quick search, e.g., casedev search legal "breach of fiduciary duty" --json.
  3. Step 3: Refine results with --jurisdiction, --limit, or switch to webfetch for content extraction (e.g., casedev search webfetch URL --json).

Best Practices

  • Craft precise queries and include a known jurisdiction for legal searches to improve relevance.
  • Use --deep for complex legal topics to leverage multi-query analysis and richer results.
  • When fetching content, prefer webfetch with --livecrawl for fresh data and use --subpages for linked material.
  • Control results with --limit and specify --type (search or news) to narrow the results set.
  • Triangulate findings by running parallel searches across web, legal, cases, patent, vault, and skills sources.

Example Use Cases

  • casedev search web "employment discrimination California" --json
  • casedev search web "SEC enforcement actions 2024" --limit 20 --json
  • casedev search legal "breach of fiduciary duty" --json
  • casedev search cases "wrongful termination retaliation" --json
  • casedev search patent "machine learning natural language processing" --json

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers