jonashertner/opencaselaw/research

Claude Code and agent skill by jonashertner/opencaselaw

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Research a Swiss legal question with the ocl CLI (search, read, follow citations, cite, verify) and hand back an answer whose every citation and quotation was checked against the OpenCaseLaw corpus.

Install

npx vskill@latest install jonashertner/opencaselaw/research

SKILL.md

Legal research with ocl

Use when asked a question of Swiss law that needs authorities: what the Federal Supreme Court or a cantonal court held, which statute article applies, what the practice is. Install: pipx install opencaselaw-cli (or uv tool install opencaselaw-cli). Every command prints JSON when piped; --fields keeps the keys you need; exit code 4 means something did not resolve, 3 means the service or network failed.

Steps

  1. Frame the question as search terms in the language of the likely

decisions (German for most BGE, French for Romandie courts). Search: ocl decisions search '<terms>' --max-results 20 --format jsonl --fields decision_id,citation_string_de,decision_date,court (add --court bge, --language fr, --date-from as needed). A text search is one ranked window; total is a candidate pool, not a count.

  1. Read before citing. For each candidate worth it:

ocl tool call get_regeste decision_id=<id> (BGE headnote) and ocl decisions passage <id> <number> for the considerations. Never summarise a decision from its title.

  1. Follow the law: ocl tool call find_leading_cases query='<terms>',

ocl citations list <id> --direction incoming --limit 20 (who cites it later), ocl tool call find_relevant_erwaegung decision_id=<id> query='<terms>'. Statutes: ocl laws get OR --article 336 (--as-of YYYY-MM-DD for the text in force at a date; a text_status other than ok means no text was recovered). Practice and scholarship: ocl tool call search_practice, ocl tool call search_scholarship, ocl tool call search_commentaries.

  1. Cite only through the service: ocl cite <reference> --pinpoint <n>

gives the string to copy verbatim (citation_string); an inline pinpoint in the reference is verified. Quote only what passage served, and keep the served wording.

  1. Before answering, run the citation check on your own draft

(ocl citations resolve --input refs.jsonl --format jsonl) and the quotation check (ocl quotes check --input quotes.jsonl --format jsonl). Fix or drop anything that is not resolved / exact; report what you dropped.

  1. Say what the tool established (existence, identity, wording) and what it

did not (legal support, whether a decision is still good law). Keep the evidence: ocl bundle create '<terms>' --max-results 10 --passage <n> --out evidence.

Rules

  • Citation strings and passage text come from the service unchanged; never

compose a citation or edit a quotation.

  • Never present a close_match or a service_candidate as the cited case.
  • ocl tool list shows every server tool; ocl tool schema <name> its

arguments. ocl doctor checks the connection first when things fail.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
72
Repository forks
18
7-day trend score
26

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jonashertner/opencaselaw/research/badge)](https://verified-skill.com/skills/jonashertner/opencaselaw/research)

Something wrong with this skill or its page? Tell us.