Zotero Connectのロゴ

Zotero Connect

コミュニティ
sagirimo
zotero-connect

ローカルのデスクトップアプリを通じて、ユーザー自身のZotero 7ライブラリを読み取り、拡張します。論文の検索、コレクションとタグの一覧表示、要約用のPDF全文の取得、DOI/PMIDによる文献の追加、BibTeX/RIS/CSL-JSON形式でのエクスポートができます。既存のアイテムを削除・編集することはありません。

Add to TypingMind

概要

公開者sagirimo
リポジトリBioDSH
スキル名zotero-connect
スター
65
フォーク
2
同梱ファイル
2
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    sagirimoがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Zotero Connect」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/sagirimo/BioDSH/tree/main/biodsh-core/skills/zotero-connect
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sagirimo/BioDSH.git /tmp/BioDSH
mkdir -p .claude/skills
cp -r /tmp/BioDSH/biodsh-core/skills/zotero-connect .claude/skills/zotero-connect
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでZotero Connectを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にZotero Connectを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Zotero Connectは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Zotero connect (local library)

Use this skill when the user talks about their own reference library: "帮我在 Zotero 里找…", "把这篇加到 Zotero", "总结我库里关于 X 的 PDF", "导出这几篇的 BibTeX", or when a literature-review task should end with references saved into Zotero. It talks only to the Zotero desktop app on this computer (http://127.0.0.1:23119) — no cloud account, no API key.

Prerequisite (tell the user if ping fails): Zotero 7 must be open, and in Zotero → Settings(设置) → Advanced(高级) the option "Allow other applications on this computer to communicate with Zotero" (允许本机其他应用与 Zotero 通信) must be checked. Adding items uses the Zotero Connector endpoint, which is always on while Zotero runs.

Commands

All commands print JSON to stdout; on failure they print {"error": ...} and exit 1.

bash
python "<skill dir>/zotero.py" ping                                   # is Zotero running + local API enabled?
python "<skill dir>/zotero.py" search --q "PD-1 melanoma" [--limit 50] [--collection KEY] [--everything]
python "<skill dir>/zotero.py" collections                            # key, name, parent, item count
python "<skill dir>/zotero.py" tags
python "<skill dir>/zotero.py" item --key ABCD1234                    # full record + attachments with local PDF paths
python "<skill dir>/zotero.py" pdf-text --key ABCD1234 [--max-chars 20000]
python "<skill dir>/zotero.py" add --doi 10.1038/s41586-020-2649-2    # Crossref → Zotero
python "<skill dir>/zotero.py" add --pmid 32939066                    # PubMed (E-utilities) → Zotero
python "<skill dir>/zotero.py" add --json items.json [--yes]          # list of Zotero items or {"doi":..}/{"pmid":..}
python "<skill dir>/zotero.py" resolve --doi 10.xxxx/yyy              # metadata preview only, Zotero not needed
python "<skill dir>/zotero.py" export --keys K1,K2 --format bibtex|csljson|ris --out exports/refs.bib

search returns compact rows: key, title, authors, year, journal, DOI, tags, has_pdf, date_added. Default matching is title/creator/year; add --everything to also match abstracts, notes and indexed full text. --collection KEY restricts to one collection (get keys from collections).

pdf-text needs pymupdf; if the error says so, run uv pip install pymupdf and retry. It reads the PDF straight from the Zotero storage folder (~/Zotero/storage/<key>/…; override with ZOTERO_DATA_DIR if the user moved it).

The loop

  1. ping — if it errors, stop and tell the user exactly how to enable the local API (the error text already contains the settings path in English and Chinese).
  2. search (optionally collections first, then --collection) — report the hits with their Zotero keys.
  3. item / pdf-text for the papers the user picks — summarise from the extracted text, quoting the item key.
  4. add / export as the task requires — report every new item key and the collection it landed in.

Rules

  • Never delete or modify existing items. This script has no delete/update commands; do not try to work around that with other tools.
  • add skips DOIs already in the library (reported as already_in_library with the existing key). Use --force only if the user explicitly wants a duplicate.
  • Confirm with the user before adding more than 10 items. The script refuses >10 without --yes; ask, show the candidate list, then rerun with --yes.
  • New items are saved into the collection currently selected in the Zotero window (or My Library). Tell the user this, and report the new item keys (add returns them; if it says sent_to_zotero, run search --q "<title>" a few seconds later to fetch the key).
  • Always report Zotero item keys when you cite library items, so the user can find them (Zotero: search the key, or item --key).
  • For literature-review tasks combine with web search: find candidate papers online → present title/journal/year/DOI to the user → after confirmation, add --doi … (or --pmid …) for each → finish with export if the user needs a bibliography.
  • Metadata sources are Crossref (api.crossref.org) and NCBI E-utilities; both are public and need no key (NCBI_API_KEY / CROSSREF_MAILTO are optional env vars for polite rate limits). Nothing in this skill uploads the user's library anywhere.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Zotero Connect」では何ができますか?

ローカルのデスクトップアプリを通じて、ユーザー自身のZotero 7ライブラリを読み取り、拡張します。論文の検索、コレクションとタグの一覧表示、要約用のPDF全文の取得、DOI/PMIDによる文献の追加、BibTeX/RIS/CSL-JSON形式でのエクスポートができます。既存のアイテムを削除・編集することはありません。

TypingMindでZotero Connectを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Zotero Connectはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにZotero Connectをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/sagirimo/BioDSH/tree/main/biodsh-core/skills/zotero-connectを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Zotero Connectを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Zotero Connectで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもZotero Connectを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Zotero Connect」は無料ですか?

はい。sagirimoがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇