research

research is a skill for Claude Code, Codex from jonashertner/opencaselaw. It costs 43 tokens per session (743 once invoked), scanned A, original, MIT.

A command-line research tool for Swiss law that searches court decisions, reads passages, follows citations, and checks sources in the OpenCaseLaw collection.

In plain words
What is it for?
It helps find relevant Swiss court cases and statutes, inspect the underlying passages, trace related cases, and produce checked citations.
Why use it?
It reduces the risk of relying on a decision title or an unchecked quotation when answering a legal question.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps find relevant Swiss court cases and statutes, inspect the underlying passages, trace related cases, and produce checked citations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jonashertner/opencaselaw/research
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jonashertner/opencaselaw --skill research
Clone the repo
git clone --depth 1 https://github.com/jonashertner/opencaselaw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for research

README.md
[![agentmods](https://agentmods.dev/badge/skills/jonashertner/opencaselaw/research/github.svg)](https://agentmods.dev/skills/jonashertner/opencaselaw/research)
Your own site
<a href="https://agentmods.dev/skills/jonashertner/opencaselaw/research"><img src="https://agentmods.dev/badge/skills/jonashertner/opencaselaw/research/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for research

Your own site · 80×15
<a href="https://agentmods.dev/skills/jonashertner/opencaselaw/research"><img src="https://agentmods.dev/badge/skills/jonashertner/opencaselaw/research.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 743 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.00743
Opus 5 $0.00022 $0.00371
Sonnet 5 $0.00009 $0.00149
Haiku 4.5 $0.00004 $0.00074

Measured 5d ago against content hash fe329529d8a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

research scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

clients/python/src/opencaselaw_cli/skills/research/SKILL.md · 53 lines

How it starts

The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.

Read the full file on GitHub · 53 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 53 lines · 43 tokens per session scan A fe329529d8a8

Subscribe to this mod's changes

research is a skill published in the GitHub repository jonashertner/opencaselaw (63 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 743 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-07.

Related

Other skills, from other repositories

legaltech-expert

Expert in legal technology: contract lifecycle management, e-discovery, AI-assisted legal research, case and matter management, document automation, and compliance tooling. Use when the user mentions legal case or matter management, e-discovery and legal holds, CLM or contract review and obligation tracking, legal…

personamanagmentlayer/pcl · 74 tokens

legalize-kr

Use this skill when working with Legalize-KR public Korean legal data, including laws, court precedents, administrative rules, and local ordinances. It guides agents to choose between legalize-cli, the local stdio legalize MCP server, git clone workflows, and direct GitHub access for search, retrieval, article lookup…

legalize-kr/agent-skills · 86 tokens

contract-guardian

A contract-review workflow that checks agreements for risks, links important findings to relevant laws, and produces a written review. It covers common agreements such as sales, leases, loans, services, contracting, and intellectual property.

lawyerllsx-dotcom/Legal-Workflow-Chain · 245 tokens

法律周报

A legal-news briefing workflow that finds recent court and legal-practice articles, scores them against selected criteria, and archives chosen items in a local Obsidian notes folder. Obsidian is a local note-taking application.

lawyerllsx-dotcom/Legal-Workflow-Chain · 242 tokens

legal-research

A Chinese-language legal research workflow for finding laws, regulations, court cases, compensation standards, and legal grounds.

lawyerllsx-dotcom/Legal-Workflow-Chain · 87 tokens

legal-citation-comprehensive

A Chinese and foreign legal-citation tool for checking, completing, explaining, and formatting footnotes under the second edition of a legal citation manual. It handles laws, cases, legal documents, and academic sources when the relevant source material is provided.

lawyerllsx-dotcom/Legal-Workflow-Chain · 119 tokens