undermind-searchlisted
Install: claude install-skill kennethkhoocy/legal-scholarship-skills
# Undermind Search (Stage 1)
Takes the **Undermind brief** that Stage 0 extracts and returns the papers
Undermind finds, enriched and saved as `<stem>.json` + `<stem>.bib` for dedup and
screening.
The stage is two halves:
- **`scripts/undermind_search.py`** — a Playwright driver that signs in, drives the
Classic search UI, and exports the references (BibTeX by default).
- **`scripts/undermind_ingest.py`** — UI-independent parsing + enrichment. It reads
the exported `.bib`/`.ris`, fills missing DOIs (Crossref) and abstracts/journals
(OpenAlex), and writes the pipeline JSON. Importable, and runnable standalone on
any reference file.
## Quick start
```bash
# One-time setup: store Undermind credentials and verify sign-in (opens a browser)
python scripts/undermind_search.py --login
# Driven by the orchestrator (the normal path)
python scripts/undermind_search.py --brief-file undermind_brief.txt \
-o stage1_undermind.json --debug-dir debug_undermind
# Standalone, from a short query, watching the browser
python scripts/undermind_search.py --query "dual-class shares cost of equity" --headed
# Ingest an already-exported file (no browser)
python scripts/undermind_ingest.py --input references.bib -o stage1_undermind.json
```
## The flow (validated against the June 2026 UI)
`app.undermind.ai` → (auto-login if needed) → sidebar **Classic** → **Search** →
type the brief into "I want to find…" → answer Undermind's clarifying questions
(a Sonnet subagent by default, Opu