Health check for the lit-workflow literature pipeline (step 0) - checks every data source, key, token, quota and MCP registration, and reports fallbacks. Use when the user runs /lit-workflow:lit-setup, asks whether the literature tools work, or before starting a new project.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Lit Setup?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/yzzhang0423-stu-lit-setup)
---
name: lit-setup
description: Health check for the lit-workflow literature pipeline (step 0) - checks every data source, key, token, quota and MCP registration, and reports fallbacks. Use when the user runs /lit-workflow:lit-setup, asks whether the literature tools work, or before starting a new project.
argument-hint: "[optional: comma-separated checks, e.g. openalex,asta]"
---
# lit-setup: health check (step 0)
CLI: `${CLAUDE_PLUGIN_ROOT}/bin/litwf` (write the path literally in Bash; `$CLAUDE_PLUGIN_ROOT` is not set in the shell).
1. Run the check:
```bash
"${CLAUDE_PLUGIN_ROOT}/bin/litwf" doctor
```
If the user named checks (arguments: `$ARGUMENTS`), add `--only <comma-separated list>`. It takes about 20–40 seconds (the Asta MCP handshake dominates) and costs about 0.0001 USD of OpenAlex quota. It never prints secret values.
2. Show the user the table, then explain only what is not ✅:
- **Missing key** (`fail`): tell the user which line of `~/.config/lit-workflow/keys.env` to fill and where to get the key (see the plugin README). Never ask the user to paste a key into the chat.
- **OpenReview token missing or expired** (`warn`): the user must run this themselves in a terminal, because it asks for their password:
```bash
"${CLAUDE_PLUGIN_ROOT}/bin/litwf" openreview-login
```
Never run it yourself and never handle the password. Without a token, step 2 uses proceedings pages and arXiv instead.
- **Zotero local unavailable** (`warn`): Zotero is closed or its local API is off; only step 6/7 need it.
- **User MCP registry** (`warn`): ask the user whether to register the missing servers, then run `litwf register-mcp` (dry run) and, on a yes, `litwf register-mcp --apply`. It backs up `~/.claude.json` first.
- **arXiv refusing (circuit open)** (`warn`/`fail`): after an HTTP 403 every arXiv request fails at once for the cooldown, and callers fall back to OpenAlex. The trip is global to the user, not per project: `~/.config/lit-workflow/cache/breaker.json`. A later successful arXiv response clears it; to clear it by hand run `litwf doctor --reset-breaker`.
- **OpenAlex budget low** (`warn`): the free key gives 1 USD per day, reset at midnight UTC; pause paid steps until then.
3. End with one line: which pipeline steps can run fully, which run with a fallback, and which are blocked.