Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

westlaw

БесплатноЗапускает вложенные скриптыНе проверен

Use when the user says 'get this case from Westlaw', 'export the case as Word', 'download the opinion', 'pull 87 F.3d 536', 'I need the Westlaw version', 'get…

edwinhuот edwinhu★ 28 звёзд на GitHub

Об этом скилле

Westlaw: retrieve a case as publisher-keyed DOCX

What this skill carries — grep references/ for any subject the names below miss: !d=${CLAUDE_SKILL_DIR}; command -v skill-toc >/dev/null 2>&1 && exec skill-toc "$d"; s=$HOME/.claude/skills/plugin-utils/bin/skill-toc; [ -x "$s" ] && exec "$s" "$d"; echo "(skill-toc unavailable: references and scripts are NOT listed here — install the plugin-utils plugin, or start a new session so its bin/ reaches PATH)"

Export an opinion from Westlaw Advantage as DOCX with star pagination, for use as the authoritative source text when excerpting. Feeds workflows:elide-case, whose first Iron Law requires authentic reporter text.

Everything below was measured in a live session against Westlaw Advantage, signed in as a UVA law faculty account.

Prerequisite

The user's own logged-in Chromium on CDP port 9222. Linux → mcp__chrome-devtools__*. Load the browser-automation skill first — it owns port and prefix selection. This drives the user's real session; there is no credential handling and nothing to store.

LexisNexis (Lexis+ with Protégé) publishes no MCP server as of 2026-09, and Thomson Reuters' CoCounsel connector returns synthesized research reports with citation links, not verbatim case text (and needs a CoCounsel package subscription) — neither replaces this browser route.

Step 0 — session preflight

Confirm the browser session is still signed in before driving it; an expired login presents as a missing selector or a stalled delivery queue several steps later. On any Westlaw tab, evaluate:

const r = await fetch('/V1/Delivery/Details?timeZoneId=Eastern%20Standard%20Time',
                      {credentials:'same-origin', redirect:'follow'});
const ct = r.headers.get('content-type') || '';
const body = await r.text();
JSON.stringify({status:r.status, host:new URL(r.url).host, ct, ok:(()=>{try{JSON.parse(body);return true}catch{return false}})()});

PASS only on: status 200 AND ct contains application/json AND the body parses as JSON AND host is 1.next.westlaw.com. Measured on a signed-in session: 200, application/json; charset=utf-8, body begins {"PollingIntervalInMilliseconds":0,"DeliveryQueueItems":[{"F. This is the same endpoint Step 5 polls, so it tests the capability the run needs.

Anything else — non-200, non-JSON content type, unparseable body, another final host, or a thrown fetch — is NOT SIGNED IN. STOP and tell the user to sign in to Westlaw in his own browser and re-run. Never attempt a login, fill a credential field, or touch a saved password; this skill handles no credentials and Step 0 is not the exception.

There is no DOM fallback: the API probe is the only session check. Measured on one live signed-in session, same browser, same moment: on /Document/…/View/FullText.html (case viewer) #coid_website_signOffRegion → 1 and #co_signOffContainer → 1; on /Advantage/Home both → 0, while the API probe passed on that same page (200, application/json; charset=utf-8, parseable, redirected:false) and its visible text read "… Client: HU EDWIN Help Profile Sign out …". Those IDs therefore indicate which page is loaded, not whether the session is live, and using them yields a false "not signed in" — the same false-negative class already noted for #coid_website_userMenu, #co_signOffLink, a[href*="SignOff"], #coid_headerLinks and .co_user (all measured absent while signed in). The only signal present on both tabs was the page's own visible text containing "Sign out"; it is not carried here, because user-visible copy Thomson Reuters can reword is too weak to sit beside the probe and must never override it.

The signed-out response shape is UNVERIFIED (never observed, since testing it means signing the user out) — hence the fail-closed condition above; observing it once would allow a more specific message.

Step 1 — find the case

Citation search navigates directly to the document; there is no results page to parse. Type the citation into the main search box and submit, or navigate:

https://1.next.westlaw.com/Document/<docGuid>/View/FullText.html?userEnteredCitation=87+F.3d+536

Westlaw resolves the cite to its own docGuid server-side. Confirm by reading document.title, which carries the case name. Measured: 87 F.3d 536 landed on I18e36046930e11d9bc61beebb95be672 / "S.E.C. v. Life Partners, Inc.".

The jurisdiction filter does not affect a citation lookup but DOES silently narrow a term search. A term search returning nothing when the case plainly exists is usually the filter, not the corpus.

Step 2 — delivery dialog and the client-ID gate

element is
#deliveryLinkButton1 opens "Download This Document"
#deliveryWidgetButton1 "Delivery Options"
a.co_blobLink.Athens-Document-Caption-pdfbutton "Download original image (PDF)" — direct blob URL to the reporter page scan, no dialog, no client ID

**Clicking Download r

Полный SKILL.md на GitHub

Установить westlaw в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

AUTH-BROKER-FINDINGS.mdHANDOFF.mdPREFLIGHT.mdscripts/westlaw-docx-text.pyscripts/westlaw_docx_text_test.py

FAQ

Что делает скилл westlaw?

Use when the user says 'get this case from Westlaw', 'export the case as Word', 'download the opinion', 'pull 87 F.3d 536', 'I need the Westlaw version', 'get me the real text of this case', or 'the OCR is garbled, get the publisher text'. NEGATIVE ROUTING: excerpting an opinion already in hand into a course reading is workflows:elide-case; free case law with no subscription is workflows:courtlistener. This skill only retrieves and exports from Westlaw.

Как установить скилл westlaw?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл westlaw запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить westlaw с