> For AI agents: the complete documentation index is available at /Prism/llms.txt, the full documentation bundle is available at /Prism/llms-full.txt.

# Skills, Agent Tools, Academic Search & MCP

Prism is a full research agent inside Zotero: it runs reusable `/` workflows, searches open academic indexes with zero API keys, proposes safe undoable edits to your Zotero library, and speaks **Model Context Protocol (MCP)** in both directions.

## 1. Complete Directory of All 23 Built-In `/` Skills

Type **`/`** in the Prism composer to browse and launch any skill (use `↑` / `↓` and `Enter` or `Tab`). All 23 built-in skills can be searched, filtered by category, edited, or toggled individually under **Prism Settings → Skills**.

### Reading (8 Skills)

| Command        | Name                                 | What It Does                                                                                                          |
| -------------- | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------- |
| `/summarize`   | Summarize Paper                      | Structured, citation-grounded overview (question, hypothesis, method, quantitative results, limitations, how to cite) |
| `/compare`     | Compare Papers                       | Multi-paper comparative table + agreements, contradictions, and open gaps across 2+ attached papers                   |
| `/explain`     | Explain Passage, Equation, or Figure | Intuitive breakdown of dense prose, LaTeX equations, or figures (uses `view_paper_pages` for visual charts)           |
| `/peer-review` | Peer Review & Critical Audit         | Rigorous NeurIPS/Nature-style referee critique of assumptions, baselines, ablations, and reproducibility              |
| `/checklist`   | Reading Checklist Skim               | Rapid 4-target skim (question, method/data, headline result, caveat) staging 4–8 native PDF highlights                |
| `/relate`      | Relate Paper to My Research          | Connects the paper to your Research Persona and existing Zotero library, noting agreements/conflicts                  |
| `/translate`   | Translate Academic Passage           | Faithful academic translation into your independent Target Translation Language preserving math & terminology         |
| `/polish`      | Translate & Polish Academic Prose    | Polishes or translates draft manuscript text without weakening or distorting scientific claims                        |

### Annotate (3 Skills)

| Command             | Name                           | What It Does                                                                                                                                       |
| ------------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| `/annotate-guide`   | Color-Coded PDF Study Guide    | Stages 8–20 non-overlapping 5-color native PDF highlights (`yellow` question, `blue` methods, `green` results, `red` limits, `purple` definitions) |
| `/annotate`         | Targeted PDF Annotations       | Locates passages matching your custom criteria and stages highlights or underlines with comments & tags                                            |
| `/find-annotations` | Search & Synthesize Highlights | Searches and synthesizes saved highlights, underlines, image crops, and comments across a paper, collection, or library                            |

### Write (6 Skills)

| Command            | Name                              | What It Does                                                                                               |
| ------------------ | --------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| `/lit-review`      | Literature Review Synthesis       | Thematic literature review synthesizing consensus, conflicts, and gaps with clickable citations            |
| `/extract-table`   | Extract Comparison Table          | Builds an evidence-linked Markdown comparison matrix in chat with page citations per cell                  |
| `/create-note`     | Create Cited Zotero Note          | Drafts and stages a structured child or standalone Zotero note with citations and LaTeX math               |
| `/edit-note`       | Edit Note for Clarity & Structure | Proposes surgical, diff-reviewed revisions to an existing Zotero note preserving voice & citations         |
| `/check-citations` | Audit & Strengthen Note Citations | Audits claims inside a Zotero note against your library PDFs and proposes diff edits with stronger sources |
| `/review-note`     | Review & Give Feedback on Note    | **Read-only** constructive critique identifying unsupported claims, gaps, and missing counterarguments     |

### Organize (4 Skills)

| Command             | Name                         | What It Does                                                                                                                                                                                                                                                          |
| ------------------- | ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `/auto-tag`         | Auto-Tag Papers              | Proposes 2–5 consistent tags while prioritizing your existing Zotero tag vocabulary to avoid tag sprawl                                                                                                                                                               |
| `/tag-methodology`  | Tag by Methodology           | Classifies papers strictly from an **11-tag closed default taxonomy** (`qualitative`, `quantitative`, `mixed-methods`, `experimental`, `survey`, `ethnography`, `computational`, `systems`, `benchmark`, `meta-analysis`, `theoretical`)—or your custom override list |
| `/sort-collections` | Sort Papers into Collections | Recommends best-fitting existing Zotero collections with rationale and stages collection assignments                                                                                                                                                                  |
| `/tidy-up`          | Audit & Clean Metadata/Tags  | Audits missing DOIs, venues, abstracts, messy tags, and unfiled items (preserving Better BibTeX `Citation Key:` / `tex.*` lines in `Extra`)                                                                                                                           |

### Research & Fast Path (2 Skills)

| Command     | Name                             | What It Does                                                                                                                |
| ----------- | -------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| `/discover` | Discover Related Research Online | Searches open academic databases for related/foundational papers, deduplicates against Zotero, and offers 1-click OA import |
| `/quick`    | Quick Direct Answer (No Tools)   | Instant direct reply with `No-tools fast mode` (`disableTools: true`, skipping library/web tool loops for maximum speed)    |

## 2. Authoring, Editing & Backing Up Custom `SKILL.md` Files

Open **Prism Settings → Skills** to manage your workflow library:

- **Search & Category Filter Pills:** Filter by name, `/trigger`, description, or allowed tools, and switch across category pills with live counts (`All`, `Reading`, `Annotate`, `Write`, `Organize`, `Research`, `Custom`).
- **Edit Any Skill (Including Built-Ins):** Double-click any skill card (or click **Edit**) to customize instructions, allowed tools, or the **`No-tools fast mode`** toggle (only Delete is restricted to custom skills; built-ins can also be disabled cleanly).
- **Import, Export & Sync:** Click **`Import SKILL.md`** (paste Markdown or **`Choose .md File…`**), click **`Export SKILL.md`** on any card, or use **`Backup to Note`** / **`Restore`** to sync custom skills through a standalone Zotero note.

Settings — Research Skills Manager

![Browse, search, filter, toggle, edit, import/export SKILL.md workflows, or back up custom skills to a Zotero note.](/Prism/images/skills.png)

Browse, search, filter, toggle, edit, import/export SKILL.md workflows, or back up custom skills to a Zotero note.

### Portable `SKILL.md` Format

```markdown
---
name: Grant Significance Check
trigger: grant-check
description: Evaluate how this paper supports a grant aim and stage a summary note.
category: write
allowed-tools: [read_paper_pages, search_library_papers, create_note]
disable-tools: false
enabled: true
---

Analyze the active paper specifically for NIH/NSF grant writing:
1. Extract 2–3 quantitative statistics suitable for a Specific Aims opening paragraph (with page citations).
2. Identify methodological gaps our proposal addresses.
3. Offer to create a child Zotero note summarizing these talking points.
```

Supported frontmatter fields: `name` (or `title`), `trigger` (or `slash` / `command`), `description`, `category` (`reading | annotate | write | organize | research | custom`), `allowed-tools` (`[a, b]`, multiline YAML `- a`, or comma-separated), `disable-tools` (boolean; setting `tools: []` also enables no-tools fast mode), and `enabled` (boolean).

## 3. Built-In Zotero Agent Tools (`Preview → Approve → Commit` + Undo)

Prism equips the model with **26 built-in tools** (`25` always-registered + `1` conditional `generate_image` when an Image Generation route is available), cleanly separated into read-only lookups, interactive clarification, and strictly guarded library mutations:

### Read Tools (18 Total — Default: `Auto-execute`)

- **Library Read (`read_library`, 14 tools):** `get_active_paper_metadata`, `read_paper_pages` (up to `8` pages/call), `view_paper_pages` (renders up to `4` PDF pages as JPEG for vision), `search_library_papers`, `get_paper_notes`, `get_paper_annotations`, `search_annotations`, `search_library_metadata`, `search_library_fulltext`, `semantic_search_library`, `list_library_taxonomy`, `inspect_library_metadata_issues`, `read_note_content`, and `load_skill`.
- **Web & Media Lookup (`web_lookup`, 4 tools):** `fetch_web_url` (public `http`/`https` only; blocks localhost & private IPs), `web_search`, `search_academic_papers`, and `generate_image` _(available automatically whenever an Image Generation route is configured)_.
- **Human Clarification (1 tool):** `ask_user_questions` (interactive Clarifying Question Card).

### Write Tools (7 Total — Default: `Ask approval`)

| Tool                      | Capability                                                                                                                                             | Smart Guardrails, Preview & Undo Behavior                                                                                                                                                                                                                                                                                                                                                                                                            |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `propose_pdf_annotations` | Creates native PDF highlights & underlines in **8 Zotero colors** with comments & tags                                                                 | Shows **`Exact`** vs **`Page fallback`** badge + **`Preview`** PDF jump button; atomic Undo erases the created annotations                                                                                                                                                                                                                                                                                                                           |
| `update_metadata`         | Updates bibliographic fields, authors/creators, or `itemType` (with Crossref verification)                                                             | Normalizes 17 canonical CS/AI venues (NeurIPS, ICML, ICLR, CVPR, ACL, arXiv, etc.), strips `https://doi.org/` prefixes, defaults to non-destructive mode (`overwriteExisting: false`, filling blanks without clobbering existing fields/DOIs), and shows field-by-field `before → after` diffs; Undo restores every prior field & creator                                                                                                            |
| `manage_tags`             | Adds (`+`) or removes (`−`) tags across items                                                                                                          | Per-item tag diff with checkboxes; Undo restores exact previous tags                                                                                                                                                                                                                                                                                                                                                                                 |
| `assign_collections`      | Adds/removes collections by key, name, or hierarchical `'Parent / Child'` (or `>` / `›`) path, while preserving internal `/` inside names like `AI/ML` | Previews exact target paths (optionally creating missing collections); Undo restores memberships and removes newly created empty collections                                                                                                                                                                                                                                                                                                         |
| `create_note`             | Creates a Markdown-rendered child or standalone Zotero note with `zotero://` links                                                                     | Full rendered preview; Undo deletes the created note                                                                                                                                                                                                                                                                                                                                                                                                 |
| `edit_note`               | Applies surgical find-and-replace edits to an existing Zotero note                                                                                     | Unified diff + multi-match selector (`Match #1`, `#2`, or `Replace all`); Undo restores original HTML                                                                                                                                                                                                                                                                                                                                                |
| `propose_import_paper`    | Imports discovered papers by DOI / arXiv ID, attaches OA PDFs (`<= 80 MB`), and files into collections                                                 | Resolves OA PDFs across 15+ publishers (arXiv, OpenReview, ACL, CVF, NeurIPS, PMLR, bioRxiv/medRxiv, PMC, ACM, Springer, Nature, MDPI, PLOS, Semantic Scholar, Europe PMC), structurally rejects paywall HTML, **slide decks**, **posters**, rebuttals, and supplements, and auto-suggests up to **2 matching existing collections**. Shows **`Open Paper`** (or **`Open in Zotero`** if metadata-only) after commit; Undo removes the imported item |

### Controlling Permissions & Step Budget

- Every write executes inside an atomic `Zotero.DB.executeTransaction` and saves a reverse snapshot so you can click **`Undo`** (and even **`Re-apply`**) inline on the Approval Card.
- Open **Prism Settings → General Settings → Agent Operation Permissions** to toggle **`Ask for all`** / **`Auto-execute all`** per category, or set **`Ask approval`** vs **`Auto-execute`** individually for each of the 2 read operations and 7 write operations.
- Adjust **Max Tool Steps** (`1 – 15`, default **`6`**) in **General Settings**. Interactive human approval and clarification waits receive up to **`8` bonus interactive step credits** per turn so approval checkpoints don't cut short complex workflows.

Inline Approval Card — PDF Annotations Preview & Commit

![Review proposed PDF highlights with Exact match badges, Preview PDF jumps, per-item checkboxes, and Approve & Apply / Reject controls.](/Prism/images/approval-card.png)

Review proposed PDF highlights with Exact match badges, Preview PDF jumps, per-item checkboxes, and Approve & Apply / Reject controls.


Inline Approval Card — Paper Discovery & Open-Access Import

![Discover related literature and approve multi-paper imports with verified DOIs, auto-suggested collections, and Open-Access PDF ready badges.](/Prism/images/skills-and-approval-card.png)

Discover related literature and approve multi-paper imports with verified DOIs, auto-suggested collections, and Open-Access PDF ready badges.

## 4. Free Zero-Key Academic & Web Search (Plus Optional BYOK)

Open **Prism Settings → MCP & Web → Web Search & Direct URL Fetch** to configure online discovery:

- **7 Built-In Zero-Key Engines (all on by default; individually toggleable):**
  - **Academic (5):** **OpenAlex**, **arXiv**, **Crossref**, **Semantic Scholar**, **PubMed (NCBI)**.
  - **Web (2):** **DuckDuckGo** (HTML + Instant Answer fallback), **Wikipedia** (auto-selects English or Chinese for CJK queries).
- **Smart Intent Routing & Cross-Engine Deduplication:** Automatically prioritizes PubMed for biomedical queries, OpenAlex/arXiv/Crossref for CS/academic queries, and Chinese Wikipedia for CJK queries, then deduplicates results across engines by DOI, arXiv ID, canonical URL, and title while retaining the richest metadata and OA PDF link.
- **Optional Dedicated Search Backends:** Switch from **`Free Multi-Engine Search (Auto)`** to **Self-Hosted SearXNG** (zero key, custom JSON URL), **Tavily**, **Brave Search**, **Serper**, or **Disabled**. All BYOK/SearXNG backends automatically fall back to the free engines on failure, and API keys stay OS-encrypted in Zotero Login Manager.
- **Max Search Results:** Configurable from **`1` to `12`** (default **`6`**).

## 5. Bidirectional Model Context Protocol (MCP)

Prism implements **MCP (`2025-03-26`)** in both directions under **Prism Settings → MCP & Web**.

### A. Inbound Local MCP Server (Connect Claude Code, Cursor, Codex & External Agents to Zotero)

Prism embeds a lightweight HTTP MCP server directly inside Zotero's built-in HTTP server at **`http://127.0.0.1:23119/prism/mcp`** (automatically tracking Zotero's configured HTTP port)—no external Node/Python sidecar required.

**Security Model:** Strictly **loopback-only** (`127.0.0.1`, `::1`, `localhost`) with anti-CSRF loopback `Origin` verification (all non-loopback requests are rejected with HTTP `403`; no bearer token needed).

Choose one of **4 Permission Modes**:

| Mode                           | Exposed Tools                                                                                                                                                                                                                                                                                      | Behavior                                                                              |
| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| **`Disabled (Default)`**       | None                                                                                                                                                                                                                                                                                               | Endpoint off                                                                          |
| **`Read-Only`**                | **11 tools** (`get_active_paper_metadata`, `search_library_metadata`, `search_library_fulltext`, `semantic_search_library`, `get_paper_annotations`, `search_annotations`, `read_paper_pages`, `get_paper_notes`, `read_note_content`, `list_library_taxonomy`, `inspect_library_metadata_issues`) | Safe library reading & semantic search only                                           |
| **`Additive (+ Create Note)`** | **12 tools** (Read-Only + `create_note`)                                                                                                                                                                                                                                                           | Lets external agents save new Zotero notes without a confirmation prompt              |
| **`Ask-for-Approval`**         | **16 tools** (Additive + `edit_note`, `manage_tags`, `assign_collections`, `update_metadata`)                                                                                                                                                                                                      | Every write triggers a native Zotero confirmation dialog before mutating your library |

#### Client Configuration Snippet (Claude Code / Cursor / Codex / Antigravity)

Copy this JSON directly from **Settings → MCP & Web** into your client's MCP configuration:

```json
{
  "mcpServers": {
    "zotero-prism": {
      "type": "streamable-http",
      "url": "http://127.0.0.1:23119/prism/mcp"
    }
  }
}
```

### B. External MCP Client (Connect External Tools Into Prism)

Give Prism access to Obsidian vaults, Python sandboxes, lab databases, or institutional APIs via **Settings → MCP & Web → External MCP Servers → Add MCP Server**:

- **Streamable HTTP / SSE Transport:** Enter the server URL, optional **Bearer token** (OS-encrypted in Zotero Login Manager), and optional custom HTTP headers (`Header: Value`). Automatically tracks `Mcp-Session-Id` and recovers from expired sessions (`20s` timeout).
- **Local Stdio Subprocess Transport:** Launch desktop MCP binaries directly via Gecko's `Subprocess.sys.mjs` with **Command**, **Arguments**, and **`KEY=VALUE` Environment Variables** (`20s` timeout).
- **Sync & Slash Invocation:** Click **`Test & Sync Tools`** to discover and cache tools across restarts (qualified as `mcp_<server>_<tool>`). Enabled servers appear immediately in the composer's `/` menu as **`/<server>`** (or `/mcp-<slug>` if the name collides with a skill slug) and can even auto-discover tools on demand when sent.
- **Per-Server Tool Permissions (`Read & Write`):** Inside the server modal, configure **`Read tools`** and **`Write tools`** independently with **`Ask approval`** _(default)_ or **`Auto-execute`** toggles (displayed on server cards as `Read: Ask/Auto` and `Write: Ask/Auto` badges).

Settings — Inbound Local MCP Server & External MCP Servers

![Enable the loopback-only Zotero MCP server across four permission modes and connect external HTTP or Stdio MCP servers with per-server Read/Write permissions.](/Prism/images/configure-local-remote-MCP.png)

Enable the loopback-only Zotero MCP server across four permission modes and connect external HTTP or Stdio MCP servers with per-server Read/Write permissions.