Case Prep logo

Case Prep

Community
danepps
case-prep

Gather the full document set for a SCOTUS case being prepped for a podcast episode, class, or article — cert-stage filings, merits briefs, lower-court opinion, questions presented, and oral-argument transcript — and load them onto the user's reMarkable in a per-case folder. Manual trigger — use when the user says "prep <case>", "grab the briefs for <case>", "load up <case>", or similar.

Overview

Publisherdanepps
Repositorylegal-research-skills
Skill namecase-prep
Stars
46
Forks
9
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by danepps on GitHub. Read the source before you install it.

Installation

Install the Case Prep AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/danepps/legal-research-skills/tree/main/claude-code/skills/case-prep
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/danepps/legal-research-skills.git /tmp/legal-research-skills
mkdir -p .claude/skills
cp -r /tmp/legal-research-skills/claude-code/skills/case-prep .claude/skills/case-prep
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Case Prep in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Case Prep on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Case Prep is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

SCOTUS case prep → reMarkable

Given a case name (and optionally a docket number), collect the canonical reading set and upload it to the tablet under <Project>/<Case>/.

Hard rules

  • Every uploaded document is a real PDF you actually downloaded. Verify each file begins with %PDF before uploading. Never hand-construct a document URL and assume it worked — fetch it and check.
  • Web-confirm the caption and docket number first. If the name is ambiguous (multiple granted cases, consolidated cases, common party names), confirm with the user before downloading the wrong case's briefs.
  • Report gaps honestly. If a document isn't filed yet, isn't public, or can't be found, say so in the final manifest. Never substitute a look-alike document.

Step 1 — Resolve the case

  1. Web-search the case name to confirm the exact caption and Supreme Court docket number (format NN-NNN, e.g. 24-316). Good confirming sources: supremecourt.gov, SCOTUSblog's case page, Oyez.
  2. Note whether the case is consolidated with others (grab the lead docket; mention companions in the manifest).
  3. Note argument status: not yet argued / argued (transcript available) / decided.

Step 2 — Download documents (to the scratchpad, via curl)

Docket page (index of every filing, with PDF links): https://www.supremecourt.gov/search.aspx?filename=/docket/docketfiles/html/public/<DOCKET>.html Fetch it and extract the DocketPDF links. Entry text identifies each filing ("Petition for a writ of certiorari filed", "Brief of petitioner", "Brief amicus curiae of United States", etc.).

Default document set (in reading order — skip whatever doesn't exist yet; note it in the manifest):

#DocumentSource
00Questions presentedhttps://www.supremecourt.gov/qp/<TERM>-<5-digit-zero-padded-number>qp.pdf (e.g. docket 24-316 → 24-00316qp.pdf)
01Lower-court opinionCourtListener (below)
02Cert petitiondocket page
03Brief in oppositiondocket page
04Cert-stage replydocket page
05Petitioner's merits briefdocket page
06Respondent's merits briefdocket page
07Merits reply briefdocket page
08U.S. / SG amicus brief (if any, either stage)docket page
09Oral-argument transcript (if argued)https://www.supremecourt.gov/oral_arguments/argument_transcripts/ — links follow .../argument_transcripts/<TERM>/<docket>_<suffix>.pdf; find the real link on the term's transcript index page

Other amicus briefs: don't download them all by default (there can be dozens). Tell the user how many were filed and offer to add specific ones.

Lower-court opinion via CourtListener: search https://www.courtlistener.com/api/rest/v4/search/?q=<case name>&court=<lower court id> or the website search, matching the docket number / caption from the cert petition (the petition's first pages identify the opinion below precisely). Then resolve and download the PDF deterministically with the legal-research skill's helper (prefers CourtListener's stored copy, falls back to the court's own file, verifies %PDF magic before saving):

python3 ${CLAUDE_PLUGIN_ROOT}/skills/legal-research/cl_case_tools.py pdf cluster:<cluster_id> --out "01 Lower-court opinion.pdf"

(cluster_id comes from the search result; a reporter cite works too once one exists). If no PDF is on CourtListener or the court's site, the cert petition's appendix contains the opinion below — flag that as the fallback rather than uploading something unverified.

Use a browser-plausible User-Agent for supremecourt.gov (it 403s bare curl): curl -sL -A "Mozilla/5.0" -o <file> <url>.

Step 3 — Upload to the reMarkable

Tools: the remarkable_* MCP tools (if not loaded: ToolSearch "select:mcp__remarkable__remarkable_upload,mcp__remarkable__remarkable_mkdir,mcp__remarkable__remarkable_browse" — adjust prefix to whatever the connected server exposes).

  1. Crop margins first — run this skill's crop_pdf.py on every PDF so documents open margin-free on the tablet (the user shouldn't have to adjust borders by hand): uv run <this skill's directory>/crop_pdf.py <file.pdf> A nonzero exit means no plausible content box was found — upload that file uncropped rather than failing.
  2. remarkable_mkdir → <Project>/<Short Caption> (e.g. SCOTUS Prep/Smith v. Arizona).
  3. Upload each PDF named NN Title.pdf per the table (keep the numbers so they sort in reading order), e.g. 02 Cert Petition.pdf, 06 Respondent Merits Brief.pdf.
  4. remarkable_browse the folder afterward to confirm everything landed.

Step 4 — Report

Give the user a manifest: caption, docket number, argument date/status, each document uploaded (with filing date where the docket shows it), each document not available and why, companion cases, and the amicus count with an offer to pull specific ones.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Case Prep AI skill do?

Gather the full document set for a SCOTUS case being prepped for a podcast episode, class, or article — cert-stage filings, merits briefs, lower-court opinion, questions presented, and oral-argument transcript — and load them onto the user's reMarkable in a per-case folder. Manual trigger — use when the user says "prep <case>", "grab the briefs for <case>", "load up <case>", or similar.

Why use Case Prep on TypingMind?

Because you install it once and use it with any model. Case Prep is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Case Prep in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/danepps/legal-research-skills/tree/main/claude-code/skills/case-prep. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Case Prep?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Case Prep?

As many as you like. As long as a model supports skills, you can use Case Prep with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Case Prep AI skill free?

Yes. It is published on GitHub by danepps under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇